protobuf:ver.bump and split py packages
This commit is contained in:
@@ -4,18 +4,26 @@
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import pythonmodules
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
WorkDir="%s" % get.srcDIR()
|
||||
|
||||
def setup():
|
||||
# create a folder for python3 build
|
||||
shelltools.copy("python/", "python3/")
|
||||
|
||||
# suppress compiler warnings
|
||||
pisitools.cxxflags.add("-Wno-stringop-overflow -Wno-unused-function -Wno-deprecated-declarations")
|
||||
shelltools.export("PTHREAD_LIBS", "-lpthread")
|
||||
shelltools.copy("../googletest-release-1.8.0", "gtest")
|
||||
shelltools.system("./autogen.sh")
|
||||
autotools.autoreconf("-vif")
|
||||
autotools.configure("--disable-static")
|
||||
|
||||
# fix unused direct dependency analysis
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
|
||||
def build():
|
||||
@@ -23,14 +31,30 @@ def build():
|
||||
shelltools.cd("python")
|
||||
pythonmodules.compile()
|
||||
shelltools.cd("..")
|
||||
shelltools.cd("python3")
|
||||
pythonmodules.compile(pyVer="3")
|
||||
shelltools.cd("..")
|
||||
|
||||
# tests successfully completed but takes to much time!
|
||||
#def check():
|
||||
# autotools.make("check")
|
||||
# shelltools.cd("python")
|
||||
# pythonmodules.compile("test")
|
||||
# shelltools.cd("..")
|
||||
# shelltools.cd("python3")
|
||||
# pythonmodules.compile("test", pyVer="3")
|
||||
# shelltools.cd("..")
|
||||
|
||||
def install():
|
||||
autotools.install()
|
||||
shelltools.cd("python")
|
||||
pythonmodules.install()
|
||||
shelltools.cd("..")
|
||||
shelltools.cd("python3")
|
||||
pythonmodules.install(pyVer="3")
|
||||
shelltools.cd("..")
|
||||
|
||||
pisitools.insinto("/usr/share/vim/vimfiles/syntax/", "editors/proto.vim")
|
||||
pisitools.insinto("/usr/share/emacs/site-lisp/", "editors/protobuf-mode.el")
|
||||
|
||||
pisitools.dodoc("CHANGES.txt", "CONTRIBUTORS.txt", "LICENSE", "README.md")
|
||||
pisitools.dodoc("CHANGES.txt", "CONTRIBUTORS.txt", "LICENSE", "README.md")
|
||||
@@ -1,36 +1,39 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>protobuf</Name>
|
||||
<Homepage>http://code.google.com/p/protobuf</Homepage>
|
||||
<Homepage>https://developers.google.com/protocol-buffers/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>Apache-2.0</License>
|
||||
<PartOf>network.misc</PartOf>
|
||||
<License>BSD</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Google's data interchange format</Summary>
|
||||
<Description>Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.</Description>
|
||||
<Archive sha1sum="d403d06a8775375e7fe2557b38733205dfbc2e9e" type="targz">https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-all-3.6.1.tar.gz</Archive>
|
||||
<Archive sha1sum="e7e646a6204638fe8e87e165292b8dd9cd4c36ed" type="targz">https://github.com/google/googletest/archive/release-1.8.0.tar.gz</Archive>
|
||||
<Archive sha1sum="65deb27c67346345f9b3b9606400e793b8ae120d" type="targz">https://github.com/protocolbuffers/protobuf/releases/download/v3.11.2/protobuf-all-3.11.2.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>python3-setuptools</Dependency>
|
||||
<Dependency>python-setuptools</Dependency>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>python-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>protobuf</Name>
|
||||
<Summary>Google's data interchange format</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgcc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib/libproto*</Path>
|
||||
<Path fileType="library">/usr/lib/python2.7/site-packages</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="data">/usr/share/vim</Path>
|
||||
<Path fileType="data">/usr/share/emacs</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="data">/usr/share/vim</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
@@ -45,35 +48,79 @@
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python-protobuf</Name>
|
||||
<Summary>Python 2 bindings for Google Protocol Buffers</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">protobuf-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/python2*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python3-protobuf</Name>
|
||||
<Summary>Python 3 bindings for Google Protocol Buffers</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">protobuf-devel</Dependency>
|
||||
<Dependency>python3</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib/python3*</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="7">
|
||||
<Date>2020-01-24</Date>
|
||||
<Version>3.11.2</Version>
|
||||
<Comment>Fix deps and clean</Comment>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2019-12-25</Date>
|
||||
<Version>3.11.2</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2016-03-23</Date>
|
||||
<Version>3.0.0_beta2</Version>
|
||||
<Comment>Version bump, rebuilt with docker</Comment>
|
||||
<Name>İbrahim KARAGÜZEL</Name>
|
||||
<Email>karaguzelibrahim@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2018-08-06</Date>
|
||||
<Version>3.6.1</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
<Date>2015-02-16</Date>
|
||||
<Version>3.0.0_pre1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Vedat Demir</Name>
|
||||
<Email>vedat@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2018-08-05</Date>
|
||||
<Date>2015-02-03</Date>
|
||||
<Version>2.6.1</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2017-03-08</Date>
|
||||
<Version>2.6.1</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
<Date>2014-02-05</Date>
|
||||
<Version>2.5.0</Version>
|
||||
<Comment>Version Bump.</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2016-06-12</Date>
|
||||
<Version>2.6.1</Version>
|
||||
<Date>2012-09-03</Date>
|
||||
<Version>2.4.1</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
</PISI>
|
||||
@@ -9,5 +9,18 @@
|
||||
<Package>
|
||||
<Name>protobuf-devel</Name>
|
||||
<Summary xml:lang="tr">protobuf için geliştirme dosyaları</Summary>
|
||||
<Description xml:lang="tr">protobuf-devel, protobuf için geliştime dosyaları içerir.</Description>
|
||||
</Package>
|
||||
</PISI>
|
||||
|
||||
<Package>
|
||||
<Name>python-protobuf</Name>
|
||||
<Summary xml:lang="tr">protobuf için geliştirme dosyaları</Summary>
|
||||
<Description xml:lang="tr">protobuf-devel, protobuf için geliştime dosyaları içerir.</Description>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>python3-protobuf</Name>
|
||||
<Summary xml:lang="tr">protobuf için geliştirme dosyaları</Summary>
|
||||
<Description xml:lang="tr">protobuf-devel, protobuf için geliştime dosyaları içerir.</Description>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user