diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:12:04 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:12:04 +0000 |
commit | f2116ed2f1970212d0980479913284a33b83b80c (patch) | |
tree | e71b5d0032114ee8b9a09f4786abbfc6069a8240 | |
parent | fd1797f222bb940d125ac8824fcb52c22114d854 (diff) |
automatic import of python-protobuf
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-protobuf.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/protobuf-4.22.1.tar.gz diff --git a/python-protobuf.spec b/python-protobuf.spec new file mode 100644 index 0000000..ac3f15d --- /dev/null +++ b/python-protobuf.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-protobuf +Version: 4.22.1 +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://mirrors.nju.edu.cn/pypi/web/packages/4a/e0/9da6a25f4ac72455f5da9d4af8d75144d15e29d415220773850e0ec23d3e/protobuf-4.22.1.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-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-protobuf + + +%package help +Summary: Development documents and examples for protobuf +Provides: python3-protobuf-doc +%description help + + +%prep +%autosetup -n protobuf-4.22.1 + +%build +%py3_build + +%install +%py3_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} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +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 +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 4.22.1-1 +- Package Spec generated @@ -0,0 +1 @@ +fef1b8139003bc2586d44dc7ea9b4636 protobuf-4.22.1.tar.gz |