Split out doc subpackage

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-11-15 17:23:19 -05:00
parent 0626b22205
commit 65d208ac91

View File

@ -1,6 +1,6 @@
Name: python-systemd Name: python-systemd
Version: 231 Version: 231
Release: 2%{?dist} Release: 3%{?dist}
Summary: Python module wrapping systemd functionality Summary: Python module wrapping systemd functionality
License: LGPLv2+ License: LGPLv2+
@ -31,6 +31,8 @@ Summary: %{summary}
Provides: systemd-python = %{version}-%{release} Provides: systemd-python = %{version}-%{release}
Provides: systemd-python%{?_isa} = %{version}-%{release} Provides: systemd-python%{?_isa} = %{version}-%{release}
Obsoletes: systemd-python < 230 Obsoletes: systemd-python < 230
Conflicts: python3-systemd < %{version}-%{release}
Recommends: %{name}-doc
%description -n python2-systemd %description -n python2-systemd
Python module for native access to the systemd facilities. Python module for native access to the systemd facilities.
@ -44,11 +46,12 @@ This is the version for Python 2.
%package -n python3-systemd %package -n python3-systemd
Summary: %{summary} Summary: %{summary}
Requires: js-jquery
%{?python_provide:%python_provide python3-systemd} %{?python_provide:%python_provide python3-systemd}
Provides: systemd-python3 = %{version}-%{release} Provides: systemd-python3 = %{version}-%{release}
Provides: systemd-python3%{?_isa} = %{version}-%{release} Provides: systemd-python3%{?_isa} = %{version}-%{release}
Obsoletes: systemd-python3 < 230 Obsoletes: systemd-python3 < 230
Conflicts: python2-systemd < %{version}-%{release}
Recommends: %{name}-doc
%description -n python3-systemd %description -n python3-systemd
Python module for native access to the systemd facilities. Python module for native access to the systemd facilities.
@ -59,6 +62,13 @@ provided by libsystemd is also wrapped.
This is the version for Python 3. This is the version for Python 3.
%package doc
Summary: HTML documentation for %{name}
Requires: js-jquery
%description doc
%{summary}.
%prep %prep
%autosetup %autosetup
@ -86,14 +96,23 @@ make PYTHON=%{__python3} check || :
%files -n python2-systemd %files -n python2-systemd
%license LICENSE.txt %license LICENSE.txt
%doc %{_pkgdocdir} %doc %{_pkgdocdir}
%exclude %{_pkgdocdir}/html
%{python2_sitearch}/* %{python2_sitearch}/*
%files -n python3-systemd %files -n python3-systemd
%license LICENSE.txt %license LICENSE.txt
%doc %{_pkgdocdir} %doc %{_pkgdocdir}
%exclude %{_pkgdocdir}/html
%{python3_sitearch}/* %{python3_sitearch}/*
%files doc
%doc %{_pkgdocdir}/html
%changelog %changelog
* Sun Nov 15 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 231-3
- Split out doc subpackage (#1242619)
- Do not allow installation of python-systemd in different versions
* Sat Nov 07 2015 Robert Kuska <rkuska@redhat.com> - 231-2 * Sat Nov 07 2015 Robert Kuska <rkuska@redhat.com> - 231-2
- Rebuilt for Python3.5 rebuild - Rebuilt for Python3.5 rebuild