!8 update to upstream version 2.4.0
From: @desert-sailor Reviewed-by: @xiyuanwang Signed-off-by: @xiyuanwang
This commit is contained in:
commit
36759e92e8
@ -1,11 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-rst-linker
|
Name: python-rst-linker
|
||||||
Version: 1.9
|
Version: 2.4.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: rst.linker
|
Summary: Tools for adding metadata and hyperlinks to reStructuredText.
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/jaraco/rst.linker
|
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
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
rst.linker provides a routine for adding links and performing other custom
|
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-pbr
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
|
BuildRequires: python3-hatchling
|
||||||
# General requires
|
# General requires
|
||||||
BuildRequires: python3-dateutil
|
BuildRequires: python3-dateutil
|
||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
@ -48,10 +49,10 @@ classifiers). For more details, see this explanation <.
|
|||||||
%autosetup -n rst.linker-%{version}
|
%autosetup -n rst.linker-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
|
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
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 example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
pushd %{buildroot}
|
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
|
touch doclist.lst
|
||||||
if [ -d usr/share/man ]; then
|
if [ -d usr/share/man ]; then
|
||||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
fi
|
fi
|
||||||
popd
|
popd
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-rst-linker -f filelist.lst
|
%files -n python3-rst-linker
|
||||||
%dir %{python3_sitelib}/*
|
%doc README.rst CHANGES.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/rst
|
||||||
|
%{python3_sitelib}/rst.linker*.dist-info/
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help -f doclist.lst
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Nov 10 2021 OpenStack_SIG <openstack@openeuler.org> - 1.9-2
|
||||||
- Adds requires python3-setuptools_scm
|
- Adds requires python3-setuptools_scm
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
rst.linker-2.4.0.tar.gz
Normal file
BIN
rst.linker-2.4.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user