Rework packaging to make a python2 package and fix provides

This commit is contained in:
Kevin Fenzi 2017-01-29 14:33:54 -07:00
parent 0d75c739f8
commit 909612be3e

View File

@ -11,7 +11,7 @@
Name: python-%{srcname}
Version: 0.13.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: System for processing plaintext documentation
Group: Development/Languages
@ -36,11 +36,24 @@ BuildRequires: python3-devel
BuildRequires: python-tools
%endif
%description
The Docutils project specifies a plaintext markup language, reStructuredText,
which is easy to read and quick to write. The project includes a python
library to parse rST files and transform them into other useful formats such
as HTML, XML, and TeX as well as commandline tools that give the enduser
access to this functionality.
Currently, the library supports parsing rST that is in standalone files and
PEPs (Python Enhancement Proposals). Work is underway to parse rST from
Python inline documentation modules and packages.
%package -n python2-%{srcname}
Summary: System for processing plaintext documentation for python2
%{?python_provide:%python_provide python2-%{srcname}}
Provides: docutils = %{version}-%{release}
Obsoletes: docutils < %{version}-%{release}
%{?python_provide:%python_provide python2-docutils}
%description
%description -n python2-%{srcname}
The Docutils project specifies a plaintext markup language, reStructuredText,
which is easy to read and quick to write. The project includes a python
library to parse rST files and transform them into other useful formats such
@ -54,6 +67,7 @@ Python inline documentation modules and packages.
%if 0%{?with_python3}
%package -n python3-%{srcname}
Summary: System for processing plaintext documentation for python3
%{?python_provide:%python_provide python2-%{srcname}}
Group: Development/Languages
%description -n python3-%{srcname}
@ -145,7 +159,7 @@ popd
%clean
rm -rf %{buildroot}
%files
%files -n python2-%{srcname}
%doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt
%doc THANKS.txt licenses docs tools/editors
%{_bindir}/*
@ -159,6 +173,9 @@ rm -rf %{buildroot}
%endif
%changelog
* Sun Jan 29 2017 Kevin Fenzi <kevin@scrye.com> - 0.13.1-2
- Rework packaging to make a python2 package and fix provides
* Tue Dec 27 2016 Kevin Fenzi <kevin@scrye.com> - 0.13.1-1
- Update to 0.13.1. Fixes bug #1403399
- Provide python2 version. Fixes bug #1399655