Détails du package
smp-scribus
Revenir à la liste des packages
Version officielle sur le site de l'editeur : 1.4.8
Fichier control :
package : smp-scribus
version : 1.4.8-2
architecture : x64
section : base
priority : optional
name :
categories :
maintainer : Simon Fonteneau
description : Logiciel de PAO libre
depends : smp-ghostscript
conflicts :
maturity :
locale :
target_os : windows
min_os_version :
max_os_version :
min_wapt_version : 1.5.1.20
sources :
installed_size : 227024896
impacted_process : Scribus.exe
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : d2dfb692-181a-49a3-bc87-c6311b0cec02
valid_from :
valid_until :
forced_install_on :
changelog :
signer : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature : KeqUTxumNW7BIvOAquZ1XKWcuzSVPnXLg6c7BYmxVqlXp6DdmcA2MYHE7+63pnbLewFyb7mpw9YGfsh28nWhplPrSTjncvJeMX4PwHOmc3xpDMI+n2dDUzu/naR5FTh4t6/90N8nNHsfTBRMDkNYVyUXOJetI6DeZdIr2cY8DlpdVBG6s71/UM4gOcBgouZiyN5HeOE2g8ibnHS/ceWvpDB0iVnwbsIHH28uVrrQUCl/gRECe6NYcd98upqRGV9J9/2A5KxljnW9RAOTqbVLtYrlgh3GxNe89dl7RnX2H4WG8AKot5wd/qWGIkZVtcG2sArp+zcVAoq3P4LVHy+W1A==
signature_date : 2020-07-04T01:54:32.213000
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 :
#!/usr/bin/python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
# This file is part of WAPT
# Copyright (C) 2013 Tranquil IT Systems http://www.tranquil.it
# WAPT aims to help Windows systems administrators to deploy
# setup and update applications on users PC.
#
# WAPT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# WAPT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WAPT. If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
import time
from setuphelpers import *
uninstallkey=[]
def install():
versionsoft = control['version'].split('-',1)[0]
for uninstall in installed_softwares('Scribus'):
if Version(uninstall['version']) < Version(versionsoft):
print(u'remove old software')
killalltasks('Scribus.exe')
run(uninstall_cmd(uninstall['key']))
time.sleep(120)
for uninstall in installed_softwares('Scribus'):
if 'Program Files (x86)' in uninstall :
killalltasks('Scribus.exe')
run(uninstall_cmd(uninstall['key']))
time.sleep(120)
install_exe_if_needed('scribus-%s-windows-x64.exe' % versionsoft,silentflags='/S',key='Scribus %s' % versionsoft,min_version=versionsoft,killbefore=['Scribus.exe'])
remove_desktop_shortcut('Scribus %s' % versionsoft)
def update_package():
for i in wgets('https://www.scribus.net/downloads/stable-branch/').splitlines():
if "Current stable release: Scribus" in i:
lastversion = i.split(' Scribus ')[1].split('<')[0]
binaryfile = 'scribus-%s-windows-x64.exe' % lastversion
urlfile = 'https://netcologne.dl.sourceforge.net/project/scribus/scribus/%s/%s' % (lastversion,binaryfile)
for exe in glob.glob('*.exe'):
if exe != binaryfile:
remove_file(exe)
if not isfile(binaryfile):
wget(urlfile,binaryfile)
control.version = lastversion + '-0'
control.save_control_to_wapt()