2015-07-08 19:26:34 +00:00
|
|
|
Name: python-systemd
|
2017-03-26 15:38:07 +00:00
|
|
|
Version: 234
|
2019-07-26 16:36:35 +00:00
|
|
|
Release: 9%{?dist}
|
2015-07-08 19:26:34 +00:00
|
|
|
Summary: Python module wrapping systemd functionality
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://github.com/systemd/python-systemd
|
2015-10-28 14:16:28 +00:00
|
|
|
Source0: https://github.com/systemd/python-systemd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2015-07-08 19:26:34 +00:00
|
|
|
|
2018-07-10 13:56:26 +00:00
|
|
|
BuildRequires: gcc
|
2015-07-08 19:26:34 +00:00
|
|
|
BuildRequires: systemd-devel
|
2015-07-08 19:55:48 +00:00
|
|
|
BuildRequires: python2-devel
|
2015-10-27 12:34:41 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-sphinx
|
2015-07-09 00:27:45 +00:00
|
|
|
BuildRequires: web-assets-devel
|
2019-07-24 07:40:15 +00:00
|
|
|
BuildRequires: python2-pytest
|
2015-10-27 12:29:38 +00:00
|
|
|
BuildRequires: python3-pytest
|
2015-07-08 19:26:34 +00:00
|
|
|
|
2016-09-22 11:15:13 +00:00
|
|
|
%global _description \
|
2017-11-01 11:08:45 +00:00
|
|
|
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\
|
2015-10-27 12:34:41 +00:00
|
|
|
provided by libsystemd is also wrapped.
|
|
|
|
|
2016-09-22 11:15:13 +00:00
|
|
|
%description %_description
|
|
|
|
|
2015-10-27 12:34:41 +00:00
|
|
|
%package -n python2-systemd
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-systemd}
|
2015-07-08 19:26:34 +00:00
|
|
|
Provides: systemd-python = %{version}-%{release}
|
|
|
|
Provides: systemd-python%{?_isa} = %{version}-%{release}
|
|
|
|
Obsoletes: systemd-python < 230
|
2015-11-15 22:23:19 +00:00
|
|
|
Recommends: %{name}-doc
|
2015-07-08 19:26:34 +00:00
|
|
|
|
2016-09-22 11:15:13 +00:00
|
|
|
%description -n python2-systemd %_description
|
2015-07-08 19:26:34 +00:00
|
|
|
|
|
|
|
%package -n python3-systemd
|
|
|
|
Summary: %{summary}
|
|
|
|
|
2015-10-27 12:34:41 +00:00
|
|
|
%{?python_provide:%python_provide python3-systemd}
|
2015-07-08 19:26:34 +00:00
|
|
|
Provides: systemd-python3 = %{version}-%{release}
|
|
|
|
Provides: systemd-python3%{?_isa} = %{version}-%{release}
|
|
|
|
Obsoletes: systemd-python3 < 230
|
2015-11-15 22:23:19 +00:00
|
|
|
Recommends: %{name}-doc
|
2015-07-08 19:26:34 +00:00
|
|
|
|
2016-09-22 11:15:13 +00:00
|
|
|
%description -n python3-systemd %_description
|
2015-07-08 19:26:34 +00:00
|
|
|
|
2015-11-15 22:23:19 +00:00
|
|
|
%package doc
|
|
|
|
Summary: HTML documentation for %{name}
|
|
|
|
Requires: js-jquery
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
%{summary}.
|
|
|
|
|
2015-07-08 19:26:34 +00:00
|
|
|
%prep
|
2016-01-24 21:01:31 +00:00
|
|
|
%autosetup -p1
|
2016-09-23 00:08:08 +00:00
|
|
|
sed -i 's/py\.test/pytest/' Makefile
|
2015-07-08 19:26:34 +00:00
|
|
|
|
|
|
|
%build
|
2015-07-08 19:55:48 +00:00
|
|
|
make PYTHON=%{__python2} build
|
|
|
|
make PYTHON=%{__python3} build
|
|
|
|
make PYTHON=%{__python3} SPHINX_BUILD=sphinx-build-3 sphinx-html
|
|
|
|
rm -r build/html/.buildinfo build/html/.doctrees
|
2015-07-08 19:26:34 +00:00
|
|
|
|
|
|
|
%install
|
2015-07-08 19:55:48 +00:00
|
|
|
%make_install PYTHON=%{__python2}
|
|
|
|
%make_install PYTHON=%{__python3}
|
2015-07-09 00:27:45 +00:00
|
|
|
mkdir -p %{buildroot}%{_pkgdocdir}
|
|
|
|
cp -rv build/html %{buildroot}%{_pkgdocdir}/
|
|
|
|
ln -vsf %{_jsdir}/jquery/latest/jquery.min.js %{buildroot}%{_pkgdocdir}/html/_static/jquery.js
|
2015-10-27 12:29:38 +00:00
|
|
|
cp -p README.md NEWS %{buildroot}%{_pkgdocdir}/
|
|
|
|
|
|
|
|
%check
|
2015-10-28 14:06:42 +00:00
|
|
|
# if the socket is not there, skip doc tests
|
|
|
|
test -f /run/systemd/journal/stdout || \
|
|
|
|
sed -i 's/--doctest[^ ]*//g' pytest.ini
|
2016-09-22 11:15:13 +00:00
|
|
|
make PYTHON=%{__python2} check
|
|
|
|
make PYTHON=%{__python3} check
|
2015-07-08 19:26:34 +00:00
|
|
|
|
2015-10-27 12:34:41 +00:00
|
|
|
%files -n python2-systemd
|
2015-07-08 19:26:34 +00:00
|
|
|
%license LICENSE.txt
|
2015-07-09 00:27:45 +00:00
|
|
|
%doc %{_pkgdocdir}
|
2015-11-15 22:23:19 +00:00
|
|
|
%exclude %{_pkgdocdir}/html
|
2016-09-22 11:15:13 +00:00
|
|
|
%{python2_sitearch}/systemd/
|
|
|
|
%{python2_sitearch}/systemd_python*.egg-info
|
2015-07-08 19:26:34 +00:00
|
|
|
|
|
|
|
%files -n python3-systemd
|
|
|
|
%license LICENSE.txt
|
2015-07-08 19:55:48 +00:00
|
|
|
%doc %{_pkgdocdir}
|
2015-11-15 22:23:19 +00:00
|
|
|
%exclude %{_pkgdocdir}/html
|
2016-09-22 11:15:13 +00:00
|
|
|
%{python3_sitearch}/systemd/
|
|
|
|
%{python3_sitearch}/systemd_python*.egg-info
|
2015-07-08 19:26:34 +00:00
|
|
|
|
2015-11-15 22:23:19 +00:00
|
|
|
%files doc
|
|
|
|
%doc %{_pkgdocdir}/html
|
|
|
|
|
2015-07-08 19:26:34 +00:00
|
|
|
%changelog
|
2019-07-26 16:36:35 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 234-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-02 09:36:28 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 234-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-14 02:17:13 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 234-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-15 22:33:19 +00:00
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 234-6
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-09 11:09:04 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 234-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-11-01 11:08:45 +00:00
|
|
|
* Wed Nov 1 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 234-4
|
|
|
|
- Use separate license and documentation directories
|
|
|
|
|
2017-08-03 07:01:08 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 234-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 11:59:03 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 234-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-03-26 15:38:07 +00:00
|
|
|
* Sun Mar 26 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 234-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2017-02-11 10:38:07 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 232-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-13 15:40:49 +00:00
|
|
|
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 232-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-09-22 11:15:13 +00:00
|
|
|
* Thu Sep 22 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 232-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2016-07-19 11:45:26 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 231-6
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 21:05:12 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 231-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-24 21:01:31 +00:00
|
|
|
* Sun Jan 24 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 231-4
|
|
|
|
- Bugfixes for seek_monotonic and Python 2 compat
|
|
|
|
|
2015-11-15 22:23:19 +00:00
|
|
|
* Sun Nov 15 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 231-3
|
|
|
|
- Split out doc subpackage (#1242619)
|
|
|
|
- Do not allow installation of python-systemd in different versions
|
|
|
|
|
2015-11-07 13:48:35 +00:00
|
|
|
* Sat Nov 07 2015 Robert Kuska <rkuska@redhat.com> - 231-2
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
2015-10-27 12:29:38 +00:00
|
|
|
* Tue Oct 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@laptop> - 231-1
|
|
|
|
- Update to latest version
|
|
|
|
|
2015-07-08 19:26:34 +00:00
|
|
|
* Mon Jul 6 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@laptop> - 230-1
|
|
|
|
- Initial packaging
|