added python subpackage [release 3.12.4-2mamba;Sun Jan 31 2021]
This commit is contained in:
parent
b7d84eea44
commit
b750ab6d66
@ -1,6 +1,6 @@
|
|||||||
Name: protobuf
|
Name: protobuf
|
||||||
Version: 3.12.4
|
Version: 3.12.4
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A way of encoding structured data in an efficient yet extensible format
|
Summary: A way of encoding structured data in an efficient yet extensible format
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -8,7 +8,6 @@ Distribution: openmamba
|
|||||||
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
|
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
|
||||||
URL: http://code.google.com/p/protobuf/
|
URL: http://code.google.com/p/protobuf/
|
||||||
Source: https://github.com/google/protobuf.git/v%{version}/protobuf-%{version}.tar.bz2
|
Source: https://github.com/google/protobuf.git/v%{version}/protobuf-%{version}.tar.bz2
|
||||||
#Source: http://protobuf.googlecode.com/files/protobuf-%{version}.tar.bz2
|
|
||||||
License: BSD
|
License: BSD
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
@ -16,6 +15,7 @@ BuildRequires: glibc-devel
|
|||||||
BuildRequires: libgcc
|
BuildRequires: libgcc
|
||||||
BuildRequires: libstdc++6-devel
|
BuildRequires: libstdc++6-devel
|
||||||
BuildRequires: libz-devel
|
BuildRequires: libz-devel
|
||||||
|
BuildRequires: python3
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
@ -38,15 +38,23 @@ Provides: protobuf-devel
|
|||||||
Obsoletes: protobuf-devel
|
Obsoletes: protobuf-devel
|
||||||
|
|
||||||
%description -n lib%{name}-devel
|
%description -n lib%{name}-devel
|
||||||
This package contains static libraries and header files need for development of Protocol Buffer
|
This package contains static libraries and header files needed for development of Protocol Buffer
|
||||||
|
|
||||||
|
%package -n python-%{name}
|
||||||
|
Summary: Python bindings for %{name}
|
||||||
|
Group: System/Libraries/Python
|
||||||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description -n python-%{name}
|
||||||
|
This package contains the python bindings to %{protobuf} library.
|
||||||
|
|
||||||
%debug_package
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
|
||||||
%configure
|
%configure
|
||||||
|
|
||||||
%make \
|
%make \
|
||||||
@ -54,10 +62,23 @@ This package contains static libraries and header files need for development of
|
|||||||
LDFLAGS="-latomic"
|
LDFLAGS="-latomic"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
cd python
|
||||||
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
|
cd python
|
||||||
|
%{__python3} setup.py install \
|
||||||
|
-O1 --skip-build \
|
||||||
|
--root="%{buildroot}" \
|
||||||
|
--install-headers=%{python3_inc} \
|
||||||
|
--install-lib=%{python3_sitearch} \
|
||||||
|
--record=%{name}.filelist
|
||||||
|
|
||||||
|
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
@ -86,7 +107,13 @@ LDFLAGS="-latomic"
|
|||||||
%{_libdir}/libprotoc.so
|
%{_libdir}/libprotoc.so
|
||||||
%{_libdir}/pkgconfig/protobuf*.pc
|
%{_libdir}/pkgconfig/protobuf*.pc
|
||||||
|
|
||||||
|
%files -n python-%{name} -f python/%{name}.filelist
|
||||||
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jan 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.12.4-2mamba
|
||||||
|
- added python subpackage
|
||||||
|
|
||||||
* Thu Aug 06 2020 Automatic Build System <autodist@mambasoft.it> 3.12.4-1mamba
|
* Thu Aug 06 2020 Automatic Build System <autodist@mambasoft.it> 3.12.4-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user