!4 [sync] PR-1: Update package rst.linker of version 1.9
From: @openeuler-sync-bot Reviewed-by: @huangtianhua Signed-off-by: @huangtianhua
This commit is contained in:
commit
a35e340997
91
python-rst-linker.spec
Normal file
91
python-rst-linker.spec
Normal file
@ -0,0 +1,91 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-rst-linker
|
||||
Version: 1.9
|
||||
Release: 1
|
||||
Summary: rst.linker
|
||||
License: MIT
|
||||
URL: https://github.com/jaraco/rst.linker
|
||||
Source0: https://files.pythonhosted.org/packages/41/7d/a5dec477914a8fcabb86800075455c6cec55f745dbde4c609c5d02cab9c1/rst.linker-1.9.tar.gz
|
||||
BuildArch: noarch
|
||||
%description
|
||||
rst.linker provides a routine for adding links and performing other custom
|
||||
replacements to reStructuredText files as a Sphinx extension.License License is
|
||||
indicated in the project metadata (typically one or more of the Trove
|
||||
classifiers). For more details, see this explanation <.
|
||||
|
||||
%package -n python3-rst-linker
|
||||
Summary: rst.linker
|
||||
Provides: python-rst-linker
|
||||
# Base build requires
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pbr
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
# General requires
|
||||
BuildRequires: python3-dateutil
|
||||
BuildRequires: python3-six
|
||||
# General requires
|
||||
Requires: python3-dateutil
|
||||
Requires: python3-six
|
||||
%description -n python3-rst-linker
|
||||
rst.linker provides a routine for adding links and performing other custom
|
||||
replacements to reStructuredText files as a Sphinx extension.License License is
|
||||
indicated in the project metadata (typically one or more of the Trove
|
||||
classifiers). For more details, see this explanation <.
|
||||
|
||||
%package help
|
||||
Summary: rst.linker
|
||||
Provides: python3-rst-linker-doc
|
||||
%description help
|
||||
rst.linker provides a routine for adding links and performing other custom
|
||||
replacements to reStructuredText files as a Sphinx extension.License License is
|
||||
indicated in the project metadata (typically one or more of the Trove
|
||||
classifiers). For more details, see this explanation <.
|
||||
|
||||
%prep
|
||||
%autosetup -n rst.linker-%{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 .
|
||||
|
||||
|
||||
%files -n python3-rst-linker -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Mon Nov 08 2021 OpenStack_SIG <openstack@openeuler.org> - 1.9-1
|
||||
- Init package python3-rst-linker of version 1.9
|
||||
|
||||
BIN
rst.linker-1.9.tar.gz
Normal file
BIN
rst.linker-1.9.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user