Détails du package
smp-pidgin
Revenir à la liste des packages
Version officielle sur le site de l'editeur : 0.37.0
Fichier control :
package : smp-pidgin
version : 2.14.1-1
architecture : all
section : base
priority : optional
name :
categories :
maintainer : Simon Fonteneau
description : Logiciel libre client de messagerie instantanée multiprotocole, multiplate-forme et multilingue.
depends :
conflicts :
maturity :
locale :
target_os : windows
min_os_version :
max_os_version :
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : 6cd73b47-becc-4af7-8d3d-bb86a73b3841
valid_from :
valid_until :
forced_install_on :
changelog :
signer : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature : ka6x/urtaB4ykIezWcr7VHHY1Enpao54rRpawJcpuYhjX1B4qE8cExmhe7xZJyCMiC5CC2g5jP6wsJ4iq7WGaHud87WmkLkZiyR5hectjuCqtVKVxGbsWGl059sLl+q08XkPYc9zLdPbmJnUOCzKyJybmMZ6mvN3zXWHc8ZACZs/3HK0EWunl5VW0taIoCkMrYQJjQtOcwckla2N/8GntbkHCmpUx22XYHBIg50y7aWMqgDZq259xrU10UklsPzkiwgaOvwLz1LM93ajXT7/7AN+nOTvGF27jH1s9UPLqWIIcmGAXL7MhuPfsDuAB+7HBt0YTijIyuu3neE5x6CDew==
signature_date : 2020-07-04T01:21:08.475782
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,signer,signer_fingerprint,signature_date,signed_attributes
Fichier setup.py :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing Pidgin')
versionsoft = control['version'].split('-',1)[0]
install_exe_if_needed('pidgin-%s-offline.exe' % versionsoft,'/S','Pidgin',versionsoft,'pidgin.exe')
def update_sources():
import re,requests,urlparse,glob
url = requests.head('https://sourceforge.net/projects/pidgin/files/latest/download?source=typ_redirect',proxies={}).headers['Location']
dst = requests.head(url,proxies={}).headers['Location']
dstexe = dst.replace('-dbgsym.zip','-offline.exe')
filename = urlparse.unquote(dstexe.rsplit('/',1)[1])
exes = glob.glob('*.exe')
for fn in exes:
if fn != filename:
remove_file(fn)
if not isfile(filename):
print('Downloading %s from %s'%(filename,dstexe))
wget(dstexe,filename)
else:
print('Already up to date, skipped')
vers = get_file_properties(filename)['ProductVersion']
os.chdir(os.path.dirname(__file__))
from waptpackage import PackageEntry
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = vers + '-0'
pe.save_control_to_wapt(os.getcwd())
if __name__ == '__main__':
update_sources()