3 %bcond_with tests # unit tests (missing data)
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Sphinx Removed In extension
8 Summary(pl.UTF-8): Rozszerzenie Sphinksa Removed In
9 Name: python-sphinx_removed_in
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/sphinx-removed-in/
15 Source0: https://files.pythonhosted.org/packages/source/s/sphinx-removed-in/sphinx-removed-in-%{version}.tar.gz
16 # Source0-md5: c8930e33beb7f3fcaec0166035e2ae02
17 URL: https://pypi.org/project/sphinx-removed-in/
19 BuildRequires: python-modules >= 1:2.5
20 BuildRequires: python-setuptools
22 BuildRequires: python-sphinx_testing
26 BuildRequires: python3-modules >= 1:3.2
27 BuildRequires: python3-setuptools
29 BuildRequires: python3-sphinx_testing
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.714
34 Requires: python-modules >= 1:2.5
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 This is a Sphinx extension which recognizes the versionremoved and
40 removed-in directives.
42 %description -l pl.UTF-8
43 Rozszerzenie Sphinksa rozpoznające dyrektywy versionremoved i
46 %package -n python3-sphinx_removed_in
47 Summary: Sphinx Removed In extension
48 Summary(pl.UTF-8): Rozszerzenie Sphinksa Removed In
49 Group: Libraries/Python
50 Requires: python3-modules >= 1:3.2
52 %description -n python3-sphinx_removed_in
53 This is a Sphinx extension which recognizes the versionremoved and
54 removed-in directives.
56 %description -n python3-sphinx_removed_in -l pl.UTF-8
57 Rozszerzenie Sphinksa rozpoznające dyrektywy versionremoved i
61 %setup -q -n sphinx-removed-in-%{version}
68 %{__python} tests/test_extension.py
76 %{__python3} tests/test_extension.py
81 rm -rf $RPM_BUILD_ROOT
86 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
93 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/tests
97 rm -rf $RPM_BUILD_ROOT
101 %defattr(644,root,root,755)
103 %{py_sitescriptdir}/sphinx_removed_in
104 %{py_sitescriptdir}/sphinx_removed_in-%{version}-py*.egg-info
108 %files -n python3-sphinx_removed_in
109 %defattr(644,root,root,755)
111 %{py3_sitescriptdir}/sphinx_removed_in
112 %{py3_sitescriptdir}/sphinx_removed_in-%{version}-py*.egg-info