diff --git a/network/misc/protobuf/actions.py b/network/misc/protobuf/actions.py index ba8c8b54a5..d92137c86b 100644 --- a/network/misc/protobuf/actions.py +++ b/network/misc/protobuf/actions.py @@ -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") \ No newline at end of file diff --git a/network/misc/protobuf/pspec.xml b/network/misc/protobuf/pspec.xml index a288f77b73..b6f938668a 100644 --- a/network/misc/protobuf/pspec.xml +++ b/network/misc/protobuf/pspec.xml @@ -1,36 +1,39 @@ - + protobuf - http://code.google.com/p/protobuf + https://developers.google.com/protocol-buffers/ PisiLinux Community admins@pisilinux.org - Apache-2.0 + network.misc + BSD library Google's data interchange format 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. - https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-all-3.6.1.tar.gz - https://github.com/google/googletest/archive/release-1.8.0.tar.gz + https://github.com/protocolbuffers/protobuf/releases/download/v3.11.2/protobuf-all-3.11.2.tar.gz + python3-setuptools python-setuptools + python3-devel + python-devel protobuf + Google's data interchange format libgcc - /usr/bin /usr/lib/libproto* - /usr/lib/python2.7/site-packages - /usr/share/doc - /usr/share/vim /usr/share/emacs + /usr/bin + /usr/share/vim + /usr/share/doc @@ -45,35 +48,79 @@ /usr/lib/pkgconfig + + + python-protobuf + Python 2 bindings for Google Protocol Buffers + + protobuf-devel + + + /usr/lib/python2* + + + + + python3-protobuf + Python 3 bindings for Google Protocol Buffers + + protobuf-devel + python3 + + + /usr/lib/python3* + + + + 2020-01-24 + 3.11.2 + Fix deps and clean + Blue Devil + bluedevil@sctzine.com + + + 2019-12-25 + 3.11.2 + Version bump + Blue Devil + bluedevil@sctzine.com + + + 2016-03-23 + 3.0.0_beta2 + Version bump, rebuilt with docker + İbrahim KARAGÜZEL + karaguzelibrahim@gmail.com + - 2018-08-06 - 3.6.1 - Rebuild. - PisiLinux Community - admins@pisilinux.org + 2015-02-16 + 3.0.0_pre1 + Version bump. + Vedat Demir + vedat@pisilinux.org - 2018-08-05 + 2015-02-03 2.6.1 - Rebuild. - PisiLinux Community - admins@pisilinux.org + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org - 2017-03-08 - 2.6.1 - Rebuild. - PisiLinux Community - admins@pisilinux.org + 2014-02-05 + 2.5.0 + Version Bump. + Alihan Öztürk + alihan@pisilinux.org - 2016-06-12 - 2.6.1 + 2012-09-03 + 2.4.1 First release PisiLinux Community admins@pisilinux.org - + \ No newline at end of file diff --git a/network/misc/protobuf/translations.xml b/network/misc/protobuf/translations.xml index 6b1ab6d9f1..cfe231d754 100644 --- a/network/misc/protobuf/translations.xml +++ b/network/misc/protobuf/translations.xml @@ -9,5 +9,18 @@ protobuf-devel protobuf için geliştirme dosyaları + protobuf-devel, protobuf için geliştime dosyaları içerir. - + + + python-protobuf + protobuf için geliştirme dosyaları + protobuf-devel, protobuf için geliştime dosyaları içerir. + + + + python3-protobuf + protobuf için geliştirme dosyaları + protobuf-devel, protobuf için geliştime dosyaları içerir. + + \ No newline at end of file