Update to latest Python packaging guidelines
python-systemd binary rpm is renamed to python2-systemd.
This commit is contained in:
parent
f95f84daa1
commit
0bddc988e3
@ -11,14 +11,11 @@ Source0: python-systemd-%{version}.tar.gz
|
||||
|
||||
BuildRequires: systemd-devel
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: web-assets-devel
|
||||
BuildRequires: pytest
|
||||
BuildRequires: python3-pytest
|
||||
Requires: js-jquery
|
||||
|
||||
Provides: systemd-python = %{version}-%{release}
|
||||
Provides: systemd-python%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: systemd-python < 230
|
||||
|
||||
%global _docdir_fmt %{name}
|
||||
|
||||
@ -29,13 +26,28 @@ and reading journal files, querying machine and boot identifiers and a
|
||||
lists of message identifiers provided by systemd. Other functionality
|
||||
provided by libsystemd is also wrapped.
|
||||
|
||||
%package -n python2-systemd
|
||||
Summary: %{summary}
|
||||
|
||||
%{?python_provide:%python_provide python2-systemd}
|
||||
Provides: systemd-python = %{version}-%{release}
|
||||
Provides: systemd-python%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: systemd-python < 230
|
||||
|
||||
%description -n python2-systemd
|
||||
Python module for native access to the systemd facilities.
|
||||
Functionality includes sending of structured messages to the journal
|
||||
and reading journal files, querying machine and boot identifiers and a
|
||||
lists of message identifiers provided by systemd. Other functionality
|
||||
provided by libsystemd is also wrapped.
|
||||
|
||||
This is the version for Python 2.
|
||||
|
||||
%package -n python3-systemd
|
||||
Summary: %{summary}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-sphinx
|
||||
|
||||
Requires: js-jquery
|
||||
%{?python_provide:%python_provide python3-systemd}
|
||||
Provides: systemd-python3 = %{version}-%{release}
|
||||
Provides: systemd-python3%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: systemd-python3 < 230
|
||||
@ -70,7 +82,7 @@ cp -p README.md NEWS %{buildroot}%{_pkgdocdir}/
|
||||
make PYTHON=%{__python2} check
|
||||
make PYTHON=%{__python3} check
|
||||
|
||||
%files
|
||||
%files -n python2-systemd
|
||||
%license LICENSE.txt
|
||||
%doc %{_pkgdocdir}
|
||||
%{python2_sitearch}/*
|
||||
|
Loading…
Reference in New Issue
Block a user