49 lines
1.2 KiB
RPMSpec
49 lines
1.2 KiB
RPMSpec
%global pypi_name sphinxcontrib-log-cabinet
|
|
Name: python-%{pypi_name}
|
|
Version: 1.0.1
|
|
Release: 1
|
|
Summary: Organize changelog directives in Sphinx docs
|
|
License: BSD
|
|
URL: https://github.com/davidism/sphinxcontrib-log-cabinet
|
|
Source0: %{pypi_source}
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
|
|
%global _description %{expand:
|
|
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.}
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
%description -n python3-%{pypi_name} %_description
|
|
|
|
|
|
%prep
|
|
%autosetup -n %{pypi_name}-%{version}
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%license LICENSE.rst
|
|
%doc README.rst
|
|
%doc CHANGES.rst
|
|
%{python3_sitelib}/sphinxcontrib
|
|
%{python3_sitelib}/sphinxcontrib_log_cabinet-%{version}-py?.?.egg-info
|
|
%{python3_sitelib}/sphinxcontrib_log_cabinet-%{version}-py?.?-nspkg.pth
|
|
|
|
|
|
%changelog
|
|
* Fri Aug 20 2021 huanghaitao <huanghaitao8@huawei.com> - 1.0.1-1
|
|
- Package init
|