File onis.spec of Package onis
# norootforbuild
Name: onis
Version: 0.8.2
Release: 0
Summary: Onis not IRC Stats
Source: http://verplant.org/onis/onis-%{version}.tar.bz2
Source99: %{name}-rpmlintrc
URL: http://verplant.org/onis/
Group: Productivity/Networking/IRC
License: GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: perl
BuildArch: noarch
%description
Onis is a script that converts IRC logfiles into an HTML statistics page. It
provides information about daily channel usage, user activity, and channel
trivia. It provides a configurable customization and supports Dancer,
dircproxy, eggdrop, irssi, mIRC, and XChat logs. Persistent data (history
files) and automatic log purging make onis applicable for a large number of
logfiles. It also features a powerful translation infrastructure.
%prep
%setup -q
%__patch -p1 < contrib/systemwide-patch/systemwide-patch.diff
%build
pod2man -r "$(egrep '^\$VERSION' onis | cut -d \' -f 2)" onis >onis.1
%install
%__install -d \
"%{buildroot}%{_bindir}" \
"%{buildroot}%{_sysconfdir}/onis" \
"%{buildroot}%{perl_vendorlib}" \
"%{buildroot}%{_datadir}/onis" \
"%{buildroot}%{_localstatedir}/lib/onis" \
"%{buildroot}%{_mandir}/man1"
%__install -m0755 onis "%{buildroot}%{_bindir}/"
%__install -m0644 onis.conf users.conf "%{buildroot}%{_sysconfdir}/onis/"
%__cp -r lib/Onis "%{buildroot}%{perl_vendorlib}/"
%__cp -r themes lang "%{buildroot}%{_datadir}/onis/"
%__cp -r reports/*-theme "%{buildroot}%{_datadir}/onis/themes/"
%__install -m0644 onis.1 "%{buildroot}%{_mandir}/man1/"
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc CHANGELOG THANKS README TODO FAQ COPYING
%dir %{_sysconfdir}/onis
%config(noreplace) %{_sysconfdir}/onis/*
%{_bindir}/onis
%{perl_vendorlib}/Onis
%{_datadir}/onis
%doc %{_mandir}/man1/*.1%{ext_man}
%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: