]> git.pld-linux.org Git - packages/eggdrop.git/blob - eggdrop.spec
- merged Russian translations from Altlinux
[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 Summary(pt_BR): Bot de IRC escrito em C
4 Summary(ru_RU.KOI8-R): Eggdrop, ÜÔÏ IRC-ÂÏÔ ÎÁÐÉÓÁÎÎÙÊ ÎÁ ÑÚÙËÅ C.
5 Name:           eggdrop
6 Version:        1.6.13
7 Release:        4
8 License:        GPL
9 Group:          Applications/Communications
10 Source0:        ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/%{name}%{version}.tar.gz
11 # PLD docs - information about changes.
12 Source1:        http://pld.mysza.eu.org/sources/%{name}-README.PLD.en
13 Source2:        http://pld.mysza.eu.org/sources/%{name}-README.PLD.pl
14 # In order to unify filenames, following language packs and third-party modules were
15 # repackaged. Some files were renamed, but none modified. Original archives can be
16 # found by looking at http://www.egghelp.org/
17 Source10:       %{name}-language-danish.tar.gz
18 Source11:       %{name}-language-finnish.tar.gz
19 Source12:       %{name}-language-italian.tar.gz
20 Source13:       %{name}-language-norwegian.tar.gz
21 Source14:       %{name}-language-portuguese.tar.gz
22 Source15:       %{name}-language-portuguese_br.tar.gz
23 Source16:       %{name}-language-romanian.tar.gz
24 # Additional modules taken from various places
25 Source20:       %{name}-module-away-1.0.tar.gz
26 Source21:       %{name}-module-botnetop-1.0.1.tar.gz
27 Source22:       %{name}-module-fakebotnet-1.3.tar.gz
28 Source23:       %{name}-module-gseen-1.1.0.tar.gz
29 Source24:       %{name}-module-irctree-1.1.tar.gz
30 Source25:       %{name}-module-megahal-2.5.tar.gz
31 Source26:       %{name}-module-stats-1.3.3dev1.tar.gz
32 Source27:       %{name}-module-idea-1.0.0.tar.gz
33 Source28:       %{name}-module-twofish-1.0.tar.gz
34 Source29:       %{name}-module-rijndael-1.0.tar.gz
35 Patch0:         %{name}-FHS.patch
36 # Unofficial IPv6 patch
37 Patch1:         http://www.egghelp.org/files/patches/%{name}%{version}+ipv6.patch.gz
38 # Adds IPv6 variables to config file
39 Patch2:         %{name}%{version}+ipv6_config.patch
40 # Adds additional docs
41 Patch3:         %{name}-doc_makefile.patch
42 # Multilevel sharing patch - now it is possible to create *secure* multilevel
43 # botnets, each bot will only accept changes to userlist from bot that acts as
44 # hub to him, and rejects changes from leaves
45 Patch4:         %{name}%{version}-multilevel_sharing.patch.gz
46 # Unlinkedby patch - when unlinking bot from botnet, adds nickname of a person
47 # that issues .unlink command to a broadcasted message
48 Patch5:         %{name}%{version}-unlinkedby.patch
49 # Topicprot - protects channel topic from being changed
50 # This patch was a bit modified to apply to eggdrop1.6.13
51 Patch6:         %{name}%{version}-topicprot.patch
52 # Adds information about additional encryption modules to config file
53 Patch7:         %{name}-config_encryption.patch
54 # This one fixes eggdrop botchk/autobotchk scripts
55 Patch8:         %{name}%{version}-autobotchk.patch
56 URL:            http://www.eggheads.org/
57 BuildRequires:  tcl-devel
58 Requires:       tcl
59 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60
61 %description
62 Eggdrop is an IRC bot, written in C. If you don't know what IRC is,
63 this is probably not whatever you're looking for! Eggdrop, being a
64 bot, sits on a channel and takes protective measures: to keep the
65 channel from being taken over (in the few ways that anything CAN), to
66 recognize banished users or sites and reject them, to recognize
67 privileged users and let them gain ops, etc. Eggdrop also contains
68 many modules and scripts, for example for sending files. Here is the
69 list of new features as opposed to vanilla eggdrop:
70 - Built-in IPv6 support
71 - Additional modules, including:
72   - away
73   - botnetop
74   - fakebotnet
75   - gseen
76   - irctree
77   - megahal
78   - stats
79   - three new encryption modules: idea, twofish, rijndael
80 - Additional language packs:
81   - dannish
82   - finnish
83   - italian
84   - norwegian
85   - portuguese
86   - brazillian portuguese
87   - romanian
88 - Various small patches were applied 
89 For more information, see README.PLD.en file located under 
90 %{_docdir}/%{name}-%{version}
91
92 %description -l pl
93 Eggdrop jest IRCowym botem napisanym w C. Eggdrop, bêd±c botem jest na
94 kanale i zajmuje siê jego ochron±: zabezpieczeniem przed przejêciem,
95 nadawaniem odpowiednich przywilejów zarejestrowanym u¿ytkownikom,
96 pilnowanie tzw. banów itp. Eggdrop poza tymi funkcjami posiada tak¿e
97 wiele dodatków, jak przesy³anie plików czy inne skrypty dla rozrywki.
98 Oto lista nowych mo¿liwo¶ci w odró¿nieniu od 'czystego' eggdropa:
99 - Wbudowane wsparcie dla IPv6
100 - Dodatkowe modu³y, takie jak:
101   - away
102   - botnetop
103   - fakebotnet
104   - gseen
105   - irctree
106   - megahal
107   - stats
108   - trzy nowe modu³y szyfruj±ce: idea, twofish, rijndael
109 - Dodatkowe
110   - duñski
111   - fiñski
112   - w³oski
113   - norweski
114   - portugalski
115   - brazylijska odmiana portugalskiego
116   - rumuñski
117 - Zaaplikowano rózne mniejsze lub wiêksze ³aty 
118 Wiêcej informacji znajdziesz w pliku README.PLD.pl znajduj±cym siê 
119 w katalogu %{_docdir}/%{name}-%{version}
120
121 %description -l pt_BR
122 Eggdrop é um bot de IRC, escrito em linguagem C.
123
124 Eggdrop, sendo um bot, permanece em um canal e toma medidas de
125 proteç?o: evitando que o canal seja tomado (usando as poucas maneiras
126 possíveis), reconhecendo usuários ou sites expulsos e os rejeitando,
127 reconhecendo usuários privilegiados e permitindo que estes recebam OPS
128 etc.
129
130 %description -l ru_RU.KOI8-R
131 Eggdrop, ÜÔÏ IRC-ÂÏÔ ÎÁÐÉÓÁÎÎÙÊ ÎÁ ÑÚÙËÅ C. åÓÌÉ ×Ù ÎÅ ÚÎÁÅÔÅ,
132 ÞÔÏ ÔÁËÏÅ IRC, ÔÏ ÜÔÏ ×ÅÒÏÑÔÎÏ ÎÅ ÔÏ, ÞÔÏ ×Ù ÉÝÅÔÅ!
133 Eggdrop ÎÁÈÏÄÉÔÓÑ ÎÁ ËÁÎÁÌÅ × ÃÅÌÑÈ ÏËÁÚÁÎÉÑ ÚÁÝÉÔÎÙÈ ÍÅÒ:
134 ÏÈÒÁÎÙ ËÁÎÁÌÁ ÏÔ ÐÅÒÅÈ×ÁÔÁ ÕÐÒÁ×ÌÅÎÉÑ ÚÌÏÕÍÙÛÌÅÎÎÉËÁÍÉ,
135 ÒÁÓÐÏÚÎÏ×ÁÎÉÑ ÐÏÌØÚÏ×ÁÔÅÌÅÊ ÉÌÉ ÓÁÊÔÏ×, ÄÌÑ ËÏÔÏÒÙÈ ËÁÎÁÌ
136 ÂÌÏËÉÒÏ×ÁÎ, Ó ÐÏÓÌÅÄÕÀÝÉÍ ÏÔËÁÚÏÍ × ÄÏÓÔÕÐÅ,
137 ÒÁÓÐÏÚÎÁ×ÁÎÉÑ ÏÐÅÒÁÔÏÒÏ× ËÁÎÁÌÁ, Ó ÐÒÉÓ×ÏÅÎÉÅÍ ÉÍ
138 ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÈ ÐÒÁ× É ÐÒÉ×ÉÌÅÇÉÊ.
139
140 %prep
141 %setup -q -n %{name}%{version} -a10 -a11 -a12 -a13 -a14 -a15 -a16 -a20 -a21 -a22 -a23 -a24 -a25 -a26 -a27 -a28 -a29
142 %patch0 -p1
143 %patch1 -p1
144 %patch2 -p0
145 %patch3 -p0
146 %patch4 -p1
147 %patch5 -p1
148 %patch6 -p1
149 %patch7 -p0
150 %patch8 -p1
151
152 %build
153 CFLAGS="%{rpmcflags}"; export CFLAGS
154 # There is no sense in using configure macro, as the eggdrop makes no use
155 # of provided settings, or at least of those given with --*dir options
156 ./configure
157 %{__make} config
158 %{__make}
159
160 %install
161 rm -rf $RPM_BUILD_ROOT
162 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/modules,%{_datadir}/%{name},%{_mandir}/man1,%{_datadir}/%{name}/{help,scripts,language},%{_datadir}/doc/%{name}-%{version}}
163
164 %{__make} DESTDIR="$RPM_BUILD_ROOT" install
165
166 mv $RPM_BUILD_ROOT/%{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name}
167
168 cp %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.PLD.en
169 cp %{SOURCE2} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/README.PLD.pl
170
171 find $RPM_BUILD_ROOT/doc -type f | egrep -v "(\.html$|\.htm$)" | xargs gzip -9nf
172 gzip -9nf $RPM_BUILD_ROOT/README $RPM_BUILD_ROOT/%{name}.conf
173
174 cp $RPM_BUILD_ROOT/doc/man1/%{name}.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1.gz
175 rm -r $RPM_BUILD_ROOT/doc/man1
176
177 cp -a $RPM_BUILD_ROOT/*.gz \
178         $RPM_BUILD_ROOT/doc/* \
179         $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
180
181 cp -a $RPM_BUILD_ROOT/doc/modules $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
182
183 cp -a $RPM_BUILD_ROOT/text/* \
184         $RPM_BUILD_ROOT/help/ \
185         $RPM_BUILD_ROOT/scripts/ \
186         $RPM_BUILD_ROOT/language/ \
187         $RPM_BUILD_ROOT%{_datadir}/%{name}/
188
189 cp -a $RPM_BUILD_ROOT/modules/* \
190         $RPM_BUILD_ROOT%{_libdir}/%{name}/modules/
191
192 # These are only to make /usr/lib/rpm/check-files happy(ier)
193 # Is this somehow ugly?
194 for i in modules modules-%{version} text help scripts language doc logs eggdrop.conf.gz README.gz; do
195         rm -rf $RPM_BUILD_ROOT/$i
196 done
197
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %files
202 %defattr(644,root,root,755)
203 %doc %{_datadir}/doc/%{name}-%{version}
204 %attr(755,root,root) %{_bindir}/%{name}
205 %dir %{_libdir}/%{name}
206 %dir %{_libdir}/%{name}/modules
207 %attr(755,root,root) %{_libdir}/%{name}/modules/*.so
208 %{_datadir}/%{name}
209 %{_mandir}/man1/%{name}.1*
This page took 0.059844 seconds and 4 git commands to generate.