3 %bcond_without doc # don't build doc
4 %bcond_without tests # py.test tests
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 Summary: Core utilities for Python packages
9 Summary(pl.UTF-8): Bazowe funkcje narzędziowe do pakietów Pythona
10 Name: python-packaging
13 License: Apache v2.0 or BSD
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/packaging/
16 Source0: https://files.pythonhosted.org/packages/source/p/packaging/packaging-%{version}.tar.gz
17 # Source0-md5: 8baf8241d1b6b0a5fae9b00f359976a8
18 URL: https://github.com/pypa/packaging
20 BuildRequires: python-modules >= 1:2.6
22 BuildRequires: python-pretend
23 BuildRequires: python-pyparsing
24 BuildRequires: python-pytest
25 BuildRequires: python-setuptools
26 BuildRequires: python-six
30 BuildRequires: python3-modules >= 1:3.2
32 BuildRequires: python3-pretend
33 BuildRequires: python3-pyparsing
34 BuildRequires: python3-pytest
35 BuildRequires: python3-setuptools
36 BuildRequires: python3-six
39 BuildRequires: rpm-pythonprov
40 BuildRequires: rpmbuild(macros) >= 1.714
42 BuildRequires: python3-sphinx_rtd_theme
43 BuildRequires: sphinx-pdg-3
45 Requires: python-modules >= 1:2.6
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 Core utilities for Python packages.
52 %description -l pl.UTF-8
53 Bazowe funkcje narzędziowe do pakietów Pythona.
55 %package -n python3-packaging
56 Summary: Core utilities for Python packages
57 Summary(pl.UTF-8): Bazowe funkcje narzędziowe do pakietów Pythona
58 Group: Libraries/Python
59 Requires: python3-modules >= 1:3.2
61 %description -n python3-packaging
62 Core utilities for Python packages.
64 %description -n python3-packaging -l pl.UTF-8
65 Bazowe funkcje narzędziowe do pakietów Pythona.
68 Summary: API documentation for Python packaging library
69 Summary(pl.UTF-8): Dokumentacja API biblioteki Pythona packaging
73 API documentation for Python packaging library.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki Pythona packaging.
79 %setup -q -n packaging-%{version}
85 %{?with_tests:%{__python} -m pytest}
91 %{?with_tests:%{__python3} -m pytest}
95 %{__make} -C docs html \
96 SPHINXBUILD=sphinx-build-3
100 rm -rf $RPM_BUILD_ROOT
113 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
118 %doc CHANGELOG.rst LICENSE LICENSE.BSD README.rst
119 %{py_sitescriptdir}/packaging
120 %{py_sitescriptdir}/packaging-%{version}-py*.egg-info
124 %files -n python3-packaging
125 %defattr(644,root,root,755)
126 %doc CHANGELOG.rst LICENSE LICENSE.BSD README.rst
127 %{py3_sitescriptdir}/packaging
128 %{py3_sitescriptdir}/packaging-%{version}-py*.egg-info
133 %defattr(644,root,root,755)
134 %doc docs/_build/html/{_static,development,*.html,*.js}