forked from pool/python-docutils
Accepting request 121396 from home:TheBlackCat:branches:devel:languages:python
- Update to version 0.9: - Cleaned up spec files - Fix rpmlint warnings OBS-URL: https://build.opensuse.org/request/show/121396 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docutils?expand=0&rev=12
This commit is contained in:
@@ -15,20 +15,21 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python-docutils
|
||||
Version: 0.8.1
|
||||
%define modname docutils
|
||||
Name: python-%{modname}
|
||||
Version: 0.9
|
||||
Release: 0
|
||||
Summary: Python Documentation Utilities
|
||||
License: Python-2.0 and BSD-2-Clause and GPL-2.0+ and GPL-3.0+ and SUSE-Public-Domain
|
||||
Group: Development/Languages/Python
|
||||
Url: http://docutils.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/project/docutils/docutils/%{version}/docutils-%{version}.tar.gz
|
||||
Source: http://downloads.sourceforge.net/project/%{modname}/%{modname}/%{version}/%{modname}-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: python-xml
|
||||
Requires: python-xml
|
||||
%py_requires
|
||||
%endif
|
||||
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
||||
BuildRequires: pyxml
|
||||
@@ -48,7 +49,7 @@ such as HTML, XML, and LaTeX. For input Docutils supports reStructuredText, an
|
||||
easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.
|
||||
|
||||
%prep
|
||||
%setup -n docutils-%{version}
|
||||
%setup -n %{modname}-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
@@ -57,11 +58,15 @@ sed -i "s|#!\s*\/usr\/bin\/env python||g" docutils/{math/math2html,_string_templ
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
for i in %{buildroot}%{_bindir}/rst*; do mv "$i" "${i/.py}"; done # Remove useless ".py" ending from executables
|
||||
# fix for non-executable-script rpmlint warning
|
||||
chmod +x %{buildroot}%{python_sitelib}/%{modname}/utils/code_analyzer.py
|
||||
chmod +x %{buildroot}%{python_sitelib}/%{modname}/utils/punctuation_chars.py
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING.txt FAQ.txt HISTORY.txt README.txt THANKS.txt BUGS.txt docs/* licenses
|
||||
%{_bindir}/rst*
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/%{modname}/
|
||||
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user