Blame SPECS/python-systemd.spec

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