summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 09:59:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 09:59:05 +0000
commit8eb890a26f57afca6f13b271be0e1686f8b55784 (patch)
tree7762cc747d3459ec4433867fdcc17d1dfd8660d4
parent278e0cdd31de521e444e11834a8e1fe3d3c63643 (diff)
automatic import of python-protobuf3-to-dict
-rw-r--r--.gitignore1
-rw-r--r--python-protobuf3-to-dict.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4532bd6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/protobuf3-to-dict-0.1.5.tar.gz
diff --git a/python-protobuf3-to-dict.spec b/python-protobuf3-to-dict.spec
new file mode 100644
index 0000000..f202653
--- /dev/null
+++ b/python-protobuf3-to-dict.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-protobuf3-to-dict
+Version: 0.1.5
+Release: 1
+Summary: Ben Hodgson: A teeny Python library for creating Python dicts from protocol buffers and the reverse. Useful as an intermediate step before serialisation (e.g. to JSON). Kapor: upgrade it to PB3 and PY3, rename it to protobuf3-to-dict
+License: Public Domain
+URL: https://github.com/kaporzhu/protobuf-to-dict
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6b/55/522bb43539fed463275ee803d79851faaebe86d17e7e3dbc89870d0322b9/protobuf3-to-dict-0.1.5.tar.gz
+BuildArch: noarch
+
+
+%description
+UNKNOWN
+
+%package -n python3-protobuf3-to-dict
+Summary: Ben Hodgson: A teeny Python library for creating Python dicts from protocol buffers and the reverse. Useful as an intermediate step before serialisation (e.g. to JSON). Kapor: upgrade it to PB3 and PY3, rename it to protobuf3-to-dict
+Provides: python-protobuf3-to-dict
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-protobuf3-to-dict
+UNKNOWN
+
+%package help
+Summary: Development documents and examples for protobuf3-to-dict
+Provides: python3-protobuf3-to-dict-doc
+%description help
+UNKNOWN
+
+%prep
+%autosetup -n protobuf3-to-dict-0.1.5
+
+%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-protobuf3-to-dict -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0b9c844
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fc42c8615f30d1ca9b09f80534f07830 protobuf3-to-dict-0.1.5.tar.gz