diff --git a/python-rst-linker.spec b/python-rst-linker.spec new file mode 100644 index 0000000000000000000000000000000000000000..c885347e598484c012476fe41166f1b8ac9940f6 --- /dev/null +++ b/python-rst-linker.spec @@ -0,0 +1,95 @@ +%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 + +%check +# BuildRequires: python(2/3)-path does not meet the test-requirement for path.py +#%{__python3} setup.py test + + +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 +* Thu Feb 17 2022 OpenStack_SIG - 1.9-1 +- Init package python3-rst-linker of version 1.9 + diff --git a/rst.linker-1.9.tar.gz b/rst.linker-1.9.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..23bab4c50e2e9d00400a011a24dac05acf97e05e Binary files /dev/null and b/rst.linker-1.9.tar.gz differ