summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-08 07:10:01 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-08 07:10:01 +0000
commitb46e1fff639befb8fdaaa1beb266f50a95d47eb3 (patch)
tree45b49795c996b58b8c27d9905e269a002eee83ab
parent08e60e0573af711687c62023422ebf4eba8f8695 (diff)
automatic import of python-cerealizer
-rw-r--r--.gitignore1
-rw-r--r--python-cerealizer.spec81
-rw-r--r--sources1
3 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..fe3fbe7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Cerealizer-0.8.3.tar.gz
diff --git a/python-cerealizer.spec b/python-cerealizer.spec
new file mode 100644
index 0000000..ecd1632
--- /dev/null
+++ b/python-cerealizer.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Cerealizer
+Version: 0.8.3
+Release: 1
+Summary: A secure pickle-like module
+License: Python licence
+URL: http://www.lesfleursdunormal.fr/static/informatique/cerealizer/index_en.html
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ea/43/e352d1fd210acbff8996ea208c6b589030baa77050df8c9c80710657f188/Cerealizer-0.8.3.tar.gz
+BuildArch: noarch
+
+
+%description
+A secure pickle-like module.
+It support basic types (int, string, unicode, tuple, list, dict, set,...),
+old and new-style classes (you need to register the class for security), object cycles,
+and it can be extended to support C-defined type.
+
+%package -n python3-Cerealizer
+Summary: A secure pickle-like module
+Provides: python-Cerealizer
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Cerealizer
+A secure pickle-like module.
+It support basic types (int, string, unicode, tuple, list, dict, set,...),
+old and new-style classes (you need to register the class for security), object cycles,
+and it can be extended to support C-defined type.
+
+%package help
+Summary: Development documents and examples for Cerealizer
+Provides: python3-Cerealizer-doc
+%description help
+A secure pickle-like module.
+It support basic types (int, string, unicode, tuple, list, dict, set,...),
+old and new-style classes (you need to register the class for security), object cycles,
+and it can be extended to support C-defined type.
+
+%prep
+%autosetup -n Cerealizer-0.8.3
+
+%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-Cerealizer -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Mar 08 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7cd5f86
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a7cf54e5db5cb6485627d116ef90f89f Cerealizer-0.8.3.tar.gz