diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:09:01 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:09:01 +0000 |
commit | 924751119a2f6c53061be595b11cde7f3bd8d4d2 (patch) | |
tree | 4785bd57491564805a5d8ef24524d16ef382819e /python-packaging.spec | |
parent | 08c6193ed7caced03ef43cf80b146eb960b20b98 (diff) |
automatic import of python-packaging
Diffstat (limited to 'python-packaging.spec')
-rw-r--r-- | python-packaging.spec | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/python-packaging.spec b/python-packaging.spec new file mode 100644 index 0000000..1b02695 --- /dev/null +++ b/python-packaging.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-packaging +Version: 23.0 +Release: 1 +Summary: Core utilities for Python packages +License: Apache Software License +URL: https://pypi.org/project/packaging/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/47/d5/aca8ff6f49aa5565df1c826e7bf5e85a6df852ee063600c1efa5b932968c/packaging-23.0.tar.gz +BuildArch: noarch + + +%description +Reusable core utilities for various Python Packaging +`interoperability specifications <https://packaging.python.org/specifications/>`_. +This library provides utilities that implement the interoperability +specifications which have clearly one correct behaviour (eg: :pep:`440`) +or benefit greatly from having a single shared implementation (eg: :pep:`425`). +The ``packaging`` project includes the following: version handling, specifiers, +markers, requirements, tags, utilities. + +%package -n python3-packaging +Summary: Core utilities for Python packages +Provides: python-packaging +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-packaging +Reusable core utilities for various Python Packaging +`interoperability specifications <https://packaging.python.org/specifications/>`_. +This library provides utilities that implement the interoperability +specifications which have clearly one correct behaviour (eg: :pep:`440`) +or benefit greatly from having a single shared implementation (eg: :pep:`425`). +The ``packaging`` project includes the following: version handling, specifiers, +markers, requirements, tags, utilities. + +%package help +Summary: Development documents and examples for packaging +Provides: python3-packaging-doc +%description help +Reusable core utilities for various Python Packaging +`interoperability specifications <https://packaging.python.org/specifications/>`_. +This library provides utilities that implement the interoperability +specifications which have clearly one correct behaviour (eg: :pep:`440`) +or benefit greatly from having a single shared implementation (eg: :pep:`425`). +The ``packaging`` project includes the following: version handling, specifiers, +markers, requirements, tags, utilities. + +%prep +%autosetup -n packaging-23.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-packaging -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 23.0-1 +- Package Spec generated |