-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtimegrep.spec
51 lines (32 loc) · 1.12 KB
/
timegrep.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
Name: timegrep
Version: 0.7
Release: 1
Summary: Utility to grep log between two dates or tail last lines to time ago
Group: Productivity/Text/Utilities
License: BSD-2-Clause
URL: https://github.com/abbat/timegrep
BuildRequires: pcre-devel
Source0: https://build.opensuse.org/source/home:antonbatenev:timegrep/timegrep/timegrep_%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Utility to grep log between two dates or tail last
lines to time ago similar dategrep.
%prep
%setup -q -n timegrep
%build
make USER_CFLAGS="${RPM_OPT_FLAGS}" USER_CPPFLAGS="${RPM_OPT_FLAGS}" USER_LDFLAGS="${RPM_LD_FLAGS}" %{?_smp_mflags}
%install
install -d %{buildroot}%{_bindir}
install -m755 timegrep %{buildroot}%{_bindir}/timegrep
install -d %{buildroot}%{_mandir}/man1
install -m644 timegrep.1 %{buildroot}%{_mandir}/man1/timegrep.1
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.md
%doc %{_mandir}/man1/timegrep.1*
%{_bindir}/timegrep
%changelog
* Tue Jan 07 2020 Anton Batenev <[email protected]> 0.7-1
- Initial RPM release