|
|
4e34883 |
Name: python-systemd
|
|
|
35d9581 |
Version: 234
|
|
|
4ed12ad |
Release: 22%{?dist}
|
|
|
4e34883 |
Summary: Python module wrapping systemd functionality
|
|
|
4e34883 |
|
|
|
4e34883 |
License: LGPLv2+
|
|
|
4e34883 |
URL: https://github.com/systemd/python-systemd
|
|
|
774ea33 |
Source0: https://github.com/systemd/python-systemd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
4e34883 |
|
|
|
150fcb9 |
Patch0001: 0001-journal-avoid-warning-about-deprecated-constant.patch
|
|
|
150fcb9 |
Patch0002: 0002-reader-make-PY_SSIZE_T_CLEAN.patch
|
|
|
150fcb9 |
Patch0003: 0003-test-make-sure-NOTIFY_SOCKET-is-unset-in-test.patch
|
|
|
6e59a48 |
Patch0004: 0004-python-systemd-namespaces.patch
|
|
|
150fcb9 |
|
|
|
a8a7b7c |
BuildRequires: make
|
|
|
eb0891e |
BuildRequires: gcc
|
|
|
4e34883 |
BuildRequires: systemd-devel
|
|
|
0bddc98 |
BuildRequires: python3-devel
|
|
|
0bddc98 |
BuildRequires: python3-sphinx
|
|
|
855cc9f |
BuildRequires: web-assets-devel
|
|
|
f95f84d |
BuildRequires: python3-pytest
|
|
|
4e34883 |
|
|
|
150fcb9 |
%global _description %{expand:
|
|
|
150fcb9 |
Python module for native access to the systemd facilities.
|
|
|
150fcb9 |
Functionality includes sending of structured messages to the journal
|
|
|
150fcb9 |
and reading journal files, querying machine and boot identifiers and a
|
|
|
150fcb9 |
lists of message identifiers provided by systemd. Other functionality
|
|
|
150fcb9 |
provided by libsystemd is also wrapped.}
|
|
|
0bddc98 |
|
|
|
5649111 |
%description %_description
|
|
|
5649111 |
|
|
|
4e34883 |
%package -n python3-systemd
|
|
|
4e34883 |
Summary: %{summary}
|
|
|
4e34883 |
|
|
|
0bddc98 |
%{?python_provide:%python_provide python3-systemd}
|
|
|
4e34883 |
Provides: systemd-python3 = %{version}-%{release}
|
|
|
4e34883 |
Provides: systemd-python3%{?_isa} = %{version}-%{release}
|
|
|
4e34883 |
Obsoletes: systemd-python3 < 230
|
|
|
6e59a48 |
Recommends: %{name}-doc
|
|
|
4e34883 |
|
|
|
5649111 |
%description -n python3-systemd %_description
|
|
|
4e34883 |
|
|
|
65d208a |
%package doc
|
|
|
65d208a |
Summary: HTML documentation for %{name}
|
|
|
65d208a |
Requires: js-jquery
|
|
|
65d208a |
|
|
|
65d208a |
%description doc
|
|
|
65d208a |
%{summary}.
|
|
|
65d208a |
|
|
|
4e34883 |
%prep
|
|
|
4c3f5bc |
%autosetup -p1
|
|
|
ed510fa |
sed -i 's/py\.test/pytest/' Makefile
|
|
|
4e34883 |
|
|
|
4e34883 |
%build
|
|
|
ce361e1 |
make PYTHON=%{__python3} build
|
|
|
ce361e1 |
make PYTHON=%{__python3} SPHINX_BUILD=sphinx-build-3 sphinx-html
|
|
|
ce361e1 |
rm -r build/html/.buildinfo build/html/.doctrees
|
|
|
4e34883 |
|
|
|
4e34883 |
%install
|
|
|
ce361e1 |
%make_install PYTHON=%{__python3}
|
|
|
855cc9f |
mkdir -p %{buildroot}%{_pkgdocdir}
|
|
|
855cc9f |
cp -rv build/html %{buildroot}%{_pkgdocdir}/
|
|
|
855cc9f |
ln -vsf %{_jsdir}/jquery/latest/jquery.min.js %{buildroot}%{_pkgdocdir}/html/_static/jquery.js
|
|
|
f95f84d |
cp -p README.md NEWS %{buildroot}%{_pkgdocdir}/
|
|
|
f95f84d |
|
|
|
f95f84d |
%check
|
|
|
4ff5212 |
# if the socket is not there, skip doc tests
|
|
|
4ff5212 |
test -f /run/systemd/journal/stdout || \
|
|
|
4ff5212 |
sed -i 's/--doctest[^ ]*//g' pytest.ini
|
|
|
5649111 |
make PYTHON=%{__python3} check
|
|
|
4e34883 |
|
|
|
4e34883 |
%files -n python3-systemd
|
|
|
4e34883 |
%license LICENSE.txt
|
|
|
ce361e1 |
%doc %{_pkgdocdir}
|
|
|
65d208a |
%exclude %{_pkgdocdir}/html
|
|
|
5649111 |
%{python3_sitearch}/systemd/
|
|
|
5649111 |
%{python3_sitearch}/systemd_python*.egg-info
|
|
|
4e34883 |
|
|
|
65d208a |
%files doc
|
|
|
65d208a |
%doc %{_pkgdocdir}/html
|
|
|
65d208a |
|
|
|
4e34883 |
%changelog
|
|
|
4ed12ad |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 234-22
|
|
|
4ed12ad |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
4ed12ad |
|
|
|
bfae86c |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 234-21
|
|
|
bfae86c |
- Rebuilt for Python 3.11
|
|
|
bfae86c |
|
|
|
e3ebf45 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 234-20
|
|
|
e3ebf45 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
e3ebf45 |
|
|
|
6e59a48 |
* Thu Sep 16 2021 Paul Wouters <paul.wouters@aiven.io> - 234-19
|
|
|
6e59a48 |
- Pull in namespace support of upstream PR#87
|
|
|
6e59a48 |
|
|
|
2788b89 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 234-18
|
|
|
2788b89 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
2788b89 |
|
|
|
a82b960 |
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 234-17
|
|
|
a82b960 |
- Rebuilt for Python 3.10
|
|
|
a82b960 |
|
|
|
3698019 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 234-16
|
|
|
3698019 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
3698019 |
|
|
|
150fcb9 |
* Thu Nov 12 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 234-15
|
|
|
150fcb9 |
- Fix build with new mock (#1793022) and python 3.10 (#1891786)
|
|
|
150fcb9 |
|
|
|
eea5ba1 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 234-14
|
|
|
eea5ba1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
eea5ba1 |
|
|
|
f3c39b0 |
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 234-13
|
|
|
f3c39b0 |
- Rebuilt for Python 3.9
|
|
|
f3c39b0 |
|
|
|
2afc636 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 234-12
|
|
|
2afc636 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
2afc636 |
|
|
|
efff937 |
* Sun Sep 08 2019 Miro Hrončok <mhroncok@redhat.com> - 234-11
|
|
|
efff937 |
- Subpackage python2-systemd has been removed
|
|
|
efff937 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
efff937 |
|
|
|
3320eae |
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 234-10
|
|
|
3320eae |
- Rebuilt for Python 3.8
|
|
|
3320eae |
|
|
|
0aefd6a |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 234-9
|
|
|
0aefd6a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
0aefd6a |
|
|
|
7840a78 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 234-8
|
|
|
7840a78 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
7840a78 |
|
|
|
0ebfe53 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 234-7
|
|
|
0ebfe53 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
0ebfe53 |
|
|
|
acebe30 |
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 234-6
|
|
|
acebe30 |
- Rebuilt for Python 3.7
|
|
|
acebe30 |
|
|
|
8477694 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 234-5
|
|
|
8477694 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
8477694 |
|
|
|
22c3d37 |
* Wed Nov 1 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 234-4
|
|
|
22c3d37 |
- Use separate license and documentation directories
|
|
|
22c3d37 |
|
|
|
9a227e9 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 234-3
|
|
|
9a227e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
9a227e9 |
|
|
|
e8c4470 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 234-2
|
|
|
e8c4470 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e8c4470 |
|
|
|
35d9581 |
* Sun Mar 26 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 234-1
|
|
|
35d9581 |
- Update to latest version
|
|
|
35d9581 |
|
|
|
cb99dae |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 232-3
|
|
|
cb99dae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
cb99dae |
|
|
|
87ccb30 |
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 232-2
|
|
|
87ccb30 |
- Rebuild for Python 3.6
|
|
|
87ccb30 |
|
|
|
5649111 |
* Thu Sep 22 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 232-1
|
|
|
5649111 |
- Update to latest version
|
|
|
5649111 |
|
|
|
bada31e |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 231-6
|
|
|
bada31e |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
bada31e |
|
|
|
50526ce |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 231-5
|
|
|
50526ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
50526ce |
|
|
|
4c3f5bc |
* Sun Jan 24 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 231-4
|
|
|
4c3f5bc |
- Bugfixes for seek_monotonic and Python 2 compat
|
|
|
4c3f5bc |
|
|
|
65d208a |
* Sun Nov 15 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 231-3
|
|
|
65d208a |
- Split out doc subpackage (#1242619)
|
|
|
65d208a |
- Do not allow installation of python-systemd in different versions
|
|
|
65d208a |
|
|
Robert Kuska |
0626b22 |
* Sat Nov 07 2015 Robert Kuska <rkuska@redhat.com> - 231-2
|
|
Robert Kuska |
0626b22 |
- Rebuilt for Python3.5 rebuild
|
|
Robert Kuska |
0626b22 |
|
|
|
f95f84d |
* Tue Oct 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@laptop> - 231-1
|
|
|
f95f84d |
- Update to latest version
|
|
|
f95f84d |
|
|
|
4e34883 |
* Mon Jul 6 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@laptop> - 230-1
|
|
|
4e34883 |
- Initial packaging
|