]> git.pld-linux.org Git - packages/eggdrop.git/blob - eggdrop.spec
- added eggdrop-doc_makefile.patch (fixes some doc installation issues)
[packages/eggdrop.git] / eggdrop.spec
1 Summary:        Eggdrop is an IRC bot, written in C
2 Summary(pl):    Eggdrop jest botem IRC napisanym w C
3 Name:           eggdrop
4 Version:        1.6.13
5 Release:        4
6 License:        GPL
7 Group:          Applications/Communications
8 Source0:        ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/%{name}%{version}.tar.gz
9 # In order to unify filenames, following language packs and third-party modules were 
10 # repackaged. Some files were renamed, but none modified. Original archives can be 
11 # found by looking at http://www.egghelp.org/
12 Source10:       %{name}-language-danish.tar.gz
13 Source11:       %{name}-language-finnish.tar.gz
14 Source12:       %{name}-language-italian.tar.gz
15 Source13:       %{name}-language-norwegian.tar.gz
16 Source14:       %{name}-language-portuguese.tar.gz
17 Source15:       %{name}-language-portuguese_br.tar.gz
18 Source16:       %{name}-language-romanian.tar.gz
19 # Additional modules
20 Source20:       %{name}-module-away-1.0.tar.gz
21 Source21:       %{name}-module-botnetop-1.0.1.tar.gz
22 Source22:       %{name}-module-fakebotnet-1.3.tar.gz
23 Source23:       %{name}-module-gseen-1.1.0.tar.gz
24 Source24:       %{name}-module-irctree-1.1.tar.gz
25 Source25:       %{name}-module-megahal-2.5.tar.gz
26 Source26:       %{name}-module-stats-1.3.3dev1.tar.gz
27 Patch0:         %{name}-FHS.patch
28 # Unofficial IPv6 patch
29 Patch1:         http://www.egghelp.org/files/patches/%{name}%{version}+ipv6.patch.gz
30 Patch2:         %{name}%{version}+ipv6_config.patch
31 Patch3:         %{name}-doc_makefile.patch
32 URL:            http://www.eggheads.org/
33 BuildRequires:  tcl-devel
34 Requires:       tcl
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 Eggdrop is an IRC bot, written in C. If you don't know what IRC is,
39 this is probably not whatever you're looking for! Eggdrop, being a
40 bot, sits on a channel and takes protective measures: to keep the
41 channel from being taken over (in the few ways that anything CAN), to
42 recognize banished users or sites and reject them, to recognize
43 privileged users and let them gain ops, etc. Eggdrop also contains
44 many modules and scripts, for example for sending files.
45
46 %description -l pl
47 Eggdrop jest IRCowym botem napisanym w C. Eggdrop, bêd±c botem jest na
48 kanale i zajmuje siê jego ochron±: zabezpieczeniem przed przejêciem,
49 nadawaniem odpowiednich przywilejów zarejestrowanym u¿ytkownikom,
50 pilnowanie tzw. banów itp. Eggdrop poza tymi funkcjami posiada tak¿e
51 wiele dodatków, jak przesy³anie plików czy inne skrypty dla rozrywki.
52
53 %prep
54 %setup -q -n %{name}%{version} -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a20 -a21 -a22 -a23 -a24 -a25 -a26
55 %patch0 -p1
56 %patch1 -p1
57 %patch2 -p0
58 %patch3 -p0
59
60 %build
61 CFLAGS="%{rpmcflags}"; export CFLAGS
62 ./configure
63 %{__make} config
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/modules,%{_datadir}/%{name},%{_mandir}/man1,%{_datadir}/%{name}/{help,scripts,language},%{_datadir}/doc/%{name}-%{version}}
69
70 %{__make} DESTDIR="$RPM_BUILD_ROOT" install
71
72 cp $RPM_BUILD_ROOT/%{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name}
73
74 find $RPM_BUILD_ROOT/doc -type f | egrep -v "(\.html$|\.htm$)" | xargs gzip -9nf
75 gzip -9nf $RPM_BUILD_ROOT/README $RPM_BUILD_ROOT/%{name}.conf 
76
77 cp $RPM_BUILD_ROOT/doc/man1/%{name}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1.gz
78 rm -r $RPM_BUILD_ROOT/doc/man1
79
80 cp -a $RPM_BUILD_ROOT/*.gz \
81         $RPM_BUILD_ROOT/doc/* \
82         $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/
83
84 cp -a $RPM_BUILD_ROOT/doc/modules $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
85
86 cp -a $RPM_BUILD_ROOT/text/* \
87         $RPM_BUILD_ROOT/help/ \
88         $RPM_BUILD_ROOT/scripts/ \
89         $RPM_BUILD_ROOT/language/ \
90         $RPM_BUILD_ROOT%{_datadir}/%{name}/
91
92 cp -a $RPM_BUILD_ROOT/modules/* \
93         $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %files
99 %defattr(644,root,root,755)
100 %doc %{_datadir}/doc/%{name}-%{version}
101 %attr(755,root,root) %{_bindir}/%{name}
102 %dir %{_libdir}/%{name}
103 %dir %{_libdir}/%{name}/modules
104 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
105 %{_datadir}/%{name}
106 %{_mandir}/man1/%{name}.1*
This page took 0.046703 seconds and 4 git commands to generate.