-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathonis.spec
77 lines (64 loc) · 2.27 KB
/
onis.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
%define ver 0.8.2
%define perllibdir %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
Name: onis
Summary: A logfile analyser and statistics generator for IRC-logfiles
Group: Applications/Internet
Version: %{ver}
Release: 1
Source0: http://verplant.org/onis/%{name}-%{ver}.tar.gz
URL: http://verplant.org/onis/
License: GPL
Requires: perl >= 5.6.0
AutoReqProv: no
BuildArch: noarch
Buildroot: %{_tmppath}/%{name}-root
Packager: Florian octo Forster <[email protected]>
%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
patch -p1 <contrib/systemwide-patch/systemwide-patch.diff
%build
pod2man -r "$(egrep '^\$VERSION' onis | cut -d \' -f 2)" onis >onis.1
%install
rm -fr $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%_bindir \
$RPM_BUILD_ROOT/etc/onis \
$RPM_BUILD_ROOT%{perllibdir} \
$RPM_BUILD_ROOT%{_datadir}/onis \
$RPM_BUILD_ROOT/var/lib/onis \
$RPM_BUILD_ROOT%{_mandir}/man1
cp onis $RPM_BUILD_ROOT%{_bindir}/
cp onis.conf users.conf $RPM_BUILD_ROOT/etc/onis/
cp -r lib/Onis $RPM_BUILD_ROOT%{perllibdir}/
cp -r themes lang $RPM_BUILD_ROOT%{_datadir}/onis/
cp -r reports/*-theme $RPM_BUILD_ROOT%{_datadir}/onis/themes/
cp onis.1 $RPM_BUILD_ROOT%{_mandir}/man1/
chmod 0755 $RPM_BUILD_ROOT%_bindir/onis
chmod -R 0644 $RPM_BUILD_ROOT/etc/onis/*
chmod -R a-w $RPM_BUILD_ROOT%{perllibdir}/Onis
chmod -R a-w $RPM_BUILD_ROOT%{_datadir}/onis
chmod -R a-w $RPM_BUILD_ROOT%{_mandir}/man1/onis.1
%clean
rm -fr $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc CHANGELOG THANKS README TODO FAQ COPYING
%config(noreplace) /etc/onis/*
%{_bindir}/onis
%{perllibdir}/Onis
%{_datadir}/onis
%{_mandir}/man1/*
%changelog
* Tue Jun 07 2005 Florian Forster <[email protected]>
- New upstream version.
* Sat Apr 23 2005 Florian Forster <[email protected]>
- Added generation of manpage.
- Rebuild for onis-0.8.1
* Mon Apr 18 2005 Florian Forster <[email protected]>
- Initial build.