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