brotli: first release
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import pythonmodules
|
||||
|
||||
WorkDir="brotli-%s" % get.srcVERSION()
|
||||
|
||||
def setup():
|
||||
shelltools.cd("..")
|
||||
shelltools.makedirs("build_python3")
|
||||
shelltools.copytree("./%s" % WorkDir, "build_python3")
|
||||
shelltools.cd(WorkDir)
|
||||
|
||||
cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
-DCMAKE_BUILD_TYPE=Release")
|
||||
|
||||
def build():
|
||||
cmaketools.make()
|
||||
|
||||
shelltools.cd("../build_python3/%s" % WorkDir)
|
||||
# fix unused direct dependency analysis
|
||||
shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread -lbz2 -ldl")
|
||||
pythonmodules.compile(pyVer="3")
|
||||
|
||||
def check():
|
||||
cmaketools.make("test")
|
||||
shelltools.cd("../build_python3/%s" % WorkDir)
|
||||
pythonmodules.run("setup.py test", pyVer="3")
|
||||
|
||||
def install():
|
||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
#pisitools.dodoc("LICENSE*")
|
||||
|
||||
shelltools.cd("../build_python3/%s" % WorkDir)
|
||||
pythonmodules.install(pyVer="3")
|
||||
@@ -0,0 +1,74 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>brotli</Name>
|
||||
<Homepage>https://github.com/google/brotli</Homepage>
|
||||
<Packager>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Packager>
|
||||
<PartOf>util.archive</PartOf>
|
||||
<License>MIT</License>
|
||||
<IsA>library</IsA>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Brotli compression format.</Summary>
|
||||
<Description>Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.</Description>
|
||||
<Archive sha1sum="ee64a380152aa20fbc1098fe3799104884c570c1" type="targz">https://github.com/google/brotli/archive/v1.0.7.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>python3-setuptools</Dependency>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>cmake</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>brotli</Name>
|
||||
<Summary>Brotli compression format.</Summary>
|
||||
<PartOf>util.archive</PartOf>
|
||||
<RuntimeDependencies>
|
||||
<!--<Dependency>python3</Dependency>-->
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc/brotli</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>brotli-devel</Name>
|
||||
<Summary>Development files for brotli.</Summary>
|
||||
<PartOf>util.archive</PartOf>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">brotli</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python3-brotli</Name>
|
||||
<Summary>Python bindings for brotli compression format.</Summary>
|
||||
<PartOf>programming.language.python3</PartOf>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>python3</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/python3*</Path>
|
||||
<Path fileType="doc">/usr/share/doc/python3-brotli</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2020-05-16</Date>
|
||||
<Version>1.0.7</Version>
|
||||
<Comment>First release.</Comment>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>brotli</Name>
|
||||
<Summary xml:lang="tr">Brotli sıkıştırma biçemi.</Summary>
|
||||
<Description xml:lang="tr">Brotli, hali hazırda bulanan sıkıştırma biçemleri arasında LZ77 algoritmasının bir türünü, Huffman kodlamasını ve ikinci sıralamalı içerik modellemesini, en iyi sıkıştırma oranıyla kullanan google tarafından geliştirilen bir sıkıştırma aracıdır.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>brotli-devel</Name>
|
||||
<Summary xml:lang="tr">brotli için geliştirme dosyaları</Summary>
|
||||
<Description xml:lang="tr">brotli-devel, brotli için geliştirme dosyalarını içerir.</Description>
|
||||
</Package>
|
||||
|
||||
<Source>
|
||||
<Name>python3-brotli</Name>
|
||||
<Summary xml:lang="tr">Brotli için python bağlayıcıları.</Summary>
|
||||
<Description xml:lang="tr">python3-brotli, brotli için python bağlayıcıları sunar.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user