1 |
Summary: SME Server localisation module |
2 |
%define name smeserver-locale |
3 |
Name: %{name} |
4 |
%define version 1.2.0 |
5 |
%define release 28 |
6 |
%define package_summary SME Server localisation module |
7 |
%define group Applications/System |
8 |
%define package_locales de es fr it sv |
9 |
Version: %{version} |
10 |
Release: %{release}%{?dist} |
11 |
License: GPL |
12 |
Group: Networking/Daemons |
13 |
Source: %{name}-%{version}.tar.gz |
14 |
Patch0: smeserver-locale-1.2.0-italian_rc1.patch |
15 |
Patch1: smeserver-locale-1.2.0-onlinemanuallocation.patch |
16 |
Patch2: smeserver-locale-1.2.0-onlinemanuallocation1.patch |
17 |
Patch3: smeserver-locale-1.2.0-bug263-01.patch |
18 |
Patch4: smeserver-locale-1.2.0-germanupdates.patch |
19 |
Patch5: smeserver-locale-1.2.0-spanishemailsettingsupdate.patch |
20 |
Patch6: smeserver-locale-1.2.0-germanupdates1.patch |
21 |
Patch7: smeserver-locale-1.2.0-bug1001-01.patch |
22 |
Patch8: smeserver-locale-1.2.0-italian_rc4.patch |
23 |
Patch9: smeserver-locale-1.2.0-initialtext.patch |
24 |
Patch10: smeserver-locale-1.2.0-initialtext.patch2 |
25 |
Patch11: smeserver-locale-1.2.0-initialtext.patch3 |
26 |
Patch12: smeserver-locale-1.2.0-initialtext-fr.patch |
27 |
patch13: smeserver-locale-1.2.0-novirtual.patch |
28 |
Patch14: smeserver-locale-1.2.0-SwedishPanelTranslations.patch |
29 |
Patch15: smeserver-locale-1.2.0-novirtualsvitfr.patch |
30 |
Patch16: smeserver-locale-1.2.0-SwedishConsoleTranslations.patch |
31 |
Patch17: smeserver-locale-1.2.0-spanishupdates2.patch |
32 |
Patch18: smeserver-locale-1.2.0-spanishupdates3.patch |
33 |
Patch19: smeserver-locale-1.2.0-germanupdates2.patch |
34 |
Patch20: smeserver-locale-1.2.0-germanupdates3.patch |
35 |
Patch21: smeserver-locale-1.2.0-spanishupdates4.patch |
36 |
Patch22: smeserver-locale-1.2.0-italian_backupusb1.patch |
37 |
Patch23: smeserver-locale-1.2.0-italian_standby.patch |
38 |
Patch24: smeserver-locale-1.2.0-frmenusplit.patch |
39 |
Patch25: smeserver-locale-it-1.2.0-SshTcpPort.patch |
40 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
41 |
BuildArchitectures: noarch |
42 |
BuildRequires: perl |
43 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
44 |
BuildRequires: gettext |
45 |
BuildRequires: dos2unix |
46 |
AutoReqProv: no |
47 |
|
48 |
%description |
49 |
SME Server localisation module |
50 |
|
51 |
%changelog |
52 |
* Wed Oct 10 2007 Charlie Brady <charlie_brady@mitel.com> |
53 |
- Add missing localization (Thanks Federico). [SME: 3149] |
54 |
|
55 |
* Fri Jun 15 2007 Stephen Noble <support@dungog.net> 1.2.0-27 |
56 |
- Update French clamav lexicon [SME: 3012] |
57 |
|
58 |
* Thu Jun 14 2007 Gavin Weight <gweight@gmail.com> 1.2.0-26 |
59 |
- Updated stand by text in bootstrap-console Translation. (Thanks Federico) [SME: 2937] |
60 |
|
61 |
* Thu Jun 14 2007 Gavin Weight <gweight@gmail.com> 1.2.0-25 |
62 |
- Updated backupusb console Translation. (Thanks Federico) [SME: 2937] |
63 |
|
64 |
* Tue Jun 12 2007 Gavin Weight <gweight@gmail.com> 1.2.0-24 |
65 |
- More Updated Spanish Translations. (Thanks Normando) [SME: 2287] |
66 |
|
67 |
* Sat May 05 2007 Gavin Weight <gweight@gmail.com> 1.2.0-23 |
68 |
- Updated German Translations. (Thanks Dietmar ) [SME: 711] |
69 |
|
70 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
71 |
- Clean up spec so package can be built by koji/plague |
72 |
|
73 |
* Sat Apr 07 2007 Gavin Weight <gweight@gmail.com> 1.2.0-22 |
74 |
- Updated German Translations/Console. (Thanks Dietmar ) [SME: 711] |
75 |
|
76 |
* Fri Mar 02 2007 Gavin Weight <gweight@gmail.com> 1.2.0-21 |
77 |
- Updated Spanish Translations. (Thanks Normando) [SME: 2501] |
78 |
|
79 |
* Sun Feb 11 2007 Stephen Noble <support@dungog.net> 1.2.0-20 |
80 |
- Updated Spanish Translations. (Thanks Normando) [SME: 2287] |
81 |
|
82 |
* Sun Feb 11 2007 Gavin Weight <gweight@gmail.com> 1.2.0-19 |
83 |
- New Swedish Translations for console. (Thanks Chrille). [SME: 911] |
84 |
|
85 |
* Sun Feb 11 2007 Stephen Noble <support@dungog.net> 1.2.0-18 |
86 |
- Remove references to virtual from sv,it,fr panels [SME: 2297] |
87 |
|
88 |
* Tue Feb 06 2007 Gavin Weight <gweight@gmail.com> 1.2.0-17 |
89 |
- New Swedish Translations for server-manager (Thanks Chrille). [SME: 911] |
90 |
|
91 |
* Sat Jan 13 2007 Shad L. Lords <slords@mail.com> 1.2.0-16 |
92 |
- Remove references to virtual from panels [SME: 1517] |
93 |
|
94 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
95 |
- Update to new release naming. No functional changes. |
96 |
- Make Packager generic |
97 |
|
98 |
* Fri Jun 30 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-15 |
99 |
- Update French translation - Merci Franck Pierre [SME: 1659] |
100 |
|
101 |
* Fri Jun 30 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-14 |
102 |
- Change donate link to www.smeserver.org/donate/ [SME: 1668] |
103 |
|
104 |
* Fri Jun 30 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-13 |
105 |
- Change new window target to _blank rather than "new" [SME: 1613] |
106 |
|
107 |
* Wed Jun 28 2006 Gavin Weight <gweight@gmail.com> 1.2.0-12 |
108 |
- German and Italian text on server-manager front screen updated. [SME: 1659] |
109 |
|
110 |
* Tue Jun 27 2006 Filippo Carletti <carletti@mobilia.it> 1.2.0-11 |
111 |
- Updated italian translations [SME: 1119] |
112 |
|
113 |
* Sat Jun 10 2006 Franck Pierre <grand-pa@grand-pa.dyndns.org> 1.2.0-10 |
114 |
- Updated French translations [SME: 1001] |
115 |
|
116 |
* Mon May 22 2006 Gavin Weight <gweight@gmail.com> 1.2.0-09 |
117 |
- Updated German translation. Thanks Dietmar Berteld. [SME: 1412] |
118 |
|
119 |
* Tue May 16 2006 Gavin Weight <gweight@gmail.com> 1.2.0-08 |
120 |
- Updated Spanish emailsettings. Thanks Ernesto Lorenz [SME: 1435] |
121 |
|
122 |
* Mon May 15 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-07 |
123 |
- Bump release number only |
124 |
|
125 |
* Sun May 14 2006 Gavin Weight <gweight@gmail.com> 1.2.0-06sme01 |
126 |
- Updated German translations. Thanks Dietmar Berteld. [SME: 1412] |
127 |
|
128 |
* Sun Apr 9 2006 Franck Pierre <grand-pa@grand-pa.dyndns.org> 1.2.0-05 |
129 |
- Updated French translations [SME: 263] |
130 |
|
131 |
* Thu Apr 6 2006 Gavin Weight <gweight@gmail.com> 1.2.0-04 |
132 |
- Changed online-manual location to contribs.org in es lang. [SME: 1079] |
133 |
|
134 |
* Thu Apr 6 2006 Gavin Weight <gweight@gmail.com> 1.2.0-03 |
135 |
- Changed online-manual location to contribs.org. [SME: 1079] |
136 |
|
137 |
* Wed Mar 22 2006 Filippo Carletti <carletti@mobilia.it> 1.2.0-02 |
138 |
- Updated italian translations [SME: 1119] |
139 |
|
140 |
* Thu Mar 16 2006 Gordon Rowell <gordonr@gormand.com.au> 1.2.0-01 |
141 |
- Roll stable stream version. [SME: 1016] |
142 |
|
143 |
* Wed Mar 16 2006 Franck Pierre <grand-pa@grand-pa.dyndns.org> 1.0.1-12 |
144 |
- Update French translations [SME: 263] |
145 |
|
146 |
* Tue Feb 21 2006 Gavin Weight <gweight@gmail.com> 1.0.1-11 |
147 |
- Add loop to run dos2unix before validating lexicon files. |
148 |
|
149 |
* Mon Feb 20 2006 Gavin Weight <gweight@gmail.com> 1.0.1-10 |
150 |
- New German translations (Thanks Dietmar Berteld) [SME: 823] |
151 |
|
152 |
* Wed Feb 15 2006 Franck Pierre <grand-pa@grand-pa.dyndns.org> 1.0.1-09 |
153 |
- Add some French translations [SME: 263] |
154 |
|
155 |
* Mon Feb 13 2006 Gavin Weight <gweight@gmail.com> 1.0.1-08 |
156 |
- Fixed German (de) domains panel (Thanks Philipp Walker) [SME: 672] |
157 |
|
158 |
* Fri Feb 3 2006 Franck Pierre <grand-pa@grand-pa.dyndns.org> 1.0.1-07 |
159 |
- French translations [SME: 263] |
160 |
|
161 |
* Mon Jan 9 2006 Gordon Rowell <gordonr@gormand.com.au> 1.0.1-06 |
162 |
- Copied English emailsettings lexicon to Spanish so the panel at |
163 |
least works when browsing in Spanish [SME: 386] |
164 |
|
165 |
* Wed Dec 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.1-05 |
166 |
- French console translations [SME: 181] |
167 |
|
168 |
* Wed Dec 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.1-04 |
169 |
- French fixup for FormMagick/general [SME: 180] |
170 |
|
171 |
* Mon Dec 05 2005 Filippo Carletti <carletti@mobilia.it> 1.0.1-03 |
172 |
- Change some too long italian translations [SME: 273] |
173 |
|
174 |
* Wed Oct 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.1-02 |
175 |
- Change 'standby' to 'stand by' in console [SME: 66] |
176 |
|
177 |
* Wed Oct 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.1-01 |
178 |
- Roll patches up to 1.0.0-12 |
179 |
- Convert all DOS format files to Unix format to ease patching [SME: 66] |
180 |
|
181 |
* Mon Oct 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-12 |
182 |
- Plus encore [SF: 1265560] |
183 |
|
184 |
* Mon Oct 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-11 |
185 |
- Revise French on review panel [SF: 1293855] |
186 |
|
187 |
* Mon Oct 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-11 |
188 |
- Add defattr definition to each sub-package [SF: 1296531] |
189 |
- Remove fr-ca to fr relocation - it can stay in e-smith-base, or |
190 |
even get removed entirely. It's for 5.6 -> 6.0 upgrades in any case. |
191 |
|
192 |
* Mon Oct 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-10 |
193 |
- Add aspell-$locale as dependencies of the various locales [SF: 1296531] |
194 |
|
195 |
* Sat Oct 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-09 |
196 |
- Initial work on generating separate locale packages [SF: 1309520] |
197 |
- Do we really want to generate around 80 one to seven file packages? |
198 |
I don't think so - it may be "correct", but it's really ugly |
199 |
|
200 |
* Sat Oct 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-08 |
201 |
- Spec file cleanup [SF: 1309520] |
202 |
- TODO: Generate locale packages to match base packages. |
203 |
|
204 |
* Sat Oct 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-07 |
205 |
- Ensure zero exit status from fr pre scriptlet [SF: 1309520] |
206 |
- TODO: Do we need this any more - IIRC it's for 5.5 -> 6.0 |
207 |
It is also in e-smith-base, and should be removed from there |
208 |
|
209 |
* Sat Oct 15 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-06 |
210 |
- Fix up bug references in changelog (no code change) [SF: 1309520] |
211 |
|
212 |
* Fri Oct 14 2005 Filippo Carletti <carletti@mobilia.it> 1.0.0-05 |
213 |
- Italian updates |
214 |
|
215 |
* Mon Oct 3 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-04 |
216 |
- Don't generate the parent (combined) package, just the sub-packages |
217 |
- Remove en_US/en-us files from install tree. They are just here for |
218 |
translation convenience and to provide a comparison with the |
219 |
relevant base packages (TODO: Decide whether to delete them) [SF: 1309520] |
220 |
|
221 |
* Sat Oct 1 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-03 |
222 |
- Added missing po files (new tarball) [SF: 1309520] |
223 |
|
224 |
* Sat Oct 1 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-02 |
225 |
- Fixup in Italian FormMagick/general (new tarball) [SF: 1309520] |
226 |
|
227 |
* Sat Oct 1 2005 Gordon Rowell <gordonr@gormand.com.au> 1.0.0-01 |
228 |
- Repackaging of all L10Ns except en-us in one RPM. en-us L10Ns live |
229 |
in the base packages. All languages are stored in the single source |
230 |
RPM, but a separate binary RPM is generated per language. [SF: 1309520] |
231 |
|
232 |
%prep |
233 |
%setup |
234 |
%patch0 -p1 |
235 |
%patch1 -p1 |
236 |
%patch2 -p1 |
237 |
%patch3 -p1 |
238 |
%patch4 -p1 |
239 |
%patch5 -p1 |
240 |
%patch6 -p1 |
241 |
%patch7 -p1 |
242 |
%patch8 -p1 |
243 |
%patch9 -p1 |
244 |
%patch10 -p1 |
245 |
%patch11 -p1 |
246 |
%patch12 -p1 |
247 |
%patch13 -p1 |
248 |
%patch14 -p1 |
249 |
%patch15 -p1 |
250 |
%patch16 -p1 |
251 |
%patch17 -p1 |
252 |
%patch18 -p1 |
253 |
%patch19 -p1 |
254 |
%patch20 -p1 |
255 |
%patch21 -p1 |
256 |
%patch22 -p1 |
257 |
%patch23 -p1 |
258 |
%patch24 -p1 |
259 |
%post |
260 |
|
261 |
%build |
262 |
LEXICONS=$((find root/etc/e-smith/locale -type f) \ |
263 |
| grep -v CVS | grep -v pleasewait) |
264 |
|
265 |
for file in $LEXICONS |
266 |
do |
267 |
/usr/bin/dos2unix $file |
268 |
/sbin/e-smith/validate-lexicon $file |
269 |
done |
270 |
|
271 |
for dir in root/etc/e-smith/locale/* |
272 |
do |
273 |
ln -s initial.cgi $dir/etc/e-smith/web/functions/index.cgi |
274 |
done |
275 |
|
276 |
/sbin/e-smith/generate-lexicons |
277 |
|
278 |
%install |
279 |
set -x |
280 |
|
281 |
rm -rf $RPM_BUILD_ROOT |
282 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
283 |
|
284 |
# These live in the base packages - copied here to ease translation |
285 |
# and to make it easier to see when the base changes |
286 |
rm -rf $RPM_BUILD_ROOT/usr/share/locale/en_US |
287 |
rm -rf $RPM_BUILD_ROOT/etc/e-smith/local/en-us |
288 |
|
289 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
290 |
> %{name}-%{version}-%{release}-filelist |
291 |
|
292 |
for locale in %{package_locales} |
293 |
do |
294 |
echo "%defattr(-,root,root)" > \ |
295 |
%{name}-%{version}-%{release}-filelist-$locale |
296 |
|
297 |
grep locale/$locale %{name}-%{version}-%{release}-filelist >> \ |
298 |
%{name}-%{version}-%{release}-filelist-$locale |
299 |
done |
300 |
|
301 |
# cat >/tmp/pkgmap <<HERE |
302 |
# LPRng printers |
303 |
# base groups|initial.cgi|localnetworks|reboot|remoteaccess|review|useraccounts|userpassword |
304 |
# backup backup |
305 |
# clamav clamav |
306 |
# domains domains |
307 |
# email emailsettings|pseudonyms |
308 |
# formmagick FormMagick |
309 |
# hosts hostentries |
310 |
# ibays ibays |
311 |
# ldap directory |
312 |
# ntp datetime |
313 |
# portforwarding portforwarding |
314 |
# support online-manual|support |
315 |
# proxy proxy |
316 |
# qmailanalog qmailanalog |
317 |
# quota quota |
318 |
# samba workgroup |
319 |
# starterwebsite starterwebsite |
320 |
# viewlogfiles viewlogfiles |
321 |
# yum yum |
322 |
# HERE |
323 |
# |
324 |
# cat /tmp/pkgmap | while read pkg parts |
325 |
# do |
326 |
# for locale in %{package_locales} |
327 |
# do |
328 |
# egrep $parts %{name}-%{version}-%{release}-filelist-$locale \ |
329 |
# %{name}-%{version}-%{release}-filelist-$locale-$pkg |
330 |
# done |
331 |
# done |
332 |
|
333 |
%clean |
334 |
rm -rf $RPM_BUILD_ROOT |
335 |
|
336 |
%package de |
337 |
Summary: %{package_summary} - German |
338 |
Group: %{group} |
339 |
Requires: aspell-de |
340 |
%description de |
341 |
%{summary} |
342 |
%files de -f %{name}-%{version}-%{release}-filelist-de |
343 |
|
344 |
%package es |
345 |
Summary: %{package_summary} - Spanish |
346 |
Group: %{group} |
347 |
Requires: aspell-es |
348 |
%description es |
349 |
%{summary} |
350 |
%files es -f %{name}-%{version}-%{release}-filelist-es |
351 |
|
352 |
%package fr |
353 |
Summary: %{package_summary} - French |
354 |
Group: %{group} |
355 |
Requires: aspell-fr |
356 |
%description fr |
357 |
%{summary} |
358 |
%files fr -f %{name}-%{version}-%{release}-filelist-fr |
359 |
|
360 |
%package it |
361 |
Summary: %{package_summary} - Italian |
362 |
Group: %{group} |
363 |
Requires: aspell-it |
364 |
%description it |
365 |
%{summary} |
366 |
%files it -f %{name}-%{version}-%{release}-filelist-it |
367 |
|
368 |
%package sv |
369 |
Summary: %{package_summary} - Swedish |
370 |
Group: %{group} |
371 |
Requires: aspell-sv |
372 |
%description sv |
373 |
%{summary} |
374 |
%files sv -f %{name}-%{version}-%{release}-filelist-sv |