python-sphinxcontrib-autopr.../python-sphinxcontrib-autoprogram.spec

91 lines
2.6 KiB
RPMSpec
Raw Normal View History

2021-08-06 10:46:02 +08:00
%global _empty_manifest_terminate_build 0
Name: python-sphinxcontrib-autoprogram
2023-07-19 02:28:08 +08:00
Version: 0.1.8
Release: 1
2021-08-06 10:46:02 +08:00
Summary: Documenting CLI programs
License: BSD
URL: https://github.com/sphinx-contrib/autoprogram
2023-07-19 02:28:08 +08:00
Source0: https://files.pythonhosted.org/packages/d6/15/77056d932006fde8ea56cd21c5d788bed2d9d2c664234a85f3821732039b/sphinxcontrib-autoprogram-0.1.8.tar.gz
2021-08-06 10:46:02 +08:00
BuildArch: noarch
%description
Documenting CLI programs
%package -n python3-sphinxcontrib-autoprogram
Summary: Documenting CLI programs
Provides: python-sphinxcontrib-autoprogram
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-sphinx
BuildRequires: python3-six
# General requires
Requires: python3-sphinx
Requires: python3-six
%description -n python3-sphinxcontrib-autoprogram
Documenting CLI programs
%package help
Summary: Documenting CLI programs
Provides: python3-sphinxcontrib-autoprogram-doc
%description help
Documenting CLI programs
%prep
2023-07-19 02:28:08 +08:00
%autosetup -n sphinxcontrib-autoprogram-%{version} -p1
2021-08-06 10:46:02 +08:00
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
%{__python3} setup.py test
%files -n python3-sphinxcontrib-autoprogram -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
2023-07-19 02:28:08 +08:00
* Wed Jul 19 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.1.8-1
- update to 0.1.8
* Tue Jul 12 2022 huangtianhua <huangtianhua@huawei.com> - 0.1.7-2
- Fix argparse output for Python 3.10 compatibility
2021-08-06 10:46:02 +08:00
* Thu Aug 05 2021 OpenStack_SIG <openstack@openeuler.org> - 0.1.7-1
- Package Spec generate