Blob Blame History Raw
Summary: Utility to display new messages of a logfile since last run
Name: fetchlog
Version: 1.4
Release: 3%{?dist}
License: GPLv2+
Url: http://sourceforge.net/projects/%{name}/
Source: http://dl.sf.net/sourceforge/fetchlog/%{name}-%{version}.tar.gz
Patch0: fetchlog-build.patch
Patch1: fetchlog-unusedvar.patch
Patch2: fetchlog-1.4-write.patch
Patch3: fetchlog-1.4-tests.patch
Group: Applications/System
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
The fetchlog utility displays the last new messages of a logfile. It is
similar like tail (1) but offers some extra functionality for output
formatting. To show only the new messages appeared since the last call
fetchlog uses a bookmark to remember which messages have been fetched.

%prep
%setup -q 
%patch0
%patch1 -p1
%patch2 -p0
%patch3 -p1

%build
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
install -d %{buildroot}/%{_bindir}
install -d %{buildroot}/%{_mandir}/man1
install -m755 %{name} %{buildroot}/%{_bindir}
install -m644 %{name}.1 %{buildroot}/%{_mandir}/man1

%check
make test
make testall

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%{_bindir}/%{name}
%doc CHANGES LICENSE README README.Nagios README.SNMP
%{_mandir}/*/*

%changelog
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Tue Jul  3 2012 Paul Wouters <pwouters@redhat.com> - 1.4-2
- Updated to 1.4-1 (rhbz#608241)
- Added patch for -Wunused and patch for bad CFLAGS
- write() patch with test case fixups

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Wed Feb 11 2009 Paul Wouters <paul@xelerance.com> - 1.2-1
- Updated to new upstream

* Mon Nov 24 2008 Paul Wouters <paul@xelerance.com> - 1.0-11
- Updates summary as per Richard Hughes guidelines

* Fri Jul 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-10
- fix license tag

* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0-9
- Autorebuild for GCC 4.3

* Thu Sep  7 2006 Paul Wouters <paul@xelerance.com> - 1.0-8
- Rebuild requested for PT_GNU_HASH support from gcc

* Mon Mar  3 2006 Paul Wouters <paul@xelerance.com> - 1.0-7
- Bump version. this time cause of old .cvsignore

* Mon Mar  3 2006 Paul Wouters <paul@xelerance.com> - 1.0-6
- Bump version again :(

* Mon Mar  3 2006 Paul Wouters <paul@xelerance.com> - 1.0-5
- Bump version for build system

* Mon Feb  6 2006 Paul Wouters <paul@xelerance.com> - 1.0-4
- Bump version due to make tag error

* Mon Feb  6 2006 Paul Wouters <paul@xelerance.com> - 1.0-3
- Fixes by Ville Skyttä to honour $RPM_OPT_FLAGS and run make test

* Mon Jan 17 2006 Paul Wouters <paul@xelerance.com> - 1.0-2
- Fixed install target for man page and cleaning before install

* Mon Jan 16 2006 Paul Wouters <paul@xelerance.com> - 1.0-1
- Initial version for Fedora Extras