Name: python-systemd Version: 234 Release: 1%{?dist} Summary: Python module wrapping systemd functionality License: LGPLv2+ URL: https://github.com/systemd/python-systemd Source0: https://github.com/systemd/python-systemd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: systemd-devel BuildRequires: python2-devel BuildRequires: python%{python3_pkgversion}-devel BuildRequires: web-assets-devel BuildRequires: pytest BuildRequires: python%{python3_pkgversion}-pytest %global _docdir_fmt %{name} %global _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. %description %_description %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 Conflicts: python%{python3_pkgversion}-systemd < %{version}-%{release} %description -n python2-systemd %_description %package -n python%{python3_pkgversion}-systemd Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-systemd} Provides: systemd-python%{python3_pkgversion} = %{version}-%{release} Provides: systemd-python%{python3_pkgversion}%{?_isa} = %{version}-%{release} Obsoletes: systemd-python%{python3_pkgversion} < 230 Conflicts: python2-systemd < %{version}-%{release} %description -n python%{python3_pkgversion}-systemd %_description %prep %autosetup -p1 sed -i 's/py\.test/pytest/' Makefile %build make PYTHON=%{__python2} build make PYTHON=%{__python3} build %install %make_install PYTHON=%{__python2} %make_install PYTHON=%{__python3} %files -n python2-systemd %license LICENSE.txt %{python2_sitearch}/systemd/ %{python2_sitearch}/systemd_python*.egg-info %files -n python%{python3_pkgversion}-systemd %license LICENSE.txt %{python3_sitearch}/systemd/ %{python3_sitearch}/systemd_python*.egg-info %changelog * Sun Mar 26 2017 Zbigniew Jędrzejewski-Szmek - 234-1 - Update to latest version * Sat Feb 11 2017 Fedora Release Engineering - 232-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Dec 13 2016 Stratakis Charalampos - 232-2 - Rebuild for Python 3.6 * Thu Sep 22 2016 Zbigniew Jędrzejewski-Szmek - 232-1 - Update to latest version * Tue Jul 19 2016 Fedora Release Engineering - 231-6 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 231-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 24 2016 Zbigniew Jędrzejewski-Szmek - 231-4 - Bugfixes for seek_monotonic and Python 2 compat * Sun Nov 15 2015 Zbigniew Jędrzejewski-Szmek - 231-3 - Split out doc subpackage (#1242619) - Do not allow installation of python-systemd in different versions * Sat Nov 07 2015 Robert Kuska - 231-2 - Rebuilt for Python3.5 rebuild * Tue Oct 27 2015 Zbigniew Jędrzejewski-Szmek - 231-1 - Update to latest version * Mon Jul 6 2015 Zbigniew Jędrzejewski-Szmek - 230-1 - Initial packaging