summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-23 03:06:09 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-23 03:06:09 +0000
commit1ba365f25d98c792450c43ad67123ea397b0282b (patch)
treed58f8514736d9d70b72d698078ab7350c4048319
parentb99177314c99ef77d23b5dc53c2497a17b119987 (diff)
automatic import of python-trove-classifiers
-rw-r--r--.gitignore1
-rw-r--r--python-trove-classifiers.spec80
-rw-r--r--sources1
3 files changed, 82 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c2e21fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/sources b/sources
new file mode 100644
index 0000000..879ae2b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+2eff45dfc160978f12c49755b5c94479 trove-classifiers-2024.1.8.tar.gz