Expand %{srcname}
This commit is contained in:
parent
b1352a027d
commit
1c9d49a396
@ -1,6 +1,4 @@
|
|||||||
%global srcname docutils
|
Name: python-docutils
|
||||||
|
|
||||||
Name: python-%{srcname}
|
|
||||||
Version: 0.16
|
Version: 0.16
|
||||||
Release: 5%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: System for processing plaintext documentation
|
Summary: System for processing plaintext documentation
|
||||||
@ -8,7 +6,7 @@ Summary: System for processing plaintext documentation
|
|||||||
# See COPYING.txt for information
|
# See COPYING.txt for information
|
||||||
License: Public Domain and BSD and Python and GPLv3+
|
License: Public Domain and BSD and Python and GPLv3+
|
||||||
URL: https://docutils.sourceforge.net
|
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
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -29,17 +27,17 @@ Python inline documentation modules and packages.}
|
|||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-%{srcname}
|
%package -n python%{python3_pkgversion}-docutils
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-%{srcname} %_description
|
%description -n python%{python3_pkgversion}-docutils %_description
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{srcname}-%{version}
|
%autosetup -n docutils-%{version}
|
||||||
|
|
||||||
# Remove shebang from library files
|
# 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
|
iconv -f ISO88592 -t UTF8 tools/editors/emacs/IDEAS.rst > tmp
|
||||||
mv tmp tools/editors/emacs/IDEAS.rst
|
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
|
rm docs/user/rst/images/biohazard.swf
|
||||||
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-%{srcname}
|
%files -n python%{python3_pkgversion}-docutils
|
||||||
%license COPYING.txt licenses/*
|
%license COPYING.txt licenses/*
|
||||||
%doc BUGS.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt
|
%doc BUGS.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt
|
||||||
%doc THANKS.txt docs tools/editors
|
%doc THANKS.txt docs tools/editors
|
||||||
%{python3_sitelib}/%{srcname}/
|
%{python3_sitelib}/docutils/
|
||||||
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
|
%{python3_sitelib}/docutils-%{version}-py%{python3_version}.egg-info/
|
||||||
%{_bindir}/rst*
|
%{_bindir}/rst*
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user