Expand %{srcname}
This commit is contained in:
parent
b1352a027d
commit
1c9d49a396
@ -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*
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user