]> git.pld-linux.org Git - packages/pisg.git/blob - pisg.spec
- some hooks to be able to use modules outside
[packages/pisg.git] / pisg.spec
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:        3
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 URL:            http://pisg.sourceforge.net/
15 Suggests:       perl-Text-Iconv
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 pisg is an IRC channel statics generator written in Perl, it creates
21 statistics from different logfile formats. The supported logfile
22 formats is explained in the FORMATS file. It was originally written
23 because IRCStats wasn't open source. It's highly customizable.
24 Extensive documentation can be found at:
25 <http://pisg.sourceforge.net/docs/>.
26
27 %description -l pl.UTF-8
28 pisg jest napisanym w Perlu generatorem statystyk kanału IRC. Tworzy
29 je z różnych formatów plików logujących. Obsługiwane formaty są
30 objaśnione w pliku FORMATS. Jest wysoko konfigurowalny. Obszerniejsza
31 dokumentacja znajduje się na: <http://pisg.sourceforge.net/docs/>.
32
33 %prep
34 %setup -q
35 %patch0 -p1
36 %patch1 -p1
37 %patch2 -p1
38 %patch3 -p1
39
40 mv docs/pisg.1 .
41
42 # cleanup backups after patching
43 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/pisg,%{_datadir}/pisg,%{_bindir},%{_mandir}/man1,%{perl_vendorlib}}
48 cp -a pisg.1 $RPM_BUILD_ROOT%{_mandir}/man1
49 cp -a pisg.cfg $RPM_BUILD_ROOT%{_sysconfdir}/pisg
50 cp -a gfx layout lang.txt $RPM_BUILD_ROOT%{_datadir}/pisg
51 cp -a modules/* $RPM_BUILD_ROOT%{perl_vendorlib}
52 install pisg $RPM_BUILD_ROOT%{_bindir}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README docs/* scripts
60 %attr(755,root,root) %{_bindir}/pisg
61 %dir %{_sysconfdir}/pisg
62 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pisg/pisg.cfg
63 %{perl_vendorlib}/Pisg.pm
64 %{perl_vendorlib}/Pisg
65 %dir %{_datadir}/pisg
66 %{_datadir}/pisg/gfx
67 %{_datadir}/pisg/layout
68 %{_datadir}/pisg/lang.txt
69 %{_mandir}/man1/pisg.1*
This page took 0.063637 seconds and 3 git commands to generate.