]>
Commit | Line | Data |
---|---|---|
1 | Summary: Perl script which generates statistics from IRC logfiles | |
2 | Summary(pl.UTF-8): Skrypt perlowy generujący statystyki z plików logujących IRC-a | |
3 | Name: pisg | |
4 | Version: 0.72 | |
5 | Release: 4 | |
6 | License: GPL | |
7 | Group: Applications/Communications | |
8 | Source0: http://dl.sourceforge.net/pisg/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 28ffff94b052ff8ba7621d7d8394b296 | |
10 | Patch0: %{name}-config.patch | |
11 | Patch1: %{name}-FHS.patch | |
12 | Patch2: %{name}-lang.patch | |
13 | Patch3: %{name}-hacks.patch | |
14 | Patch4: no-autosilent.patch | |
15 | URL: http://pisg.sourceforge.net/ | |
16 | Suggests: perl-Text-Iconv | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | pisg is an IRC channel statics generator written in Perl, it creates | |
22 | statistics from different logfile formats. The supported logfile | |
23 | formats is explained in the FORMATS file. It was originally written | |
24 | because IRCStats wasn't open source. It's highly customizable. | |
25 | Extensive documentation can be found at: | |
26 | <http://pisg.sourceforge.net/docs/>. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | pisg jest napisanym w Perlu generatorem statystyk kanału IRC. Tworzy | |
30 | je z różnych formatów plików logujących. Obsługiwane formaty są | |
31 | objaśnione w pliku FORMATS. Jest wysoko konfigurowalny. Obszerniejsza | |
32 | dokumentacja znajduje się na: <http://pisg.sourceforge.net/docs/>. | |
33 | ||
34 | %prep | |
35 | %setup -q | |
36 | %patch0 -p1 | |
37 | %patch1 -p1 | |
38 | %patch2 -p1 | |
39 | %patch3 -p1 | |
40 | %patch4 -p1 | |
41 | ||
42 | mv docs/pisg.1 . | |
43 | ||
44 | # cleanup backups after patching | |
45 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/pisg,%{_datadir}/pisg,%{_bindir},%{_mandir}/man1,%{perl_vendorlib}} | |
50 | cp -a pisg.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
51 | cp -a pisg.cfg $RPM_BUILD_ROOT%{_sysconfdir}/pisg | |
52 | cp -a gfx layout lang.txt $RPM_BUILD_ROOT%{_datadir}/pisg | |
53 | cp -a modules/* $RPM_BUILD_ROOT%{perl_vendorlib} | |
54 | install -p pisg $RPM_BUILD_ROOT%{_bindir} | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc README docs/* scripts | |
62 | %attr(755,root,root) %{_bindir}/pisg | |
63 | %dir %{_sysconfdir}/pisg | |
64 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pisg/pisg.cfg | |
65 | %{perl_vendorlib}/Pisg.pm | |
66 | %{perl_vendorlib}/Pisg | |
67 | %dir %{_datadir}/pisg | |
68 | %{_datadir}/pisg/gfx | |
69 | %{_datadir}/pisg/layout | |
70 | %{_datadir}/pisg/lang.txt | |
71 | %{_mandir}/man1/pisg.1* |