Upgrade to version 2.4.0

This commit is contained in:
desert-sailor 2023-07-08 15:04:35 +08:00
parent faf4add7e2
commit 362ed2ac62
3 changed files with 15 additions and 21 deletions

View File

@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-rst-linker
Version: 1.9
Release: 2
Summary: rst.linker
Version: 2.4.0
Release: 1
Summary: Tools for adding metadata and hyperlinks to reStructuredText.
License: MIT
URL: https://github.com/jaraco/rst.linker
Source0: https://files.pythonhosted.org/packages/41/7d/a5dec477914a8fcabb86800075455c6cec55f745dbde4c609c5d02cab9c1/rst.linker-1.9.tar.gz
Source0: https://files.pythonhosted.org/packages/5f/30/d5d2ccc48cc7f0b60306642c48af5d17afa23a65c122792ca326042a9b51/rst.linker-2.4.0.tar.gz
BuildArch: noarch
%description
rst.linker provides a routine for adding links and performing other custom
@ -23,6 +23,7 @@ BuildRequires: python3-setuptools_scm
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
# General requires
BuildRequires: python3-dateutil
BuildRequires: python3-six
@ -48,10 +49,10 @@ classifiers). For more details, see this explanation <.
%autosetup -n rst.linker-%{version}
%build
%py3_build
%pyproject_build
%install
%py3_install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
@ -59,34 +60,27 @@ 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 -n python3-rst-linker
%doc README.rst CHANGES.rst
%license LICENSE
%{python3_sitelib}/rst
%{python3_sitelib}/rst.linker*.dist-info/
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Sat Jul 8 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.4.0-1
- Upgrade to version 2.4.0
* Wed Nov 10 2021 OpenStack_SIG <openstack@openeuler.org> - 1.9-2
- Adds requires python3-setuptools_scm

Binary file not shown.

BIN
rst.linker-2.4.0.tar.gz Normal file

Binary file not shown.