Compare commits

...

12 Commits

Author SHA1 Message Date
d75e092961 added python 3.10 subpackage [release 21.12-2mamba;Tue Jul 04 2023] 2024-01-06 10:33:07 +01:00
684ce7a1c7 automatic version update by autodist [release 21.12-1mamba;Sat Dec 17 2022] 2024-01-06 10:33:07 +01:00
8b80861a2e automatic version update by autodist [release 21.11-1mamba;Fri Dec 09 2022] 2024-01-06 10:33:07 +01:00
6ebeb0bdf4 automatic version update by autodist [release 21.10-1mamba;Thu Dec 01 2022] 2024-01-06 10:33:07 +01:00
23dc3b955e automatic version update by autodist [release 21.9-1mamba;Thu Oct 27 2022] 2024-01-06 10:33:07 +01:00
1b02d0b91b automatic version update by autodist [release 21.8-1mamba;Thu Oct 20 2022] 2024-01-06 10:33:07 +01:00
3c2e85a5a2 automatic version update by autodist [release 21.7-1mamba;Fri Sep 30 2022] 2024-01-06 10:33:07 +01:00
12dd519dad automatic version update by autodist [release 21.6-1mamba;Sat Sep 17 2022] 2024-01-06 10:33:07 +01:00
3e3508d1d0 automatic version update by autodist [release 21.5-1mamba;Wed Aug 10 2022] 2024-01-06 10:33:07 +01:00
b5af356e0d automatic version update by autodist [release 21.4-1mamba;Tue Jul 26 2022] 2024-01-06 10:33:07 +01:00
1a8ef2dd99 automatic version update by autodist [release 21.3-1mamba;Thu Jul 21 2022] 2024-01-06 10:33:07 +01:00
1967ae71c0 automatic version update by autodist [release 3.20.1-1mamba;Sat Apr 23 2022] 2024-01-06 10:33:07 +01:00

View File

@ -1,6 +1,6 @@
Name: protobuf
Version: 3.19.4
Release: 1mamba
Version: 21.12
Release: 2mamba
Summary: A way of encoding structured data in an efficient yet extensible format
Group: Development/Tools
Vendor: openmamba
@ -13,6 +13,7 @@ License: BSD
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libpython3-devel
BuildRequires: libpython310-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
@ -40,20 +41,34 @@ Obsoletes: protobuf-devel < 3.17.0
%description -n lib%{name}-devel
This package contains static libraries and header files needed for development of Protocol Buffer
%package -n python-%{name}
%package -n python-%{name}-py3
Summary: Python bindings for %{name}
Group: System/Libraries/Python
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: python-protobuf
Obsoletes: python-protobuf <= 21.12-1mamba
%description -n python-%{name}-py3
This package contains the python bindings to %{protobuf} library.
%package -n python-%{name}-py310
Summary: Python bindings for %{name}
Group: System/Libraries/Python
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-%{name}
%description -n python-%{name}-py310
This package contains the python bindings to %{protobuf} library.
%debug_package
%prep
%setup -q
#-D -T
#:<< _EOF
./autogen.sh
cp -a python python310
%build
%configure
@ -65,6 +80,9 @@ LDFLAGS="-latomic"
cd python
CFLAGS="%{optflags}" %{__python3} setup.py build
cd ../python310
CFLAGS="%{optflags}" %{__python310} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
@ -79,6 +97,16 @@ cd python
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
cd ../python310
%{__python310} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python310_inc} \
--install-lib=%{python310_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -100,19 +128,64 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%dir %{_includedir}/google/protobuf
%{_includedir}/google/protobuf/*
%{_libdir}/libprotobuf*.a
%{_libdir}/libprotobuf*.la
%{_libdir}/libprotobuf*.so
%{_libdir}/libprotoc.a
%{_libdir}/libprotoc.la
%{_libdir}/libprotoc.so
%{_libdir}/pkgconfig/protobuf*.pc
%files -n python-%{name} -f python/%{name}.filelist
%files -n python-%{name}-py3 -f python/%{name}.filelist
%defattr(-,root,root)
%dir %{python3_sitearch}/protobuf-%{version}-py*.egg-info
%{python3_sitearch}/protobuf-%{version}-py*.egg-info/*
%dir %{python3_sitearch}/protobuf-*-py*.egg-info
%{python3_sitearch}/protobuf-*-py*.egg-info/*
%files -n python-%{name}-py310 -f python310/%{name}.filelist
%defattr(-,root,root)
%dir %{python310_sitearch}/protobuf-*-py*.egg-info
%{python310_sitearch}/protobuf-*-py*.egg-info/*
%changelog
* Tue Jul 04 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 21.12-2mamba
- added python 3.10 subpackage
* Sat Dec 17 2022 Automatic Build System <autodist@mambasoft.it> 21.12-1mamba
- automatic version update by autodist
* Fri Dec 09 2022 Automatic Build System <autodist@mambasoft.it> 21.11-1mamba
- automatic version update by autodist
* Thu Dec 01 2022 Automatic Build System <autodist@mambasoft.it> 21.10-1mamba
- automatic version update by autodist
* Thu Oct 27 2022 Automatic Build System <autodist@mambasoft.it> 21.9-1mamba
- automatic version update by autodist
* Thu Oct 20 2022 Automatic Build System <autodist@mambasoft.it> 21.8-1mamba
- automatic version update by autodist
* Fri Sep 30 2022 Automatic Build System <autodist@mambasoft.it> 21.7-1mamba
- automatic version update by autodist
* Sat Sep 17 2022 Automatic Build System <autodist@mambasoft.it> 21.6-1mamba
- automatic version update by autodist
* Wed Aug 10 2022 Automatic Build System <autodist@mambasoft.it> 21.5-1mamba
- automatic version update by autodist
* Tue Jul 26 2022 Automatic Build System <autodist@mambasoft.it> 21.4-1mamba
- automatic version update by autodist
* Thu Jul 21 2022 Automatic Build System <autodist@mambasoft.it> 21.3-1mamba
- automatic version update by autodist
* Tue Jun 28 2022 Automatic Build System <autodist@mambasoft.it> 21.2-1mamba
- automatic version update by autodist
* Sun May 29 2022 Automatic Build System <autodist@mambasoft.it> 21.1-1mamba
- automatic version update by autodist
* Sat Apr 23 2022 Automatic Build System <autodist@mambasoft.it> 3.20.1-1mamba
- automatic version update by autodist
* Sat Jan 29 2022 Automatic Build System <autodist@mambasoft.it> 3.19.4-1mamba
- automatic version update by autodist