Package accepted
This commit is contained in:
parent
7b7e58d01d
commit
4e34883fe7
70
python-systemd.spec
Normal file
70
python-systemd.spec
Normal file
@ -0,0 +1,70 @@
|
||||
Name: python-systemd
|
||||
Version: 230
|
||||
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
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: systemd-devel
|
||||
|
||||
Provides: systemd-python = %{version}-%{release}
|
||||
Provides: systemd-python%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: systemd-python < 230
|
||||
|
||||
%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.
|
||||
|
||||
This is the version for Python 2.
|
||||
|
||||
%package -n python3-systemd
|
||||
Summary: %{summary}
|
||||
BuildRequires: python3-devel
|
||||
|
||||
Provides: systemd-python3 = %{version}-%{release}
|
||||
Provides: systemd-python3%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: systemd-python3 < 230
|
||||
|
||||
%description -n python3-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 3.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
sed -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' \
|
||||
</usr/include/systemd/sd-messages.h >systemd/id128-constants.h
|
||||
%{__python2} setup.py build
|
||||
%{__python3} setup.py build
|
||||
|
||||
%install
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
%{python2_sitearch}/*
|
||||
|
||||
%files -n python3-systemd
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
%{python3_sitearch}/*
|
||||
|
||||
%changelog
|
||||
* Mon Jul 6 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@laptop> - 230-1
|
||||
- Initial packaging
|
Loading…
Reference in New Issue
Block a user