diff --git a/journal-brief-1.1.7.tar.gz b/journal-brief-1.1.7.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3bb41a6695e609e2416676c2b0b3d4e8f81cb3c2 Binary files /dev/null and b/journal-brief-1.1.7.tar.gz differ diff --git a/python-journal-brief.spec b/python-journal-brief.spec new file mode 100644 index 0000000000000000000000000000000000000000..b2cccf338ef9965a94c1d244af10501471911550 --- /dev/null +++ b/python-journal-brief.spec @@ -0,0 +1,74 @@ +%global srcname journal-brief +%global sum Find new systemd journal entries since last run + +Name: python-%{srcname} +Version: 1.1.7 +Release: 5%{?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-PyYAML +BuildRequires: python3-setuptools +%if 0%{?with_check} +BuildRequires: python3-pytest python3-flexmock +%endif + +%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 + +%if 0%{?with_check} +%check +%{__python3} %{py_setup} test +%endif + + +%files -n %{srcname} +%{_bindir}/%{srcname} + + +%files -n python3-%{srcname} +%license LICENSE +%doc README.md +%{python3_sitelib}/* +