diff --git a/util/archive/brotli/actions.py b/util/archive/brotli/actions.py new file mode 100644 index 0000000000..0e3f11a4de --- /dev/null +++ b/util/archive/brotli/actions.py @@ -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") \ No newline at end of file diff --git a/util/archive/brotli/pspec.xml b/util/archive/brotli/pspec.xml new file mode 100644 index 0000000000..f529b73ae0 --- /dev/null +++ b/util/archive/brotli/pspec.xml @@ -0,0 +1,74 @@ + + + + + brotli + https://github.com/google/brotli + + Blue Devil + bluedevil@sctzine.com + + util.archive + MIT + library + app:console + Brotli compression format. + 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. + https://github.com/google/brotli/archive/v1.0.7.tar.gz + + python3-setuptools + python3-devel + cmake + + + + + brotli + Brotli compression format. + util.archive + + + + + /usr/bin + /usr/lib + /usr/share/doc/brotli + + + + + brotli-devel + Development files for brotli. + util.archive + + brotli + + + /usr/include + /usr/lib/pkgconfig + + + + + python3-brotli + Python bindings for brotli compression format. + programming.language.python3 + + python3 + + + /usr/lib/python3* + /usr/share/doc/python3-brotli + + + + + + 2020-05-16 + 1.0.7 + First release. + Blue Devil + bluedevil@sctzine.com + + + \ No newline at end of file diff --git a/util/archive/brotli/translations.xml b/util/archive/brotli/translations.xml new file mode 100644 index 0000000000..02e0c95532 --- /dev/null +++ b/util/archive/brotli/translations.xml @@ -0,0 +1,20 @@ + + + + brotli + Brotli sıkıştırma biçemi. + 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. + + + + brotli-devel + brotli için geliştirme dosyaları + brotli-devel, brotli için geliştirme dosyalarını içerir. + + + + python3-brotli + Brotli için python bağlayıcıları. + python3-brotli, brotli için python bağlayıcıları sunar. + + \ No newline at end of file