Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
purple-hangouts
>
protobuf
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 22
[-]
[+]
Added
protobuf.spec
@@ -0,0 +1,146 @@ +# +# spec file for package protobuf +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define soname 9 +Name: protobuf +Version: 2.6.1 +Release: 5.1 +Summary: Protocol Buffers - Google's data interchange format +License: BSD-3-Clause +Group: Development/Libraries/C and C++ +Url: https://github.com/google/protobuf/ +Source0: https://github.com/google/protobuf/releases/download/v%{version}/%{name}-%{version}.tar.bz2 +Source1: manifest.txt.in +Source2: baselibs.conf +Patch0: protobuf-setuptools-2.4.1.patch +# fix no-return-in-nonvoid-function google/protobuf/extension_set.cc:74 +Patch1: protobuf-return-no-nonvoid.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: pkgconfig + +%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. + +%package -n libprotobuf%{soname} +Summary: Protocol Buffers - Google's data interchange format +Group: System/Libraries + +%description -n libprotobuf%{soname} +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. + +%package -n libprotoc%{soname} +Summary: Protocol Buffers - Google's data interchange format +Group: System/Libraries + +%description -n libprotoc%{soname} +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. + +%package -n libprotobuf-lite%{soname} +Summary: Protocol Buffers - Google's data interchange format +Group: System/Libraries + +%description -n libprotobuf-lite%{soname} +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. + +%package devel +Summary: Header files, libraries and development documentation for %{name} +Group: Development/Libraries/C and C++ +Requires: gcc-c++ +Requires: libprotobuf%{soname} = %{version} +Requires: libprotobuf-lite%{soname} +Requires: zlib-devel +Provides: libprotobuf-devel = %{version} + +%description devel +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. + +%prep + +%setup -q +%patch0 +%patch1 -p1 +# + + +%configure \ + --disable-static + +make %{?_smp_mflags} + +%install +make DESTDIR=%{buildroot} install %{?_smp_mflags} +install -Dm 0644 editors/proto.vim %{buildroot}%{_datadir}/vim/site/syntax/proto.vim +# no need for that +find %{buildroot} -type f -name "*.la" -delete -print + + +%fdupes -s %{buildroot}%{py_sitedir} + +%post -n libprotobuf%{soname} -p /sbin/ldconfig + +%postun -n libprotobuf%{soname} -p /sbin/ldconfig + +%post -n libprotoc%{soname} -p /sbin/ldconfig + +%postun -n libprotoc%{soname} -p /sbin/ldconfig + +%post -n libprotobuf-lite%{soname} -p /sbin/ldconfig + +%postun -n libprotobuf-lite%{soname} -p /sbin/ldconfig + +%files -n libprotobuf%{soname} +%defattr(-, root, root) +%{_libdir}/libprotobuf.so.%{soname}* + +%files -n libprotoc%{soname} +%defattr(-, root, root) +%{_libdir}/libprotoc.so.%{soname}* + +%files -n libprotobuf-lite%{soname} +%defattr(-, root, root) +%{_libdir}/libprotobuf-lite.so.%{soname}* + +%files devel +%defattr(-,root,root) +%doc CHANGES.txt CONTRIBUTORS.txt README.md +%{_bindir}/protoc +%{_includedir}/google +%{_libdir}/*.so +%{_libdir}/pkgconfig/* +%{_datadir}/vim + + +%changelog +* Mon Dec 7 2015 lnussel@suse.de +- disable google-apputils usage. They are only used for the testsuite which + wasn't called anyways. The next upstream version will not use + apputils anymore anyways. Fixes build on SLE12. + https://github.com/google/protobuf/commit/9f42f5f4a423b923f7b07ae8c5e8db4943df49c6 + bnc#957472