diff --git a/python-systemd.spec b/python-systemd.spec index c52b62f..828d78c 100644 --- a/python-systemd.spec +++ b/python-systemd.spec @@ -11,18 +11,30 @@ 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 +%global _docdir_fmt %{name} + +%description +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. + +%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 -%global _docdir_fmt %{name} - -%description +%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 @@ -33,9 +45,9 @@ 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}/*