-
Notifications
You must be signed in to change notification settings - Fork 3
/
python-journal-brief.spec
95 lines (65 loc) · 2.07 KB
/
python-journal-brief.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
%global srcname journal-brief
%global sum Find new systemd journal entries since last run
Name: python-%{srcname}
Version: 1.1.8
Release: 1%{?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
BuildRequires: python3-devel
BuildRequires: python3-pytest python3-flexmock python3-pytest-mock
BuildRequires: python3-PyYAML
BuildRequires: python3-setuptools
%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
PYTEST_ARGS='-v --doctest-modules tests journal_brief'
%{__python3} %{py_setup} test --pytest-args="$PYTEST_ARGS"
%files -n %{srcname}
%{_bindir}/%{srcname}
%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/*
%changelog
* Tue Jan 11 2022 Tim Waugh <[email protected]> - 1.1.8-1
- 1.1.8.
* Mon Jul 13 2020 Tim Waugh <[email protected]> - 1.1.7-1
- 1.1.7.
* Tue Jul 7 2020 Tim Waugh <[email protected]> - 1.1.6-1
- 1.1.6.
* Mon Oct 31 2016 Tim Waugh <[email protected]> - 1.1.5-1
- 1.1.5.
* Sun Jul 24 2016 Tim Waugh <[email protected]> - 1.1.4-1
- 1.1.4.
* Mon Nov 9 2015 Tim Waugh <[email protected]> - 1.1.3-1
- 1.1.3.
* Fri Oct 30 2015 Tim Waugh <[email protected]> - 1.1.2-1
- 1.1.2.
* Thu Oct 15 2015 Tim Waugh <[email protected]> - 1.1.1-1
- Initial spec file.