tis-libreoffice-still icon

LibreOffice Still

Paquet d’installation silencieuse pour LibreOffice Still

7.1.5-14
Office
Office

  • package: tis-libreoffice-still
  • name: LibreOffice Still
  • version: 7.1.5-14
  • categories: Office
  • maintainer: Tranquil IT Systems,Jimmy PELÉ,Kevin Guerineau
  • editor: The Document Foundation
  • licence: MPLv2.0 (secondary license GPL, LGPLv3+ or Apache License 2.0)
  • locale: all
  • target_os: linux
  • impacted_process: soffice,sbase,scalc,sdraw,simpress,smath,swriter
  • architecture: x64
  • signature_date:
  • size: 466.27 Mo
  • installed_size: 980.25 Mo
  • homepage : https://www.libreoffice.org/
  • conflicts :

package           : tis-libreoffice-still
version           : 7.1.5-14
architecture      : x64
section           : base
priority          : optional
name              : LibreOffice Still
categories        : Office
maintainer        : Tranquil IT Systems,Jimmy PELÉ,Kevin Guerineau
description       : LibreOffice (Still Branch) is a free and open-source office suite
depends           : 
conflicts         : tis-libreoffice-fresh,tis-libreoffice-evolution
maturity          : PROD
locale            : all
target_os         : linux
min_wapt_version  : 
sources           : https://download.documentfoundation.org/libreoffice
installed_size    : 980246528
impacted_process  : soffice,sbase,scalc,sdraw,simpress,smath,swriter
description_fr    : LibreOffice (Branche Stable) est une suite bureautique libre et gratuite
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : The Document Foundation
keywords          : bureautique,office,suite
licence           : MPLv2.0 (secondary license GPL, LGPLv3+ or Apache License 2.0)
homepage          : https://www.libreoffice.org/
package_uuid      : 64a8b442-b51a-48a7-b5c0-fcf0f9a31452
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 9c51eebe7a7aa8b0066cc11588899f1add0a10f4b80fcee271d6eca64be46a87
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : ZZAxZEx2ZKRSKu5XdMfxHkPH6mouuLmRrykFlG2pthctWoGv4okN/rG7c8PxAMktQ2d3sUBOI987Up10XKy8Y+5PueqxSqgM1McuYpC0ghTuo+JL9gWL+6ZwUNN+m/5zJV+fOOeLP7XMhOjGQDoF9/4bDEII/1bgKYEGB7RfzA7OBGCXXFQKr7ukLQWYcXdQ7NEMV5XC9jtj4GvHKjIGmkvSllYesT74gP78y+H/9/oaICzRn4MXu9WCYtVzEiZPHaWlFzs3CaOFuspMaWW3tkytQeEaA5LooekJ1BgsTsLjOPZCjB0oGzg9rtb4fXxQct3OhX8nlTpBoRu3WHhzzg==
signature_date    : 2021-08-20T16:52:51.427857
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,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,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

# -*- coding: utf-8 -*-
import platform
from setuphelpers import *

uninstallkey = []


def install():

    isapt = True
    try:
        run('apt --version')
    except:
        isapt = False

    version_soft = control.version.split('-')[0]

    if isapt :
        uninstall()
        run('tar -xf LibreOffice_%s_Linux_x86-64_deb.tar.gz' % version_soft)
        run('dpkg -i */DEBS/*.deb')
    else:
        run('tar -xf LibreOffice_%s_Linux_x86-64_rpm.tar.gz' % version_soft)
        run('yum install RPMS/*.rpm -y')

def uninstall():
    run_notfatal('LANG=C DEBIAN_FRONTEND=noninteractive apt-get remove -y *libobasis*')
    run_notfatal('LANG=C DEBIAN_FRONTEND=noninteractive apt-get remove -y *libreoffice*')



def update_package():
      # Update transition from BeautifulSoup 3 to 4
    try:
        import bs4 as BeautifulSoup
    except:
        import BeautifulSoup
    import requests,re
    from waptpackage import PackageEntry

    # Get Proxy informations from WAPT settings
    proxies = {}
    if isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    verify=True
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    current_version = pe['version'].split('-',1)[0]
    verify=True

    url = "https://www.libreoffice.org/download/download"

    # Get latest version number from official website
    page = requests.get(url,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'},verify=verify,proxies=proxies).text
    bs = BeautifulSoup.BeautifulSoup(page)
    bs_raw_string = str(bs.findAll('span',{'class':'dl_version_number'}))
    version1 = bs_raw_string
    version0 = version1.split('>',3)[3]
    version = version0.split('<',1)[0]
    print('Latest LibreOffice stable version is: '+ version)

    #https://download.documentfoundation.org/libreoffice/stable/
    #https://par.mirror.cyberbits.eu/tdf/libreoffice/stable/

    urldl = "https://download.documentfoundation.org/libreoffice/stable/%s/deb/x86_64/LibreOffice_%s_Linux_x86-64_deb.tar.gz" % (version,version)
    print('Download url is: ' + urldl)
    filelatest = "LibreOffice_%s_Linux_x86-64_deb.tar.gz" % version

    # Deleting outdated binaries
    for fileactual in glob.glob('LibreOffice_*_Linux_x86-64_deb.tar.gz'):
        if fileactual != filelatest :
            print(fileactual + ' Deleted')
            remove_file(fileactual)

    # Downloading latest binaires
    if not isfile(filelatest):
        print('Download ' + urldl)
        wget(urldl,filelatest,proxies=proxies)

        control.version = version + '-14'
        control.save_control_to_wapt()
        print ('Update package done. You can now build-upload your package')
    else:
        print ('This package is already up-to-date')



    urldl = "https://download.documentfoundation.org/libreoffice/stable/%s/rpm/x86_64/LibreOffice_%s_Linux_x86-64_rpm.tar.gz" % (version,version)
    print('Download url is: ' + urldl)
    filelatest = "LibreOffice_%s_Linux_x86-64_rpm.tar.gz" % version

    # Deleting outdated binaries
    for fileactual in glob.glob('LibreOffice_*_Linux_x86-64_rpm.tar.gz'):
        if fileactual != filelatest :
            print(fileactual + ' Deleted')
            remove_file(fileactual)

    # Downloading latest binaires
    if not isfile(filelatest):
        print('Download ' + urldl)
        wget(urldl,filelatest,proxies=proxies)
        print ('Update package done. You can now build-upload your package')
    else:
        print ('This package is already up-to-date')

fb4c1f0fac5b9a270235864ec190d1df896cedb2fbf2cb9cbd9870cc79a7c53e : LibreOffice_7.1.5_Linux_x86-64_deb.tar.gz
9c092a7a8f91bffd89ebaa41ed35f61190c977fe854c3f6341cc58911500fbfd : LibreOffice_7.1.5_Linux_x86-64_rpm.tar.gz
310540bb1887e56ab138b8fcbca3324990d1fbe8c2597df42844a7bcd249fd21 : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
9c51eebe7a7aa8b0066cc11588899f1add0a10f4b80fcee271d6eca64be46a87 : WAPT/icon.png
fdd9db03cb28a75c9b2af4f5154e55cce7feaa098404f37d3fe5c6cdfb483729 : WAPT/wapt.psproj
4b3e440e46c380537fd5b5f3ddc7e8aa886f5150f72f81ee83e80a3a86c137e7 : WAPT/control