diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-23 03:06:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-23 03:06:09 +0000 |
commit | 1ba365f25d98c792450c43ad67123ea397b0282b (patch) | |
tree | d58f8514736d9d70b72d698078ab7350c4048319 | |
parent | b99177314c99ef77d23b5dc53c2497a17b119987 (diff) |
automatic import of python-trove-classifiers
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-trove-classifiers.spec | 80 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 82 insertions, 0 deletions
@@ -0,0 +1 @@ +/trove-classifiers-2024.1.8.tar.gz diff --git a/python-trove-classifiers.spec b/python-trove-classifiers.spec new file mode 100644 index 0000000..db8e7e8 --- /dev/null +++ b/python-trove-classifiers.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +%global common_description \ +Canonical source for classifiers + +Name: python-trove-classifiers +Version: 2024.1.8 +Release: 1 +Summary: Canonical source for classifiers on PyPI (pypi.org). +License: Apache-2.0 +URL: https://github.com/pypa/trove-classifiers +Source0: https://files.pythonhosted.org/packages/44/e4/9de7cda4a03a996758fbdb7ddacc071b4c62fdcd645e0a1192a22e8c55c0/trove-classifiers-2024.1.8.tar.gz +BuildArch: noarch +%description +%{common_description} + +%package -n python3-trove-classifiers +Summary: Canonical source for classifiers on PyPI (pypi.org). +Provides: python-trove-classifiers +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-trove-classifiers +%{common_description} + +%package help +Summary: Canonical source for classifiers on PyPI (pypi.org). +Provides: python3-trove-classifiers-doc +%description help +%{common_description} + +%prep +%autosetup -n trove-classifiers-%{version} + +%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 . + +%check +%{__python3} setup.py test + +%files -n python3-trove-classifiers -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Aug 23 2024 OpenStack_SIG <openstack@openeuler.org> - 2024.1.8-1 +- Init package python3-trove-classifiers of version 2024.1.8 @@ -0,0 +1 @@ +2eff45dfc160978f12c49755b5c94479 trove-classifiers-2024.1.8.tar.gz |