diff --git a/protobuf-6.30.2.tar.gz b/protobuf-6.30.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7681e74e9fc1406ab314eaf0652dbe2734279bcd Binary files /dev/null and b/protobuf-6.30.2.tar.gz differ diff --git a/python-protobuf.spec b/python-protobuf.spec new file mode 100644 index 0000000000000000000000000000000000000000..5c9d6b050e8378815181efdb0d110b51f8af6952 --- /dev/null +++ b/python-protobuf.spec @@ -0,0 +1,63 @@ +%global _empty_manifest_terminate_build 0 +Name: python-protobuf +Version: 6.30.2 +Release: 1 +Summary: please add a summary manually as the author left a blank one +License: 3-Clause BSD License +URL: https://developers.google.com/protocol-buffers/ +Source0: https://files.pythonhosted.org/packages/c8/8c/cf2ac658216eebe49eaedf1e06bc06cbf6a143469236294a1171a51357c3/protobuf-6.30.2.tar.gz + + +%description + + +%package -n python3-protobuf +Summary: please add a summary manually as the author left a blank one +Provides: python-protobuf +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-protobuf + +%prep +%autosetup -n protobuf-6.30.2 + +%build +%pyproject_build + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +touch filelist.lst +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-protobuf -f filelist.lst +%{python3_sitearch}/* + +%changelog +* Mon Apr 28 2025 Python_Bot - 6.30.2-1 +- Package Spec generated