init packages

This commit is contained in:
zhangy1317 2021-11-03 14:50:58 +08:00
parent cf6e319748
commit ee97e3729e
2 changed files with 97 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,97 @@
%global _empty_manifest_terminate_build 0
Name: python-openstack-doc-tools
Version: 1.0.1
Release: 1
Summary: Tools for OpenStack Documentation
License: Apache-2.0
URL: http://www.openstack.org/
Source0: https://files.pythonhosted.org/packages/c7/c5/8c4dd7e824e4f04714eda317f141772895aedaac11b82e903ade480e38dd/openstack-doc-tools-1.0.1.tar.gz
BuildArch: noarch
%description
Tools for OpenStack Documentation
%package -n python3-openstack-doc-tools
Summary: Tools for OpenStack Documentation
Provides: python-openstack-doc-tools
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-babel
BuildRequires: python3-pyyaml
BuildRequires: python3-cliff-tablib
BuildRequires: python3-demjson
BuildRequires: python3-iso8601
BuildRequires: python3-lxml
BuildRequires: python3-oslo-config
BuildRequires: python3-sphinx
# General requires
Requires: python3-babel
Requires: python3-pyyaml
Requires: python3-cliff-tablib
Requires: python3-demjson
Requires: python3-iso8601
Requires: python3-lxml
Requires: python3-oslo-config
Requires: python3-pbr
Requires: python3-sphinx
%description -n python3-openstack-doc-tools
Tools for OpenStack Documentation
%package help
Summary: Tools for OpenStack Documentation
Provides: python3-openstack-doc-tools-doc
%description help
Tools for OpenStack Documentation
%prep
%autosetup -n openstack-doc-tools-%{version}
%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-openstack-doc-tools -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Oct 29 2021 OpenStack_SIG <openstack@openeuler.org> - 1.0.1-1
- Init package python3-openstack-doc-tools of version 1.0.1