]> git.pld-linux.org Git - packages/dict-idp.git/blob - dict-idp.spec
- typos and cosmetics
[packages/dict-idp.git] / dict-idp.spec
1 %define         dictname        IDP
2 %define         dict1           French
3 %define         dict2           German
4 %define         dict3           Italian
5 %define         dict4           Latin
6 %define         dict5           Portuguese
7 %define         dict6           Spanish
8 %define         dictionaries    %{dict1} %{dict2} %{dict3} %{dict4} %{dict5} %{dict6}
9
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}
13 Version:        19990219
14 # Last update on their site
15 Release:        1
16 License:        GPL
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
27 # copyright info:
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:  dictfmt
33 BuildRequires:  dictzip
34 Requires:       dictd
35 Requires:       %{_sysconfdir}/dictd
36
37 %description
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
46 on their use.
47
48 %description -l pl
49 Ten pakiet zawiera darmowe s³owniki z Internet Dictionary Project w
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.
56
57 %package %{dict1}
58 Summary:        The %{dict1} Dictionary for dictd
59 Summary(pl):    S³ownik %{dict1} dla dictd
60 Group:          Applications/Dictionaries
61 Requires:       dictd
62 Requires:       %{_sysconfdir}/dictd
63
64 %description %{dict1}
65 This package contains %{dict1} dictionaries for use by the dictionary
66 server in the dictd package.
67
68 %description %{dict1} -l pl
69 Ten pakiet zawiera s³ownik %{dict1} do u¿ywania z serwerem s³ownika
70 dictd.
71
72 %package %{dict2}
73 Summary:        The %{dict2} Dictionary for dictd
74 Summary(pl):    S³ownik %{dict2} dla dictd
75 Group:          Applications/Dictionaries
76 Requires:       dictd
77 Requires:       %{_sysconfdir}/dictd
78
79 %description %{dict2}
80 This package contains %{dict2} dictionaries for use by the dictionary
81 server in the dictd package.
82
83 %description %{dict2} -l pl
84 Ten pakiet zawiera s³ownik %{dict2} do u¿ywania z serwerem s³ownika
85 dictd.
86
87 %package %{dict3}
88 Summary:        The %{dict3} Dictionary for dictd
89 Summary(pl):    S³ownik %{dict3} dla dictd
90 Group:          Applications/Dictionaries
91 Requires:       dictd
92 Requires:       %{_sysconfdir}/dictd
93
94 %description %{dict3}
95 This package contains %{dict3} dictionaries for use by the dictionary
96 server in the dictd package.
97
98 %description %{dict3} -l pl
99 Ten pakiet zawiera s³ownik %{dict3} do u¿ywania z serwerem s³ownika
100 dictd.
101
102 %package %{dict4}
103 Summary:        The %{dict4} Dictionary for dictd
104 Summary(pl):    S³ownik %{dict4} dla dictd
105 Group:          Applications/Dictionaries
106 Requires:       dictd
107 Requires:       %{_sysconfdir}/dictd
108
109 %description %{dict4}
110 This package contains %{dict4} dictionaries for use by the dictionary
111 server in the dictd package.
112
113 %description %{dict4} -l pl
114 Ten pakiet zawiera s³ownik %{dict4} do u¿ywania z serwerem s³ownika
115 dictd.
116
117 %package %{dict5}
118 Summary:        The %{dict5} Dictionary for dictd
119 Summary(pl):    S³ownik %{dict5} dla dictd
120 Group:          Applications/Dictionaries
121 Requires:       dictd
122 Requires:       %{_sysconfdir}/dictd
123
124 %description %{dict5}
125 This package contains %{dict5} dictionaries for use by the dictionary
126 server in the dictd package.
127
128 %description %{dict5} -l pl
129 Ten pakiet zawiera s³ownik %{dict5} do u¿ywania z serwerem s³ownika
130 dictd.
131
132 %package %{dict6}
133 Summary:        The %{dict6} Dictionary for dictd
134 Summary(pl):    S³ownik %{dict6} dla dictd
135 Group:          Applications/Dictionaries
136 Requires:       dictd
137 Requires:       %{_sysconfdir}/dictd
138
139 %description %{dict6}
140 This package contains %{dict6} dictionaries for use by the dictionary
141 server in the dictd package.
142
143 %description %{dict6} -l pl
144 Ten pakiet zawiera s³ownik %{dict6} do u¿ywania z serwerem s³ownika
145 dictd.
146
147 %prep
148 %setup -c -T
149 cp -f %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .
150
151 %build
152 echo "Making %{dictionaries}"
153 all_targets=""
154 for x in *.txt ; do
155         target=%{dictname}_`echo $x | cut -f1 -d.`
156         all_targets=$all_targets" "$target
157         echo '%h 00-database-info' > $target
158         echo '%d' >> $target
159         grep '^#' $x >> $target
160         grep -v '^#' $x | awk 'BEGIN{FS="\t"}{print "%h "$1; print "%d" ; print "\t"$2"\n" }' >> $target
161 done
162
163 for x in $all_targets ; do
164         dictfmt -p -u "%{URL}" -s "Internet Dictionary Project"  $x < $x
165         dictzip  $x'.dict'
166 done
167
168 %install
169 rm -rf $RPM_BUILD_ROOT
170 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
171
172 for i in %{dictionaries}; do
173         dictprefix=%{_datadir}/dictd/%{dictname}_$i
174         echo "# The Internet Dictionary Project dictionaries
175         database $i {
176                 data \"$dictprefix.dict.dz\"
177                 index \"$dictprefix.index\"
178         }
179         " > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}-$i.dictconf
180         install %{dictname}_$i* $RPM_BUILD_ROOT%{_datadir}/dictd/
181 done
182
183 %clean
184 rm -rf $RPM_BUILD_ROOT
185
186 %postun %{dict1}
187 if [ -f /var/lock/subsys/dictd ]; then
188         /etc/rc.d/init.d/dictd restart 1>&2 || true
189 fi
190
191 %post %{dict1}
192 if [ -f /var/lock/subsys/dictd ]; then
193         /etc/rc.d/init.d/dictd restart 1>&2
194 fi
195
196 %postun %{dict2}
197 if [ -f /var/lock/subsys/dictd ]; then
198         /etc/rc.d/init.d/dictd restart 1>&2 || true
199 fi
200
201 %post %{dict2}
202 if [ -f /var/lock/subsys/dictd ]; then
203         /etc/rc.d/init.d/dictd restart 1>&2
204 fi
205 %postun %{dict3}
206 if [ -f /var/lock/subsys/dictd ]; then
207         /etc/rc.d/init.d/dictd restart 1>&2 || true
208 fi
209
210 %post %{dict3}
211 if [ -f /var/lock/subsys/dictd ]; then
212         /etc/rc.d/init.d/dictd restart 1>&2
213 fi
214
215 %postun %{dict4}
216 if [ -f /var/lock/subsys/dictd ]; then
217         /etc/rc.d/init.d/dictd restart 1>&2 || true
218 fi
219
220 %post %{dict4}
221 if [ -f /var/lock/subsys/dictd ]; then
222         /etc/rc.d/init.d/dictd restart 1>&2
223 fi
224
225 %postun %{dict5}
226 if [ -f /var/lock/subsys/dictd ]; then
227         /etc/rc.d/init.d/dictd restart 1>&2 || true
228 fi
229
230 %post %{dict5}
231 if [ -f /var/lock/subsys/dictd ]; then
232         /etc/rc.d/init.d/dictd restart 1>&2
233 fi
234
235 %postun %{dict6}
236 if [ -f /var/lock/subsys/dictd ]; then
237 /etc/rc.d/init.d/dictd restart 1>&2 || true
238 fi
239
240 %post %{dict6}
241 if [ -f /var/lock/subsys/dictd ]; then
242         /etc/rc.d/init.d/dictd restart 1>&2
243 fi
244
245 %files %{dict1}
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}*
249
250 %files %{dict2}
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}*
254
255 %files %{dict3}
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}*
259
260 %files %{dict4}
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}*
264
265 %files %{dict5}
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}*
269
270 %files %{dict6}
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}*
This page took 0.517268 seconds and 3 git commands to generate.