69f430
%global srcname journal-brief
69f430
%global sum Find new systemd journal entries since last run
69f430
69f430
Name:		python-%{srcname}
3ab1a1
Version:	1.1.7
d8cbc2
Release:	2%{?dist}
69f430
Summary:	%{sum}
69f430
69f430
License:	GPLv2+
69f430
URL:		https://pypi.python.org/pypi/%{srcname}
69f430
Source0:	https://pypi.python.org/packages/source/j/%{srcname}/%{srcname}-%{version}.tar.gz
69f430
69f430
BuildArch:	noarch
45d479
# en_US.UTF-8 locale required for tests
45d479
BuildRequires:	glibc-langpack-en
69f430
BuildRequires:	python3-devel
69f430
BuildRequires:	python3-PyYAML
63c946
%if 0%{?with_check}
63c946
BuildRequires:	python3-pytest python3-flexmock
63c946
%endif # with_check
69f430
69f430
%description
69f430
Python module for examining, bookmarking, and filtering systemd
69f430
journal entries.
69f430
69f430
69f430
%package -n %{srcname}
69f430
Summary:	Show interesting new systemd journal entries since last run
69f430
Requires:	python3-%{srcname} = %{version}-%{release}
722be2
Requires:	python3-setuptools
69f430
69f430
%description -n %{srcname}
69f430
Run this from cron to get a daily or hourly briefing of interesting
69f430
new systemd journal entries.
69f430
69f430
69f430
%package -n python3-%{srcname}
69f430
Summary:	%{sum}
722be2
Requires:	systemd-python3
7ca017
Requires:	python3-PyYAML
69f430
Recommends:	%{srcname} = %{version}-%{release}
69f430
%{?python_provide:%python_provide python3-%{srcname}}
69f430
69f430
%description -n python3-%{srcname}
69f430
Python module for examining, bookmarking, and filtering systemd
69f430
journal entries.
69f430
69f430
69f430
%prep
69f430
%autosetup -n %{srcname}-%{version}
69f430
69f430
%build
69f430
%py3_build
69f430
69f430
69f430
%install
69f430
%py3_install
69f430
69f430
63c946
%if 0%{?with_check}
69f430
%check
d05605
%{__python3} %{py_setup} test
63c946
%endif # with_check
69f430
69f430
69f430
%files -n %{srcname}
69f430
%{_bindir}/%{srcname}
69f430
69f430
69f430
%files -n python3-%{srcname}
69f430
%license LICENSE
69f430
%doc README.md
69f430
%{python3_sitelib}/*
69f430
69f430
69f430
%changelog
d8cbc2
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-2
d8cbc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d8cbc2
3ab1a1
* Mon Jul 13 2020 Tim Waugh <twaugh@redhat.com> - 1.1.7-1
3ab1a1
- 1.1.7.
3ab1a1
c82a0e
* Tue Jul  7 2020 Tim Waugh <twaugh@redhat.com> - 1.1.6-1
c82a0e
- 1.1.6.
c82a0e
63c946
* Fri Jun 19 2020 Tim Waugh <twaugh@redhat.com> - 1.1.5-16
63c946
- Add conditional markers for checks.
63c946
819cfa
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 1.1.5-15
819cfa
- Rebuilt for Python 3.9
819cfa
801d94
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-14
801d94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
801d94
668e9d
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 1.1.5-13
668e9d
- Rebuilt for Python 3.8.0rc1 (#1748018)
668e9d
327baa
* Thu Aug 15 2019 Tim Waugh <twaugh@redhat.com> - 1.1.5-12
327baa
- Rebuild against Python 3.8.
327baa
d05605
* Thu Aug 15 2019 Tim Waugh <twaugh@redhat.com> - 1.1.5-11
d05605
- Fix running of tests.
d05605
c5d9db
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-10
c5d9db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c5d9db
45d479
* Thu Feb 14 2019 Tim Waugh <twaugh@redhat.com> - 1.1.5-9
45d479
- Build requires en_US.UTF-8 for test suite (bug #1675746).
45d479
5b2b5c
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-8
5b2b5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5b2b5c
9d36be
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-7
9d36be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9d36be
3a7381
* Tue Jun 19 2018 Miro Hron훾ok <mhroncok@redhat.com> - 1.1.5-6
3a7381
- Rebuilt for Python 3.7
3a7381
afc495
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-5
afc495
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
afc495
a6054d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-4
a6054d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a6054d
74e42a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-3
74e42a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
74e42a
8d8da8
* Mon Dec 19 2016 Miro Hron훾ok <mhroncok@redhat.com> - 1.1.5-2
8d8da8
- Rebuild for Python 3.6
8d8da8
c69f1e
* Tue Nov  1 2016 Tim Waugh <twaugh@redhat.com> - 1.1.5-1
c69f1e
- 1.1.5:
c69f1e
  - setup: don't install tests.format (RH bug #1390250)
c69f1e
645fe7
* Sun Jul 24 2016 Tim Waugh <twaugh@redhat.com> - 1.1.4-1
645fe7
- 1.1.4.
645fe7
78746f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-4
78746f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
78746f
82525f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
82525f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
82525f
79b899
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
79b899
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
79b899
7d50c7
* Mon Nov  9 2015 Tim Waugh <twaugh@redhat.com> - 1.1.3-1
7d50c7
- 1.1.3 (bug #1279097).
7d50c7
7ca017
* Wed Nov  4 2015 Tim Waugh <twaugh@redhat.com> - 1.1.2-2
7ca017
- Add python3-PyYAML runtime dependency (bug #1277715).
7ca017
c5e108
* Fri Oct 30 2015 Tim Waugh <twaugh@redhat.com> - 1.1.2-1
c5e108
- 1.1.2.
c5e108
- Run doctests in %%check.
c5e108
722be2
* Fri Oct 23 2015 Tim Waugh <twaugh@redhat.com> - 1.1.1-2
722be2
- journal-brief sub-package requires python3-setuptools due to
722be2
  entrypoint usage.
722be2
- python3-journal-brief sub-package requires systemd-python3, not
722be2
  (absent) main package.
722be2
69f430
* Fri Oct 16 2015 Tim Waugh <twaugh@redhat.com> - 1.1.1-1
69f430
- Initial spec file.