4e34883
Name:           python-systemd
35d9581
Version:        234
2afc636
Release:        12%{?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
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
5649111
%global _description \
22c3d37
Python module for native access to the systemd facilities.\
22c3d37
Functionality includes sending of structured messages to the journal\
22c3d37
and reading journal files, querying machine and boot identifiers and a\
22c3d37
lists of message identifiers provided by systemd. Other functionality\
0bddc98
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
65d208a
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
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