6 %define dict5 Portuguese
8 %define dictionaries %{dict1} %{dict2} %{dict3} %{dict4} %{dict5} %{dict6}
10 Summary: The free dictionaries for dictd made from IDP project
11 Summary(pl): Darmowe s³owniki dla dictd z projektu IDP
12 Name: dict-%{dictname}
14 # Last update on their site
17 # is this '#This file is free to use and modify. Thank you for using the IDP.'
18 # compatible w/ Gnu GPL ???
19 Group: Applications/Dictionaries
20 Source0: http://www.aracnet.com/~tyler/IDP/files/%{dict1}.txt
21 Source1: http://www.aracnet.com/~tyler/IDP/files/%{dict2}.txt
22 Source2: http://www.aracnet.com/~tyler/IDP/files/%{dict3}.txt
23 Source3: http://www.aracnet.com/~tyler/IDP/files/%{dict4}.txt
24 Source4: http://www.aracnet.com/~tyler/IDP/files/%{dict5}.txt
25 Source5: http://www.aracnet.com/~tyler/IDP/files/%{dict6}.txt
26 #Source91: www.wh9.tu-dresden.de/%7Eheinrich/dict/dict_idp/idp2dict.sh
28 Source98: http://www.june29.com/IDP/IDPcopyright.html
29 Source99: http://www.june29.com/IDP/IDPdisclaimer.html
30 URL: http://www.june29.com/IDP/
31 BuildRequires: dictfmt
32 BuildRequires: dictzip
34 Requires: %{_sysconfdir}/dictd
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 This package contains The Internet Dictionary Project's dictionaries,
39 formatted for use by the dictionary server in the dictd package. The
40 Internet Dictionary Project's goal is to create royalty-free
41 translating dictionaries through the help of the Internet's citizens.
42 The IDP site allows individuals from all over the world to visit and
43 assist in the translation of English words into other languages. The
44 resulting lists of English words and their translated counterparts are
45 then made available through this site to anyone, with no restrictions
49 Ten pakiet zawiera darmowe s³owniki z Internet Dictionary Project
50 sformatowane do u¿ytku z serwerem s³ownika dictd. Celem Internet
51 Dictionary Project jest stworzenie wolnych od op³at s³owników
52 t³umaczeñ w oparciu o pomoc spo³eczno¶ci internetowej. Serwis IDP
53 pozwala ludziom z ca³ego ¶wiata na pomoc przy t³umaczeniu angielskich
54 s³ów na inne jêzyki. Powsta³e w ten sposób listy angielskich s³ów i
55 ich t³umaczeñ s± udostêpniane wszystkim, do nieograniczonego u¿ytku.
58 Summary: The %{dict1} dictionary for dictd
59 Summary(pl): S³ownik %{dict1} dla dictd
60 Group: Applications/Dictionaries
62 Requires: %{_sysconfdir}/dictd
65 This package contains %{dict1} dictionaries for use by the dictionary
66 server in the dictd package.
68 %description %{dict1} -l pl
69 Ten pakiet zawiera s³ownik %{dict1} do u¿ywania z serwerem s³ownika
73 Summary: The %{dict2} dictionary for dictd
74 Summary(pl): S³ownik %{dict2} dla dictd
75 Group: Applications/Dictionaries
77 Requires: %{_sysconfdir}/dictd
80 This package contains %{dict2} dictionaries for use by the dictionary
81 server in the dictd package.
83 %description %{dict2} -l pl
84 Ten pakiet zawiera s³ownik %{dict2} do u¿ywania z serwerem s³ownika
88 Summary: The %{dict3} dictionary for dictd
89 Summary(pl): S³ownik %{dict3} dla dictd
90 Group: Applications/Dictionaries
92 Requires: %{_sysconfdir}/dictd
95 This package contains %{dict3} dictionaries for use by the dictionary
96 server in the dictd package.
98 %description %{dict3} -l pl
99 Ten pakiet zawiera s³ownik %{dict3} do u¿ywania z serwerem s³ownika
103 Summary: The %{dict4} dictionary for dictd
104 Summary(pl): S³ownik %{dict4} dla dictd
105 Group: Applications/Dictionaries
107 Requires: %{_sysconfdir}/dictd
109 %description %{dict4}
110 This package contains %{dict4} dictionaries for use by the dictionary
111 server in the dictd package.
113 %description %{dict4} -l pl
114 Ten pakiet zawiera s³ownik %{dict4} do u¿ywania z serwerem s³ownika
118 Summary: The %{dict5} dictionary for dictd
119 Summary(pl): S³ownik %{dict5} dla dictd
120 Group: Applications/Dictionaries
122 Requires: %{_sysconfdir}/dictd
124 %description %{dict5}
125 This package contains %{dict5} dictionaries for use by the dictionary
126 server in the dictd package.
128 %description %{dict5} -l pl
129 Ten pakiet zawiera s³ownik %{dict5} do u¿ywania z serwerem s³ownika
133 Summary: The %{dict6} dictionary for dictd
134 Summary(pl): S³ownik %{dict6} dla dictd
135 Group: Applications/Dictionaries
137 Requires: %{_sysconfdir}/dictd
139 %description %{dict6}
140 This package contains %{dict6} dictionaries for use by the dictionary
141 server in the dictd package.
143 %description %{dict6} -l pl
144 Ten pakiet zawiera s³ownik %{dict6} do u¿ywania z serwerem s³ownika
149 cp -f %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .
152 echo "Making %{dictionaries}"
155 target=%{dictname}_`echo $x | cut -f1 -d.`
156 all_targets="$all_targets $target"
157 echo '%h 00-database-info' > $target
159 grep '^#' $x >> $target
160 grep -v '^#' $x | awk 'BEGIN{FS="\t"}{print "%h "$1; print "%d" ; print "\t"$2"\n" }' >> $target
163 for x in $all_targets ; do
164 dictfmt -p -u "%url" -s "Internet Dictionary Project" $x < $x
169 rm -rf $RPM_BUILD_ROOT
170 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
172 for i in %{dictionaries}; do
173 dictprefix=%{_datadir}/dictd/%{dictname}_$i
174 echo "# The Internet Dictionary Project dictionaries
176 data \"$dictprefix.dict.dz\"
177 index \"$dictprefix.index\"
178 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}-$i.dictconf
179 mv %{dictname}_$i.* $RPM_BUILD_ROOT%{_datadir}/dictd
183 rm -rf $RPM_BUILD_ROOT
186 if [ -f /var/lock/subsys/dictd ]; then
187 /etc/rc.d/init.d/dictd restart 1>&2
191 if [ -f /var/lock/subsys/dictd ]; then
192 /etc/rc.d/init.d/dictd restart 1>&2 || true
196 if [ -f /var/lock/subsys/dictd ]; then
197 /etc/rc.d/init.d/dictd restart 1>&2
201 if [ -f /var/lock/subsys/dictd ]; then
202 /etc/rc.d/init.d/dictd restart 1>&2 || true
206 if [ -f /var/lock/subsys/dictd ]; then
207 /etc/rc.d/init.d/dictd restart 1>&2
211 if [ -f /var/lock/subsys/dictd ]; then
212 /etc/rc.d/init.d/dictd restart 1>&2 || true
216 if [ -f /var/lock/subsys/dictd ]; then
217 /etc/rc.d/init.d/dictd restart 1>&2
221 if [ -f /var/lock/subsys/dictd ]; then
222 /etc/rc.d/init.d/dictd restart 1>&2 || true
226 if [ -f /var/lock/subsys/dictd ]; then
227 /etc/rc.d/init.d/dictd restart 1>&2
231 if [ -f /var/lock/subsys/dictd ]; then
232 /etc/rc.d/init.d/dictd restart 1>&2 || true
236 if [ -f /var/lock/subsys/dictd ]; then
237 /etc/rc.d/init.d/dictd restart 1>&2
241 if [ -f /var/lock/subsys/dictd ]; then
242 /etc/rc.d/init.d/dictd restart 1>&2 || true
246 %defattr(644,root,root,755)
247 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict1}.dictconf
248 %{_datadir}/dictd/%{dictname}_%{dict1}.*
251 %defattr(644,root,root,755)
252 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict2}.dictconf
253 %{_datadir}/dictd/%{dictname}_%{dict2}.*
256 %defattr(644,root,root,755)
257 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict3}.dictconf
258 %{_datadir}/dictd/%{dictname}_%{dict3}.*
261 %defattr(644,root,root,755)
262 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict4}.dictconf
263 %{_datadir}/dictd/%{dictname}_%{dict4}.*
266 %defattr(644,root,root,755)
267 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict5}.dictconf
268 %{_datadir}/dictd/%{dictname}_%{dict5}.*
271 %defattr(644,root,root,755)
272 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict6}.dictconf
273 %{_datadir}/dictd/%{dictname}_%{dict6}.*