From 1c9d49a396a90cfb085d3b44634a200c55e5c616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 9 Jun 2021 11:14:39 +0000 Subject: [PATCH] Expand %{srcname} --- python-docutils.spec | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/python-docutils.spec b/python-docutils.spec index 862ce78..9272e67 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -1,6 +1,4 @@ -%global srcname docutils - -Name: python-%{srcname} +Name: python-docutils Version: 0.16 Release: 5%{?dist} Summary: System for processing plaintext documentation @@ -8,7 +6,7 @@ Summary: System for processing plaintext documentation # See COPYING.txt for information License: Public Domain and BSD and Python and GPLv3+ URL: https://docutils.sourceforge.net -Source0: https://sourceforge.net/projects/%{srcname}/files/%{srcname}/%{version}/%{srcname}-%{version}.tar.gz +Source0: https://sourceforge.net/projects/docutils/files/docutils/%{version}/docutils-%{version}.tar.gz BuildArch: noarch @@ -29,17 +27,17 @@ Python inline documentation modules and packages.} %description %_description -%package -n python%{python3_pkgversion}-%{srcname} +%package -n python%{python3_pkgversion}-docutils Summary: %{summary} -%description -n python%{python3_pkgversion}-%{srcname} %_description +%description -n python%{python3_pkgversion}-docutils %_description %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n docutils-%{version} # Remove shebang from library files -sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $(grep -Erl '^#!.+python' %{srcname}) +sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $(grep -Erl '^#!.+python' docutils) iconv -f ISO88592 -t UTF8 tools/editors/emacs/IDEAS.rst > tmp mv tmp tools/editors/emacs/IDEAS.rst @@ -70,12 +68,12 @@ mv biohazard.swf docs/user/rst/images/biohazard.swf rm docs/user/rst/images/biohazard.swf -%files -n python%{python3_pkgversion}-%{srcname} +%files -n python%{python3_pkgversion}-docutils %license COPYING.txt licenses/* %doc BUGS.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt %doc THANKS.txt docs tools/editors -%{python3_sitelib}/%{srcname}/ -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ +%{python3_sitelib}/docutils/ +%{python3_sitelib}/docutils-%{version}-py%{python3_version}.egg-info/ %{_bindir}/rst*