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 : x86
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 : 224301056
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 : 914d216a-82e2-4ab9-bbd5-9e308707aeba
valid_from :
valid_until :
forced_install_on :
changelog :
signer : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature : e4e+VVBEhw6Pz5FKwXcvDhNI4Uo6Uuuq1b6XPpiEWaD+GqsU7/QPaoFefZWewtXl0tsDkAxkar1+46Ylu3RcmY2wgACy7zuIPVX4FBKOLEB2p8+aQOrACThmW4Kl1DGDUbZmOVz6T1MpwjKnCIwPDU5Wqzfg7ivp6XoGZ/8VSeABwUdYdfLNtrvsT+NcGHNJiShL04wZZlK4KxD7oGgpQQjVgF4FP81NgtSPPVzDscNqanHyRd0fEsC1s/FUx6UFlMvN8hg8nuWm/qBEycnwutCqreliJ5lf1jtteQmO03zWtcxAgF47u2ihLBsk9+eIsKnVIecXsMawArEKYteCyQ==
signature_date : 2020-07-04T01:56:23.189000
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 platform
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')
cmd = WAPT.uninstall_cmd(uninstall['key'])
run(cmd)
time.sleep(120)
install_exe_if_needed('scribus-%s-windows.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.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()