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 Source1: http://www.aracnet.com/~tyler/IDP/files/%{dict1}.txt
21 Source2: http://www.aracnet.com/~tyler/IDP/files/%{dict2}.txt
22 Source3: http://www.aracnet.com/~tyler/IDP/files/%{dict3}.txt
23 Source4: http://www.aracnet.com/~tyler/IDP/files/%{dict4}.txt
24 Source5: http://www.aracnet.com/~tyler/IDP/files/%{dict5}.txt
25 Source6: 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 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 BuildRequires: dictzip
33 BuildRequires: autoconf
35 Requires: %{_sysconfdir}/dictd
38 This package contains The Internet Dictionary Project's dictionaries,
39 version %version formatted for use by the dictionary server in the
40 dictd package. The Internet Dictionary Project's goal is to create
41 royalty-free translating dictionaries through the help of the
42 Internet's citizens. This site allows individuals from all over the
43 world to visit and assist in the translation of English words into
44 other languages. The resulting lists of English words and their
45 translated counterparts are then made available through this site to
46 anyone, with no restrictions on their use. Please enjoy your visit,
47 and thank you for donating your time to this project.
50 Ten pakiet zawiera darmowe s³owniki z Internet Dictionary Project w
51 wersji %version sformatowane do u¿ytku z serwerem s³ownika dictd.
54 Summary: The %{dict1} Dictionary for dictd
55 Summary(pl): S³ownik %{dict1} dla dictd
56 Group: Applications/Dictionaries
58 Requires: %{_sysconfdir}/dictd
61 This package contains %{dict1} dictionaries for use by the dicitonary
62 server in the dictd package.
64 %description %{dict1} -l pl
65 Ten pakiet zawiera s³ownik %{dict1} do u¿ywania z serwerem s³ownika
69 Summary: The %{dict2} Dictionary for dictd
70 Summary(pl): S³ownik %{dict2} dla dictd
71 Group: Applications/Dictionaries
73 Requires: %{_sysconfdir}/dictd
76 This package contains %{dict2} dictionaries for use by the dicitonary
77 server in the dictd package.
79 %description %{dict2} -l pl
80 Ten pakiet zawiera s³ownik %{dict2} do u¿ywania z serwerem s³ownika
84 Summary: The %{dict3} Dictionary for dictd
85 Summary(pl): S³ownik %{dict3} dla dictd
86 Group: Applications/Dictionaries
88 Requires: %{_sysconfdir}/dictd
91 This package contains %{dict3} dictionaries for use by the dicitonary
92 server in the dictd package.
94 %description %{dict3} -l pl
95 Ten pakiet zawiera s³ownik %{dict3} do u¿ywania z serwerem s³ownika
99 Summary: The %{dict4} Dictionary for dictd
100 Summary(pl): S³ownik %{dict4} dla dictd
101 Group: Applications/Dictionaries
103 Requires: %{_sysconfdir}/dictd
105 %description %{dict4}
106 This package contains %{dict4} dictionaries for use by the dicitonary
107 server in the dictd package.
109 %description %{dict4} -l pl
110 Ten pakiet zawiera s³ownik %{dict4} do u¿ywania z serwerem s³ownika
114 Summary: The %{dict5} Dictionary for dictd
115 Summary(pl): S³ownik %{dict5} dla dictd
116 Group: Applications/Dictionaries
118 Requires: %{_sysconfdir}/dictd
120 %description %{dict5}
121 This package contains %{dict5} dictionaries for use by the dicitonary
122 server in the dictd package.
124 %description %{dict5} -l pl
125 Ten pakiet zawiera s³ownik %{dict5} do u¿ywania z serwerem s³ownika
129 Summary: The %{dict6} Dictionary for dictd
130 Summary(pl): S³ownik %{dict6} dla dictd
131 Group: Applications/Dictionaries
133 Requires: %{_sysconfdir}/dictd
135 %description %{dict6}
136 This package contains %{dict6} dictionaries for use by the dicitonary
137 server in the dictd package.
139 %description %{dict6} -l pl
140 Ten pakiet zawiera s³ownik %{dict6} do u¿ywania z serwerem s³ownika
144 Summary: The %{dict7} Dictionary for dictd
145 Summary(pl): S³ownik %{dict7} dla dictd
146 Group: Applications/Dictionaries
148 Requires: %{_sysconfdir}/dictd
150 %description %{dict7}
151 This package contains %{dict7} dictionaries for use by the dicitonary
152 server in the dictd package.
165 echo "Making %{dictionaries}"
168 target=idp_`echo $x | cut -f1 -d.`
169 all_targets=$all_targets" "$target
170 echo '%h 00-database-info' > $target
172 grep '^#' $x >> $target
173 grep -v '^#' $x | awk 'BEGIN{FS="\t"}{print "%h "$1; print "%d" ; print "\t"$2"\n" }' >> $target
176 for x in $all_targets ; do
177 dictfmt -p -u "%{URL}" -s "Internet Dictionary Project" $x < $x
182 rm -rf $RPM_BUILD_ROOT
183 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
185 for i in %{dictionaries}; do
186 dictprefix=%{_datadir}/dictd/%{dictname}_$i
187 echo "# The Internet Dictionary Project dictionaries
189 data \"$dictprefix.dict.dz\"
190 index \"$dictprefix.index\"
192 " > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}-$i.dictconf
193 install %{dictname}_$i* $RPM_BUILD_ROOT%{_datadir}/dictd/
197 rm -rf $RPM_BUILD_ROOT
200 if [ -f /var/lock/subsys/dictd ]; then
201 /etc/rc.d/init.d/dictd restart 1>&2
205 if [ -f /var/lock/subsys/dictd ]; then
206 /etc/rc.d/init.d/dictd restart 1>&2
210 if [ -f /var/lock/subsys/dictd ]; then
211 /etc/rc.d/init.d/dictd restart 1>&2 || true
215 if [ -f /var/lock/subsys/dictd ]; then
216 /etc/rc.d/init.d/dictd restart 1>&2
220 if [ -f /var/lock/subsys/dictd ]; then
221 /etc/rc.d/init.d/dictd restart 1>&2 || true
225 if [ -f /var/lock/subsys/dictd ]; then
226 /etc/rc.d/init.d/dictd restart 1>&2
229 if [ -f /var/lock/subsys/dictd ]; then
230 /etc/rc.d/init.d/dictd restart 1>&2 || true
234 if [ -f /var/lock/subsys/dictd ]; then
235 /etc/rc.d/init.d/dictd restart 1>&2
239 if [ -f /var/lock/subsys/dictd ]; then
240 /etc/rc.d/init.d/dictd restart 1>&2 || true
244 if [ -f /var/lock/subsys/dictd ]; then
245 /etc/rc.d/init.d/dictd restart 1>&2
249 if [ -f /var/lock/subsys/dictd ]; then
250 /etc/rc.d/init.d/dictd restart 1>&2 || true
254 if [ -f /var/lock/subsys/dictd ]; then
255 /etc/rc.d/init.d/dictd restart 1>&2
259 if [ -f /var/lock/subsys/dictd ]; then
260 /etc/rc.d/init.d/dictd restart 1>&2 || true
264 if [ -f /var/lock/subsys/dictd ]; then
265 /etc/rc.d/init.d/dictd restart 1>&2
269 if [ -f /var/lock/subsys/dictd ]; then
270 /etc/rc.d/init.d/dictd restart 1>&2 || true
274 if [ -f /var/lock/subsys/dictd ]; then
275 /etc/rc.d/init.d/dictd restart 1>&2
279 %defattr(644,root,root,755)
280 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict1}.dictconf
281 %{_datadir}/dictd/%{dictname}_%{dict1}*
284 %defattr(644,root,root,755)
285 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict2}.dictconf
286 %{_datadir}/dictd/%{dictname}_%{dict2}*
289 %defattr(644,root,root,755)
290 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict3}.dictconf
291 %{_datadir}/dictd/%{dictname}_%{dict3}*
294 %defattr(644,root,root,755)
295 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict4}.dictconf
296 %{_datadir}/dictd/%{dictname}_%{dict4}*
299 %defattr(644,root,root,755)
300 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict5}.dictconf
301 %{_datadir}/dictd/%{dictname}_%{dict5}*
304 %defattr(644,root,root,755)
305 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict6}.dictconf
306 %{_datadir}/dictd/%{dictname}_%{dict6}*
309 %defattr(644,root,root,755)
310 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}-%{dict7}.dictconf
311 %{_datadir}/dictd/%{dictname}_%{dict7}*