48 lines
1.1 KiB
RPMSpec
48 lines
1.1 KiB
RPMSpec
|
|
%{?python_enable_dependency_generator}
|
||
|
|
%global srcname sphinx-argparse
|
||
|
|
%global sum Sphinx extension that automatically documents argparse commands and options
|
||
|
|
|
||
|
|
Name: python-%{srcname}
|
||
|
|
Version: 0.2.5
|
||
|
|
Release: 1
|
||
|
|
Summary: %{sum}
|
||
|
|
BuildArch: noarch
|
||
|
|
|
||
|
|
License: MIT
|
||
|
|
Url: https://github.com/ribozz/%{srcname}/
|
||
|
|
Source0: https://github.com/ribozz/%{srcname}/archive/%{version}.tar.gz
|
||
|
|
|
||
|
|
BuildRequires: python3-devel python3-setuptools
|
||
|
|
|
||
|
|
%description
|
||
|
|
Sphinx extension that automatically documents argparse commands and options
|
||
|
|
|
||
|
|
%package -n python3-%{srcname}
|
||
|
|
Requires: python3-sphinx
|
||
|
|
BuildRequires: python3-sphinx
|
||
|
|
Summary: %{sum}
|
||
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||
|
|
|
||
|
|
%description -n python3-%{srcname}
|
||
|
|
Sphinx extension that automatically documents argparse commands and options
|
||
|
|
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{srcname}-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%py3_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
%py3_install
|
||
|
|
|
||
|
|
%files -n python3-%{srcname}
|
||
|
|
%license LICENSE
|
||
|
|
%doc README.md
|
||
|
|
%{python3_sitelib}/*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Jun 28 2021 liufeng <liufeng@kylinos.cn> - 0.2.5-1
|
||
|
|
- Initial package.
|
||
|
|
|