Détails du package smp-libreoffice-stable_6.1.5.2-1_x64_all.wapt
retour Revenir à la liste des packages

smp-libreoffice-stable

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-libreoffice-stable
version           : 6.1.5.2-1
architecture      : x64
section           : base
priority          : optional
maintainer        : lesfourmisduweb.org
description       : Suite Bureautique LibreOffice
depends           : 
conflicts         : smp-libreoffice-evolution
maturity          : 
locale            : all
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 1.5.1.20
sources           : https://fr.libreoffice.org/download/libreoffice-stable/
installed_size    : 483975168
impacted_process  : soffice.exe,sbase.exe,scalc.exe,sdraw.exe,simpress.exe,smath.exe,swriter.exe
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : f6530212-c189-4e74-9302-e42f67612c78
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : N4uAnEeHIMsFnMhBbCkggJLGANGyDvNELnHd404e1DrPY0hqB5IDlLs99POB6v8sz1QUSxSN/DnD3I+hs4ZyTDcugJcqgvYkDPLSGkca55iijTxsuSE3SMPNIT8TSCA1efAI6P1Z9pK9IM6hss8Ou1Yx+E1EpNLjqD6JpYOjZEPFvT+HO6tZrCZ7JHdEqK5Q7mxO6U/zoWbFIP1KnZgcTaL9j5CJwD0QjswaBEejHSw/RmD9W+fAnzifsDgx+f1Mn6FeebnvUqVARkyrVNVTzlqkSICo1i3pyUL+Ckh/6yyUixrMihqBP2dXY5Yx3/20MzQUcbGrTpKuKXwKCeCf/Q==
signature_date    : 2019-02-07T23:32:30.006000
signed_attributes : package,version,architecture,section,priority,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,audit_schedule,editor,keywords,licence,homepage,package_uuid,signer,signer_fingerprint,signature_date,signed_attributes






Fichier setup.py :

#!/usr/bin/python
# -*- coding: utf-8 -*-

import platform
import time
from setuphelpers import *

uninstallkey = []

def install():

    diskfreespacebefore = get_disk_free_space(programfiles)

    libre_office_exe = ['soffice.exe','sbase.exe','scalc.exe','sdraw.exe','simpress.exe','smath.exe','swriter.exe']
    for msi in glob.glob('*.msi'):
        argument = {}
        if not installed_softwares('Microsoft Office'):
            argument = {'SELECT_WORD':1,'SELECT_EXCEL':1,'SELECT_POWERPOINT':1,'CREATEDESKTOPLINK':0,'RebootYesNo':'No','ALLUSER':1,'ISCHECKFORPRODUCTUPDATES':0,'QUICKSTART':0}
        else:
            argument = {'CREATEDESKTOPLINK':0,'RebootYesNo':'No','ALLUSER':1,'ISCHECKFORPRODUCTUPDATES':0,'QUICKSTART':0}
        install_msi_if_needed(msi,killbefore=libre_office_exe,timeout=1200,properties=argument)

    diskfreespaceafter = get_disk_free_space(programfiles)
    difffreespace = diskfreespacebefore - diskfreespaceafter
    print(ur"Espace disque necessaire pour l'installation : " + str(difffreespace))

def update_package():
    htmlSource = wgets("https://www.libreoffice.org/download/download/").splitlines()
    foundoffice = False
    found = False
    for line in htmlSource :
        if 'enterprise' in line:
            found = True
        if found == True:
            if 'http://download.documentfoundation.org/libreoffice/stable/' in line:
                start = line.find("/stable/")
                startversion = start + 8
                end = line.find("/win/")
                realversion = line[startversion:end]
                break
    msix64 = "LibreOffice_%s_Win_x64.msi" % realversion
    url = "http://download.documentfoundation.org/libreoffice/stable/%s/win/" % realversion

    if not isfile(msix64):
        wget(url + "x86_64/" +msix64,msix64)
    else:
        print(msix64 + ' already exist')

    lastest_version = get_msi_properties(msix64)['ProductVersion']

    allmsi = glob.glob('*.msi')
    for msi in allmsi:
        vers = get_msi_properties(msi)['ProductVersion']
        if vers != lastest_version :
            remove_file(msi)

    # change version of package
    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = lastest_version +'-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()