summaryrefslogtreecommitdiff
path: root/python-zopeundo.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 15:02:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 15:02:22 +0000
commit325efb0f8813737b17ac10234da4855aa354c296 (patch)
tree4c58d6175bd4e4d9e8b4fada07d4f5424285f7ba /python-zopeundo.spec
parent6c8aefbf9b04daf51de8aed5284711002eecbf7c (diff)
automatic import of python-zopeundo
Diffstat (limited to 'python-zopeundo.spec')
-rw-r--r--python-zopeundo.spec82
1 files changed, 82 insertions, 0 deletions
diff --git a/python-zopeundo.spec b/python-zopeundo.spec
new file mode 100644
index 0000000..a593dd2
--- /dev/null
+++ b/python-zopeundo.spec
@@ -0,0 +1,82 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ZopeUndo
+Version: 5.0
+Release: 1
+Summary: ZODB undo support for Zope2.
+License: ZPL 2.1
+URL: http://pypi.python.org/pypi/ZopeUndo
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c2/56/f4dbb59ebd4f637f247f1b7d6aad91ffa4f835597d2068a64f479cd3dfec/ZopeUndo-5.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-setuptools
+
+%description
+This package is used to support the Prefix object that Zope 2 uses for the
+undo log. It is a separate package only to aid configuration management.
+This package is included in Zope 2. It can be used in a ZEO server to allow
+it to support Zope 2's undo log , without pulling in all of Zope 2.
+
+%package -n python3-ZopeUndo
+Summary: ZODB undo support for Zope2.
+Provides: python-ZopeUndo
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ZopeUndo
+This package is used to support the Prefix object that Zope 2 uses for the
+undo log. It is a separate package only to aid configuration management.
+This package is included in Zope 2. It can be used in a ZEO server to allow
+it to support Zope 2's undo log , without pulling in all of Zope 2.
+
+%package help
+Summary: Development documents and examples for ZopeUndo
+Provides: python3-ZopeUndo-doc
+%description help
+This package is used to support the Prefix object that Zope 2 uses for the
+undo log. It is a separate package only to aid configuration management.
+This package is included in Zope 2. It can be used in a ZEO server to allow
+it to support Zope 2's undo log , without pulling in all of Zope 2.
+
+%prep
+%autosetup -n ZopeUndo-5.0
+
+%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-ZopeUndo -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 5.0-1
+- Package Spec generated