3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Sphinx extension to organize changelogs
7 Summary(pl.UTF-8): Rozszerzenie Sphinksa do porządkowania changelogów
8 Name: python-sphinxcontrib-log-cabinet
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/sphinxcontrib-log-cabinet/
14 Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-log-cabinet/sphinxcontrib-log-cabinet-%{version}.tar.gz
15 # Source0-md5: 50e9b6e692689c605862a3f9b5c6c936
16 URL: https://pypi.org/project/sphinxcontrib-log-cabinet/
18 BuildRequires: python-modules >= 1:2.5
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.2
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.5
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Sphinx extension to organize changelogs generated by versionadded,
33 versionchanged, deprecated directives. The log will be sorted by
34 newest to oldest version. For HTML docs, older versions will be
37 %description -l pl.UTF-8
38 Rozszerzenie Sphinksa do porządkowania changelogów wygenerowanych
39 przez dyrektywy versionadded, versionchanged i deprecated. Log jest
40 sortowany od najnowszej do najstarszej wersji. W przypadku
41 dokumentacji HTML starsze wersje są domyślnie zwijane.
43 %package -n python3-sphinxcontrib-log-cabinet
44 Summary: Sphinx extension to organize changelogs
45 Summary(pl.UTF-8): Rozszerzenie Sphinksa do porządkowania changelogów
46 Group: Libraries/Python
47 Requires: python3-modules >= 1:3.2
49 %description -n python3-sphinxcontrib-log-cabinet
50 Sphinx extension to organize changelogs generated by versionadded,
51 versionchanged, deprecated directives. The log will be sorted by
52 newest to oldest version. For HTML docs, older versions will be
55 %description -n python3-sphinxcontrib-log-cabinet -l pl.UTF-8
56 Rozszerzenie Sphinksa do porządkowania changelogów wygenerowanych
57 przez dyrektywy versionadded, versionchanged i deprecated. Log jest
58 sortowany od najnowszej do najstarszej wersji. W przypadku
59 dokumentacji HTML starsze wersje są domyślnie zwijane.
62 %setup -q -n sphinxcontrib-log-cabinet-%{version}
74 rm -rf $RPM_BUILD_ROOT
87 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
92 %doc CHANGES.rst LICENSE.rst README.rst
94 %dir %{py_sitescriptdir}/sphinxcontrib
95 %{py_sitescriptdir}/sphinxcontrib/log_cabinet.py[co]
96 %{py_sitescriptdir}/sphinxcontrib_log_cabinet-%{version}-py*.egg-info
97 %{py_sitescriptdir}/sphinxcontrib_log_cabinet-%{version}-py*-nspkg.pth
101 %files -n python3-sphinxcontrib-log-cabinet
102 %defattr(644,root,root,755)
103 %doc CHANGES.rst LICENSE.rst README.rst
105 %dir %{py3_sitescriptdir}/sphinxcontrib
106 %dir %{py3_sitescriptdir}/sphinxcontrib/__pycache__
107 %{py3_sitescriptdir}/sphinxcontrib/log_cabinet.py
108 %{py3_sitescriptdir}/sphinxcontrib/__pycache__/log_cabinet.cpython-*.py[co]
109 %{py3_sitescriptdir}/sphinxcontrib_log_cabinet-%{version}-py*.egg-info
110 %{py3_sitescriptdir}/sphinxcontrib_log_cabinet-%{version}-py*-nspkg.pth