1 Summary: Eggdrop is an IRC bot, written in C
2 Summary(pl): Eggdrop jest botem IRC napisanym w C
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 were repackaged. Some files were
10 # renamed, but none modified. Original archives are available at http://www.egghelp.org/
11 Source10: %{name}%{version}-language-danish.tar.gz
12 Source11: %{name}%{version}-language-finnish.tar.gz
13 Source12: %{name}%{version}-language-italian.tar.gz
14 Source13: %{name}%{version}-language-norwegian.tar.gz
15 Source14: %{name}%{version}-language-portuguese.tar.gz
16 Source15: %{name}%{version}-language-portuguese_br.tar.gz
17 Source16: %{name}%{version}-language-romanian.tar.gz
18 Patch0: %{name}-FHS.patch
19 # Unofficial IPv6 patch
20 Patch1: http://www.egghelp.org/files/patches/%{name}%{version}+ipv6.patch.gz
21 Patch2: %{name}%{version}+ipv6_config.patch
22 URL: http://www.eggheads.org/
24 BuildRequires: tcl-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Eggdrop is an IRC bot, written in C. If you don't know what IRC is,
29 this is probably not whatever you're looking for! Eggdrop, being a
30 bot, sits on a channel and takes protective measures: to keep the
31 channel from being taken over (in the few ways that anything CAN), to
32 recognize banished users or sites and reject them, to recognize
33 privileged users and let them gain ops, etc. Eggdrop also contains
34 many modules and scripts, for example for sending files.
37 Eggdrop jest IRCowym botem napisanym w C. Eggdrop, bêd±c botem jest na
38 kanale i zajmuje siê jego ochron±: zabezpieczeniem przed przejêciem,
39 nadawaniem odpowiednich przywilejów zarejestrowanym u¿ytkownikom,
40 pilnowanie tzw. banów itp. Eggdrop poza tymi funkcjami posiada tak¿e
41 wiele dodatków, jak przesy³anie plików czy inne skrypty dla rozrywki.
44 %setup -q -n %{name}%{version}
46 %setup -q -D -a 10 -n %{name}%{version}
47 %setup -q -D -a 11 -n %{name}%{version}
48 %setup -q -D -a 12 -n %{name}%{version}
49 %setup -q -D -a 13 -n %{name}%{version}
50 %setup -q -D -a 14 -n %{name}%{version}
51 %setup -q -D -a 15 -n %{name}%{version}
52 %setup -q -D -a 16 -n %{name}%{version}
58 export CFLAGS="%{rpmcflags}"
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/modules,%{_datadir}/%{name},%{_mandir}/man1,%{_datadir}/%{name}/{help,scripts,language},%{_datadir}/doc/%{name}-%{version}}
67 %{__make} DESTDIR="$RPM_BUILD_ROOT" install
69 cp $RPM_BUILD_ROOT/%{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name}
71 find $RPM_BUILD_ROOT/doc -type f | egrep -v "(\.html$|\.htm$)" | xargs gzip -9nf
72 gzip -9nf $RPM_BUILD_ROOT/README $RPM_BUILD_ROOT/%{name}.conf
74 cp $RPM_BUILD_ROOT/doc/man1/%{name}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1.gz
75 rm -r $RPM_BUILD_ROOT/doc/man1
77 cp -a $RPM_BUILD_ROOT/README.gz \
78 $RPM_BUILD_ROOT/%{name}.conf.gz \
79 $RPM_BUILD_ROOT/doc/* \
80 $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/
82 cp -a $RPM_BUILD_ROOT/text/* \
83 $RPM_BUILD_ROOT/help/ \
84 $RPM_BUILD_ROOT/scripts/ \
85 $RPM_BUILD_ROOT/language/ \
86 $RPM_BUILD_ROOT%{_datadir}/%{name}/
88 cp -a $RPM_BUILD_ROOT/modules/* \
89 $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/
92 rm -rf $RPM_BUILD_ROOT
95 %defattr(644,root,root,755)
96 %doc %{_datadir}/doc/%{name}-%{version}
97 %attr(755,root,root) %{_bindir}/%{name}
98 %dir %{_libdir}/%{name}
99 %dir %{_libdir}/%{name}/modules
100 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
102 %{_mandir}/man1/%{name}.1*