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