forked from Aiven-Open/journalpump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjournalpump.spec
56 lines (42 loc) · 1.58 KB
/
journalpump.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
Name: journalpump
Version: %{major_version}
Release: %{minor_version}%{?dist}
Url: http://github.com/aiven/journalpump
Summary: Pump messages from systemd journal to Elasticsearch, Kafka or Logplex
License: ASL 2.0
Source0: journalpump-rpm-src.tar.gz
Requires: python3-kafka, systemd-python3, python3-requests
BuildRequires: %{requires}
BuildRequires: python3-devel, python3-pytest, python3-pylint
BuildArch: noarch
Obsoletes: kafkajournalpump
%description
journalpump is a daemon that takes log messages from journald and pumps them
to a given output. Currently supported outputs are Elasticsearch, Kafka and
logplex. It reads messages from journald and optionally checks if they
match a config rule and forwards them as JSON messages to the desired
output.
%prep
%setup -q -n journalpump
%build
# Nothing to do, shut up rpmlint
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
sed -e "s@#!/bin/python@#!%{_bindir}/python@" -i %{buildroot}%{_bindir}/*
%{__install} -Dm0644 journalpump.unit %{buildroot}%{_unitdir}/journalpump.service
%{__mkdir_p} %{buildroot}%{_localstatedir}/lib/journalpump
%check
make test
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst journalpump.json
%{_bindir}/journalpump*
%{_unitdir}/journalpump.service
%{_localstatedir}/lib/journalpump
%{python3_sitelib}/*
%changelog
* Fri Mar 25 2016 Oskari Saarenmaa <[email protected]> - 1.0.1
- Renamed to journalpump
- We're Python 3 only now
* Mon Jul 27 2015 Hannu Valtonen <[email protected]> - 1.0.0
- Initial RPM package spec