python-sphinxcontrib-log-ca.../python-sphinxcontrib-log-cabinet.spec

79 lines
2 KiB
RPMSpec
Raw Permalink Normal View History

2020-06-05 12:34:34 +10:00
%bcond_with python2
%define module sphinxcontrib-log-cabinet
2020-04-05 21:38:17 +09:00
2020-06-05 12:23:02 +10:00
Summary: Organize changelogs generated by versionadded etc
Name: python-%{module}
2020-04-05 21:38:17 +09:00
Version: 1.0.1
2020-04-16 00:12:48 +03:00
Release: 2
2020-04-05 21:38:17 +09:00
License: BSD
Group: Development/Python
2020-06-05 12:34:34 +10:00
Url: https://github.com/davidism/sphinxcontrib-log-cabinet
Source0: https://files.pythonhosted.org/packages/75/26/0687391e10c605a4d0c7ebe118c57c51ecc687128bcdae5803d9b96def81/sphinxcontrib-log-cabinet-1.0.1.tar.gz
%if %{with python2}
BuildRequires: pkgconfig(python2)
2020-04-05 21:38:17 +09:00
BuildRequires: pythonegg(setuptools)
2020-06-05 12:34:34 +10:00
%endif
BuildArch: noarch
2020-04-05 21:38:17 +09:00
%description
Organize changelogs generated by versionadded, versionchanged, deprecated
directives. The log will be sorted by newest to oldest version. For HTML docs,
older versions will be collapsed by default.
2020-06-05 12:34:34 +10:00
%if %{with python2}
%files
2020-04-05 22:20:17 +09:00
%doc python2/CHANGES.rst python2/LICENSE.rst python2/README.rst
%{python2_sitelib}/sphinxcontrib/*
2020-04-05 22:39:34 +09:00
%{python2_sitelib}/*.egg-info/*
2020-04-05 22:28:13 +09:00
%{python2_sitelib}/sphinxcontrib_log_cabinet-%{version}*.pth
2020-06-05 12:34:34 +10:00
%endif
2020-04-05 21:38:17 +09:00
#----------------------------------------------------------------------------
2020-04-05 21:38:17 +09:00
%package -n python3-%{module}
2020-06-05 12:23:02 +10:00
Summary: Organize changelogs generated by versionadded etc
Group: Development/Python
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
2020-04-05 21:38:17 +09:00
%description -n python3-%{module}
Organize changelogs generated by versionadded, versionchanged, deprecated
directives. The log will be sorted by newest to oldest version. For HTML docs,
2020-04-05 21:38:17 +09:00
older versions will be collapsed by default.
%files -n python3-%{module}
2020-04-05 22:20:17 +09:00
%doc python3/CHANGES.rst python3/LICENSE.rst python3/README.rst
%{python3_sitelib}/sphinxcontrib/*
2020-04-05 22:39:34 +09:00
%{python3_sitelib}/*.egg-info/*
2020-04-05 22:28:13 +09:00
%{python3_sitelib}/sphinxcontrib_log_cabinet-%{version}*.pth
2020-04-05 21:38:17 +09:00
#----------------------------------------------------------------------------
2020-04-05 21:38:17 +09:00
%prep
%setup -qc -n %{module}-%{version}
mv %{module}-%{version} python2
2020-04-05 21:38:17 +09:00
cp -r python2 python3
%build
2020-06-05 12:34:34 +10:00
%if %{with python2}
2020-04-05 21:38:17 +09:00
pushd python2
%py2_build
popd
2020-06-05 12:34:34 +10:00
%endif
2020-04-05 21:38:17 +09:00
pushd python3
%py3_build
popd
%install
pushd python3
%py3_install
popd
2020-06-05 12:34:34 +10:00
%if %{with python2}
2020-04-05 21:38:17 +09:00
pushd python2
%py2_install
popd
2020-06-05 12:34:34 +10:00
%endif