|
|
9dd3d1 |
Name: python-systemd
|
|
|
9dd3d1 |
Version: 234
|
|
|
9dd3d1 |
Release: 18%{?dist}
|
|
|
9dd3d1 |
Summary: Python module wrapping systemd functionality
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
License: LGPLv2+
|
|
|
9dd3d1 |
URL: https://github.com/systemd/python-systemd
|
|
|
9dd3d1 |
Source0: https://github.com/systemd/python-systemd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
Patch0001: 0001-journal-avoid-warning-about-deprecated-constant.patch
|
|
|
9dd3d1 |
Patch0002: 0002-reader-make-PY_SSIZE_T_CLEAN.patch
|
|
|
9dd3d1 |
Patch0003: 0003-test-make-sure-NOTIFY_SOCKET-is-unset-in-test.patch
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
BuildRequires: make
|
|
|
9dd3d1 |
BuildRequires: gcc
|
|
|
9dd3d1 |
BuildRequires: systemd-devel
|
|
|
9dd3d1 |
BuildRequires: python3-devel
|
|
|
9dd3d1 |
BuildRequires: python3-sphinx
|
|
|
9dd3d1 |
BuildRequires: web-assets-devel
|
|
|
9dd3d1 |
BuildRequires: python3-pytest
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%global _description %{expand:
|
|
|
9dd3d1 |
Python module for native access to the systemd facilities.
|
|
|
9dd3d1 |
Functionality includes sending of structured messages to the journal
|
|
|
9dd3d1 |
and reading journal files, querying machine and boot identifiers and a
|
|
|
9dd3d1 |
lists of message identifiers provided by systemd. Other functionality
|
|
|
9dd3d1 |
provided by libsystemd is also wrapped.}
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%description %_description
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%package -n python3-systemd
|
|
|
9dd3d1 |
Summary: %{summary}
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%{?python_provide:%python_provide python3-systemd}
|
|
|
9dd3d1 |
Provides: systemd-python3 = %{version}-%{release}
|
|
|
9dd3d1 |
Provides: systemd-python3%{?_isa} = %{version}-%{release}
|
|
|
9dd3d1 |
Obsoletes: systemd-python3 < 230
|
|
|
9dd3d1 |
Recommends: %{name}-doc
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%description -n python3-systemd %_description
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%package doc
|
|
|
9dd3d1 |
Summary: HTML documentation for %{name}
|
|
|
9dd3d1 |
Requires: js-jquery
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%description doc
|
|
|
9dd3d1 |
%{summary}.
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%prep
|
|
|
9dd3d1 |
%autosetup -p1
|
|
|
9dd3d1 |
sed -i 's/py\.test/pytest/' Makefile
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%build
|
|
|
9dd3d1 |
make PYTHON=%{__python3} build
|
|
|
9dd3d1 |
make PYTHON=%{__python3} SPHINX_BUILD=sphinx-build-3 sphinx-html
|
|
|
9dd3d1 |
rm -r build/html/.buildinfo build/html/.doctrees
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%install
|
|
|
9dd3d1 |
%make_install PYTHON=%{__python3}
|
|
|
9dd3d1 |
mkdir -p %{buildroot}%{_pkgdocdir}
|
|
|
9dd3d1 |
cp -rv build/html %{buildroot}%{_pkgdocdir}/
|
|
|
9dd3d1 |
ln -vsf %{_jsdir}/jquery/latest/jquery.min.js %{buildroot}%{_pkgdocdir}/html/_static/jquery.js
|
|
|
9dd3d1 |
cp -p README.md NEWS %{buildroot}%{_pkgdocdir}/
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%check
|
|
|
9dd3d1 |
# if the socket is not there, skip doc tests
|
|
|
9dd3d1 |
test -f /run/systemd/journal/stdout || \
|
|
|
9dd3d1 |
sed -i 's/--doctest[^ ]*//g' pytest.ini
|
|
|
9dd3d1 |
make PYTHON=%{__python3} check
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%files -n python3-systemd
|
|
|
9dd3d1 |
%license LICENSE.txt
|
|
|
9dd3d1 |
%doc %{_pkgdocdir}
|
|
|
9dd3d1 |
%exclude %{_pkgdocdir}/html
|
|
|
9dd3d1 |
%{python3_sitearch}/systemd/
|
|
|
9dd3d1 |
%{python3_sitearch}/systemd_python*.egg-info
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%files doc
|
|
|
9dd3d1 |
%doc %{_pkgdocdir}/html
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
%changelog
|
|
|
9dd3d1 |
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 234-18
|
|
|
9dd3d1 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
9dd3d1 |
Related: rhbz#1991688
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 234-17
|
|
|
9dd3d1 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 234-16
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Thu Nov 12 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 234-15
|
|
|
9dd3d1 |
- Fix build with new mock (#1793022) and python 3.10 (#1891786)
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 234-14
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 234-13
|
|
|
9dd3d1 |
- Rebuilt for Python 3.9
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 234-12
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Sun Sep 08 2019 Miro Hrončok <mhroncok@redhat.com> - 234-11
|
|
|
9dd3d1 |
- Subpackage python2-systemd has been removed
|
|
|
9dd3d1 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 234-10
|
|
|
9dd3d1 |
- Rebuilt for Python 3.8
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 234-9
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 234-8
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 234-7
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 234-6
|
|
|
9dd3d1 |
- Rebuilt for Python 3.7
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 234-5
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Wed Nov 1 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 234-4
|
|
|
9dd3d1 |
- Use separate license and documentation directories
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 234-3
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 234-2
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Sun Mar 26 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 234-1
|
|
|
9dd3d1 |
- Update to latest version
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 232-3
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 232-2
|
|
|
9dd3d1 |
- Rebuild for Python 3.6
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Thu Sep 22 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 232-1
|
|
|
9dd3d1 |
- Update to latest version
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 231-6
|
|
|
9dd3d1 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 231-5
|
|
|
9dd3d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Sun Jan 24 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@bupkis> - 231-4
|
|
|
9dd3d1 |
- Bugfixes for seek_monotonic and Python 2 compat
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Sun Nov 15 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 231-3
|
|
|
9dd3d1 |
- Split out doc subpackage (#1242619)
|
|
|
9dd3d1 |
- Do not allow installation of python-systemd in different versions
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Sat Nov 07 2015 Robert Kuska <rkuska@redhat.com> - 231-2
|
|
|
9dd3d1 |
- Rebuilt for Python3.5 rebuild
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Tue Oct 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@laptop> - 231-1
|
|
|
9dd3d1 |
- Update to latest version
|
|
|
9dd3d1 |
|
|
|
9dd3d1 |
* Mon Jul 6 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@laptop> - 230-1
|
|
|
9dd3d1 |
- Initial packaging
|