|
|
4e34883 |
Name: python-systemd
|
|
|
4e34883 |
Version: 230
|
|
|
4e34883 |
Release: 1%{?dist}
|
|
|
4e34883 |
Summary: Python module wrapping systemd functionality
|
|
|
4e34883 |
|
|
|
4e34883 |
License: LGPLv2+
|
|
|
4e34883 |
URL: https://github.com/systemd/python-systemd
|
|
|
4e34883 |
Source0: https://github.com/systemd/python-systemd/archive/v%{version}.tar.gz
|
|
|
4e34883 |
|
|
|
4e34883 |
BuildRequires: python2-devel
|
|
|
4e34883 |
BuildRequires: systemd-devel
|
|
|
4e34883 |
|
|
|
4e34883 |
Provides: systemd-python = %{version}-%{release}
|
|
|
4e34883 |
Provides: systemd-python%{?_isa} = %{version}-%{release}
|
|
|
4e34883 |
Obsoletes: systemd-python < 230
|
|
|
4e34883 |
|
|
|
4e34883 |
%global _docdir_fmt %{name}
|
|
|
4e34883 |
|
|
|
4e34883 |
%description
|
|
|
4e34883 |
Python module for native access to the systemd facilities.
|
|
|
4e34883 |
Functionality includes sending of structured messages to the journal
|
|
|
4e34883 |
and reading journal files, querying machine and boot identifiers and a
|
|
|
4e34883 |
lists of message identifiers provided by systemd. Other functionality
|
|
|
4e34883 |
provided by libsystemd is also wrapped.
|
|
|
4e34883 |
|
|
|
4e34883 |
This is the version for Python 2.
|
|
|
4e34883 |
|
|
|
4e34883 |
%package -n python3-systemd
|
|
|
4e34883 |
Summary: %{summary}
|
|
|
4e34883 |
BuildRequires: python3-devel
|
|
|
4e34883 |
|
|
|
4e34883 |
Provides: systemd-python3 = %{version}-%{release}
|
|
|
4e34883 |
Provides: systemd-python3%{?_isa} = %{version}-%{release}
|
|
|
4e34883 |
Obsoletes: systemd-python3 < 230
|
|
|
4e34883 |
|
|
|
4e34883 |
%description -n python3-systemd
|
|
|
4e34883 |
Python module for native access to the systemd facilities.
|
|
|
4e34883 |
Functionality includes sending of structured messages to the journal
|
|
|
4e34883 |
and reading journal files, querying machine and boot identifiers and a
|
|
|
4e34883 |
lists of message identifiers provided by systemd. Other functionality
|
|
|
4e34883 |
provided by libsystemd is also wrapped.
|
|
|
4e34883 |
|
|
|
4e34883 |
This is the version for Python 3.
|
|
|
4e34883 |
|
|
|
4e34883 |
%prep
|
|
|
4e34883 |
%autosetup
|
|
|
4e34883 |
|
|
|
4e34883 |
%build
|
|
|
4e34883 |
sed -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' \
|
|
|
4e34883 |
</usr/include/systemd/sd-messages.h >systemd/id128-constants.h
|
|
|
4e34883 |
%{__python2} setup.py build
|
|
|
4e34883 |
%{__python3} setup.py build
|
|
|
4e34883 |
|
|
|
4e34883 |
%install
|
|
|
4e34883 |
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
4e34883 |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
4e34883 |
|
|
|
4e34883 |
%files
|
|
|
4e34883 |
%license LICENSE.txt
|
|
|
4e34883 |
%doc README.md
|
|
|
4e34883 |
%{python2_sitearch}/*
|
|
|
4e34883 |
|
|
|
4e34883 |
%files -n python3-systemd
|
|
|
4e34883 |
%license LICENSE.txt
|
|
|
4e34883 |
%doc README.md
|
|
|
4e34883 |
%{python3_sitearch}/*
|
|
|
4e34883 |
|
|
|
4e34883 |
%changelog
|
|
|
4e34883 |
* Mon Jul 6 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@laptop> - 230-1
|
|
|
4e34883 |
- Initial packaging
|