diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 05:36:41 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 05:36:41 +0000 |
| commit | 8d43d4cbf2445bf8f1a28b5e719f6ffc2a131e59 (patch) | |
| tree | f498a7b0cc580feba55ac863a379ecb10d609817 | |
| parent | 3eafcaa816ecdbb9e4a4560261c78ea392ddcadf (diff) | |
automatic import of python-missing
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-missing.spec | 73 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/Missing-4.2.tar.gz diff --git a/python-missing.spec b/python-missing.spec new file mode 100644 index 0000000..17ea65a --- /dev/null +++ b/python-missing.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Missing +Version: 4.2 +Release: 1 +Summary: Special Missing objects used in Zope. +License: ZPL 2.1 +URL: https://github.com/zopefoundation/Missing +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ad/88/3a98fc77dac4558261bea3c5276019f38bbe1c4f1e1663564f64d55d6807/Missing-4.2.tar.gz +BuildArch: noarch + +Requires: python3-ExtensionClass + +%description +Missing provides special objects used in some Zope internals like the ZCatalog. + +%package -n python3-Missing +Summary: Special Missing objects used in Zope. +Provides: python-Missing +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Missing +Missing provides special objects used in some Zope internals like the ZCatalog. + +%package help +Summary: Development documents and examples for Missing +Provides: python3-Missing-doc +%description help +Missing provides special objects used in some Zope internals like the ZCatalog. + +%prep +%autosetup -n Missing-4.2 + +%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-Missing -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 4.2-1 +- Package Spec generated @@ -0,0 +1 @@ +7fcefd8573b8a8da164b59c8bab1ee4d Missing-4.2.tar.gz |
