-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpxzgrep.spec
53 lines (42 loc) · 1.31 KB
/
pxzgrep.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
Name: pxzgrep
Version: 1.0.0+dev
Release: 0
Summary: parallel xzgrep wrapper
Group: System
License: GPL
URL: https://github.com/ETHZ-IT-SeC/pxzgrep
Source: https://github.com/ETHZ-IT-SeC/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Prefix: %{_prefix}
Packager: Axel Beckert <axel@ethz.ch>
BuildArch: noarch
%description
If you need to grep through terabytes of compressed log files, this
can take a lot of time if you do it serial - even on fast hardware.
But since such amounts of logs are usually not stored in a single file
and most servers today have multiple cores anyway, you can get a
massive speed up if you run multiple xzgrep processes in parallel.
pxzgrep automates this.
%prep
mkdir -p build/
%setup -q -n %{name}-%{version}
%build
make
%check
make check
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p build/usr/bin
make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} install
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make clean
rm -rf build
%files
%defattr(-,root,root)
%doc README.md LICENSE.md CHANGELOG.md TODO.md
%{_bindir}/pxzgrep
%{_mandir}/man1/pxzgrep.1.gz
%changelog
* Mon Oct 26 2020 Axel Beckert <axel@ethz.ch>
- Initial RPM packaging