File lighty-stats.spec of Package lighty-stats
# norootforbuild
Name: lighty-stats
Version: 0.3.6
Release: 0
Summary: Console Lighttpd Log File Analyzer
Source: https://derf.homelinux.org/~derf/projects/lighty-stats/lighty-stats-%{version}.tar.bz2
Patch1: lighty-stats-makefile_destdir.patch
URL: https://derf.homelinux.org/~derf/projects/lighty-stats/
Group: Productivity/Networking/Web/Utilities
License: BSD License (revised)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: perl >= 5.10
BuildRequires: make
BuildRequires: zsh
Requires: perl = %{perl_version}
Requires: perl >= 5.10
BuildArch: noarch
%description
lighty-stats is a CLI lighttpd log file analyzer which, unlike most other
tools, prints the result directly to the terminal. Since most Web servers use
the same log format, it can be used for other httpd software as well.
Authors:
--------
Daniel Friesel <derf@derf.homelinux.org>
%package zsh-completion
Summary: Zsh Command-line Completion for %{name}
Group: Productivity/Networking/Web/Utilities
Requires: %{name} = %{version}-%{release}
Requires: zsh
%description zsh-completion
lighty-stats is a CLI lighttpd log file analyzer which, unlike most other
tools, prints the result directly to the terminal. Since most Web servers use
the same log format, it can be used for other httpd software as well.
This package contains command-line zsh completion functions for %{name}
%prep
%setup -q
%patch1
%build
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall prefix="%{_prefix}"
%__install -D -m0644 provides/zsh/completions/_lighty-stats \
"%{buildroot}%{_datadir}/zsh/site/scripts/_lighty-stats"
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc Changelog COPYING README
%doc example
%{_bindir}/lighty-stats
%doc %{_mandir}/man1/lighty-stats.1*
%files zsh-completion
%defattr(-,root,root)
%{_datadir}/zsh/site/scripts/_lighty-stats
%changelog
* Thu Jul 30 2009 Pascal Bleser <pascal.bleser@opensuse.org> 0.3.6
- update to 0.3.6:
* the documentation was improved a bit
* a typo in the Makefile was fixed and a missing option was added to the zsh completion
- changes from 0.3.5:
* minor code improvements
* --count=0 now shows all items instead of none
- add zsh completion file, into %{name}-zsh subpackage
* Tue Apr 14 2009 Pascal Bleser <pascal.bleser@opensuse.org> 0.3.4
- require perl 5.10
* Tue Apr 14 2009 Pascal Bleser <pascal.bleser@opensuse.org> 0.3.4
- new package
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: