%global srcname journal-brief
%global sum Find new systemd journal entries since last run
Name: python-%{srcname}
Version: 1.1.5
Release: 11%{?dist}
Summary: %{sum}
License: GPLv2+
URL: https://pypi.python.org/pypi/%{srcname}
Source0: https://pypi.python.org/packages/source/j/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
# en_US.UTF-8 locale required for tests
BuildRequires: glibc-langpack-en
BuildRequires: python3-devel
BuildRequires: python3-pytest python3-flexmock
BuildRequires: python3-PyYAML
%description
Python module for examining, bookmarking, and filtering systemd
journal entries.
%package -n %{srcname}
Summary: Show interesting new systemd journal entries since last run
Requires: python3-%{srcname} = %{version}-%{release}
Requires: python3-setuptools
%description -n %{srcname}
Run this from cron to get a daily or hourly briefing of interesting
new systemd journal entries.
%package -n python3-%{srcname}
Summary: %{sum}
Requires: systemd-python3
Requires: python3-PyYAML
Recommends: %{srcname} = %{version}-%{release}
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname}
Python module for examining, bookmarking, and filtering systemd
journal entries.
%prep
%autosetup -n %{srcname}-%{version}
%build
%py3_build
%install
%py3_install
%check
%{__python3} %{py_setup} test
%files -n %{srcname}
%{_bindir}/%{srcname}
%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/*
%changelog
* Thu Aug 15 2019 Tim Waugh <twaugh@redhat.com> - 1.1.5-11
- Fix running of tests.
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Feb 14 2019 Tim Waugh <twaugh@redhat.com> - 1.1.5-9
- Build requires en_US.UTF-8 for test suite (bug #1675746).
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-6
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.5-2
- Rebuild for Python 3.6
* Tue Nov 1 2016 Tim Waugh <twaugh@redhat.com> - 1.1.5-1
- 1.1.5:
- setup: don't install tests.format (RH bug #1390250)
* Sun Jul 24 2016 Tim Waugh <twaugh@redhat.com> - 1.1.4-1
- 1.1.4.
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* Mon Nov 9 2015 Tim Waugh <twaugh@redhat.com> - 1.1.3-1
- 1.1.3 (bug #1279097).
* Wed Nov 4 2015 Tim Waugh <twaugh@redhat.com> - 1.1.2-2
- Add python3-PyYAML runtime dependency (bug #1277715).
* Fri Oct 30 2015 Tim Waugh <twaugh@redhat.com> - 1.1.2-1
- 1.1.2.
- Run doctests in %%check.
* Fri Oct 23 2015 Tim Waugh <twaugh@redhat.com> - 1.1.1-2
- journal-brief sub-package requires python3-setuptools due to
entrypoint usage.
- python3-journal-brief sub-package requires systemd-python3, not
(absent) main package.
* Fri Oct 16 2015 Tim Waugh <twaugh@redhat.com> - 1.1.1-1
- Initial spec file.