1 |
Summary: SME Server localisation module |
Summary: SME Server localisation module |
2 |
%define name smeserver-locale |
%define name smeserver-locale |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 1.2.0 |
%define version 1.4.0 |
5 |
%define release 58 |
%define release 1 |
6 |
%define package_summary SME Server localisation module |
%define package_summary SME Server localisation module |
7 |
%define group Applications/System |
%define group Applications/System |
8 |
%define package_locales da de el es fr id it nl pt sl sv |
%define package_locales da de el es fr hu id it nl pt sl sv |
9 |
Version: %{version} |
Version: %{version} |
10 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
11 |
License: GPL |
License: GPL |
12 |
Group: Networking/Daemons |
Group: Networking/Daemons |
13 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
|
Patch0: smeserver-locale-1.2.0-italian_rc1.patch |
|
|
Patch1: smeserver-locale-1.2.0-onlinemanuallocation.patch |
|
|
Patch2: smeserver-locale-1.2.0-onlinemanuallocation1.patch |
|
|
Patch3: smeserver-locale-1.2.0-bug263-01.patch |
|
|
Patch4: smeserver-locale-1.2.0-germanupdates.patch |
|
|
Patch5: smeserver-locale-1.2.0-spanishemailsettingsupdate.patch |
|
|
Patch6: smeserver-locale-1.2.0-germanupdates1.patch |
|
|
Patch7: smeserver-locale-1.2.0-bug1001-01.patch |
|
|
Patch8: smeserver-locale-1.2.0-italian_rc4.patch |
|
|
Patch9: smeserver-locale-1.2.0-initialtext.patch |
|
|
Patch10: smeserver-locale-1.2.0-initialtext.patch2 |
|
|
Patch11: smeserver-locale-1.2.0-initialtext.patch3 |
|
|
Patch12: smeserver-locale-1.2.0-initialtext-fr.patch |
|
|
Patch13: smeserver-locale-1.2.0-novirtual.patch |
|
|
Patch14: smeserver-locale-1.2.0-SwedishPanelTranslations.patch |
|
|
Patch15: smeserver-locale-1.2.0-novirtualsvitfr.patch |
|
|
Patch16: smeserver-locale-1.2.0-SwedishConsoleTranslations.patch |
|
|
Patch17: smeserver-locale-1.2.0-spanishupdates2.patch |
|
|
Patch18: smeserver-locale-1.2.0-spanishupdates3.patch |
|
|
Patch19: smeserver-locale-1.2.0-germanupdates2.patch |
|
|
Patch20: smeserver-locale-1.2.0-germanupdates3.patch |
|
|
Patch21: smeserver-locale-1.2.0-spanishupdates4.patch |
|
|
Patch22: smeserver-locale-1.2.0-italian_backupusb1.patch |
|
|
Patch23: smeserver-locale-1.2.0-italian_standby.patch |
|
|
Patch24: smeserver-locale-1.2.0-frmenusplit.patch |
|
|
Patch26: smeserver-locale-it-1.2.0-SshTcpPort2.patch |
|
|
Patch27: smeserver-locale-it-1.2.0-SystemPasswordTextChange.patch |
|
|
Patch28: smeserver-locale-1.2.0-sshportfrde.patch |
|
|
Patch29: smeserver-locale-1.2.0-sshport_es_update.patch |
|
|
Patch30: smeserver-locale-1.2.0-spanishupdates5.patch |
|
|
Patch31: smeserver-locale-1.2.0-up2date.patch |
|
|
Patch32: smeserver-locale-1.2.0-itHostentries.patch |
|
|
Patch33: smeserver-locale-1.2.0-systemPassword.patch |
|
|
Patch34: smeserver-locale-1.2.0-sshport_sv.patch |
|
|
Patch35: smeserver-locale-1.2.0-italian_yum_email.patch |
|
|
Patch36: smeserver-locale-1.2.0-italian_smtpserver.patch |
|
|
Patch37: smeserver-locale-1.2.0-de_es_fr_sv_emailupdate.patch |
|
|
Patch38: smeserver-locale-1.2.0-de_fr_sv_smtpheaderupdate.patch |
|
|
Patch39: smeserver-locale-1.2.0-de_es_fr_sv_yumtextupdate.patch |
|
|
Patch40: smeserver-locale-1.2.0-frEmailsettings.patch |
|
|
Patch41: smeserver-locale-1.2.0-removeDeReinstall.patch |
|
|
Patch42: smeserver-locale-1.2.0-tmpl.patch |
|
|
Patch43: smeserver-locale-1.2.0-enPOupdate.patch |
|
|
Patch44: smeserver-locale-1.2.0-Updates2mar08de.patch |
|
|
Patch45: smeserver-locale-1.2.0-Updates2mar08fr.patch |
|
|
Patch46: smeserver-locale-1.2.0-Updates2mar08it.patch |
|
|
Patch47: smeserver-locale-1.2.0-Updates2mar08es.patch |
|
|
Patch48: smeserver-locale-1.2.0-Updates2mar08sv.patch |
|
|
Patch49: smeserver-locale-1.2.0-AddDanish2mar08.patch |
|
|
Patch50: smeserver-locale-1.2.0-AddGreek2mar08.patch |
|
|
Patch51: smeserver-locale-1.2.0-AddIndonesian2mar08.patch |
|
|
Patch52: smeserver-locale-1.2.0-AddDutch2mar08.patch |
|
|
Patch53: smeserver-locale-1.2.0-AddSlovinian2mar08.patch |
|
|
Patch54: smeserver-locale-1.2.0-AddPortugese2mar08.patch |
|
|
Patch55: smeserver-locale-1.2.0-PootleFix04mar08.patch |
|
14 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
16 |
BuildRequires: perl |
BuildRequires: perl |
17 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
18 |
BuildRequires: gettext |
BuildRequires: gettext |
|
BuildRequires: dos2unix |
|
19 |
AutoReqProv: no |
AutoReqProv: no |
20 |
|
|
21 |
%description |
%description |
22 |
SME Server localisation module |
SME Server localisation module |
23 |
|
|
24 |
%changelog |
%changelog |
25 |
|
* Fri Mar 7 2008 Shad L. Lords <slords@mail.com> 1.4.0-1 |
26 |
|
- Roll new stream and considate patches |
27 |
|
|
28 |
* Wed Mar 05 2008 Stephen Noble <support@dungog.net> 1.2.0-58 |
* Wed Mar 05 2008 Stephen Noble <support@dungog.net> 1.2.0-58 |
29 |
- fix conversions for tags with CDATA or marked fuzzy [SME: 4014] |
- fix conversions for tags with CDATA or marked fuzzy [SME: 4014] |
30 |
|
|
297 |
|
|
298 |
%prep |
%prep |
299 |
%setup |
%setup |
|
%patch0 -p1 |
|
|
%patch1 -p1 |
|
|
%patch2 -p1 |
|
|
%patch3 -p1 |
|
|
%patch4 -p1 |
|
|
%patch5 -p1 |
|
|
%patch6 -p1 |
|
|
%patch7 -p1 |
|
|
%patch8 -p1 |
|
|
%patch9 -p1 |
|
|
%patch10 -p1 |
|
|
%patch11 -p1 |
|
|
%patch12 -p1 |
|
|
%patch13 -p1 |
|
|
%patch14 -p1 |
|
|
%patch15 -p1 |
|
|
%patch16 -p1 |
|
|
%patch17 -p1 |
|
|
%patch18 -p1 |
|
|
%patch19 -p1 |
|
|
%patch20 -p1 |
|
|
%patch21 -p1 |
|
|
%patch22 -p1 |
|
|
%patch23 -p1 |
|
|
%patch24 -p1 |
|
|
%patch26 -p1 |
|
|
%patch27 -p1 |
|
|
%patch28 -p1 |
|
|
%patch29 -p1 |
|
|
%patch30 -p1 |
|
|
%patch31 -p1 |
|
|
%patch32 -p1 |
|
|
%patch33 -p1 |
|
|
%patch34 -p1 |
|
|
%patch35 -p1 |
|
|
%patch36 -p1 |
|
|
%patch37 -p1 |
|
|
%patch38 -p1 |
|
|
%patch39 -p1 |
|
|
%patch40 -p1 |
|
|
%patch41 -p1 |
|
|
%patch42 -p1 |
|
|
%patch43 -p1 |
|
|
%patch44 -p1 |
|
|
%patch45 -p1 |
|
|
%patch46 -p1 |
|
|
%patch47 -p1 |
|
|
%patch48 -p1 |
|
|
%patch49 -p1 |
|
|
%patch50 -p1 |
|
|
%patch51 -p1 |
|
|
%patch52 -p1 |
|
|
%patch53 -p1 |
|
|
%patch54 -p1 |
|
|
%patch55 -p1 |
|
|
|
|
|
%post |
|
300 |
|
|
301 |
%build |
%build |
302 |
LEXICONS=$((find root/etc/e-smith/locale -type f) \ |
LEXICONS=$(find root/etc/e-smith/locale -type f) |
|
| grep -v CVS | grep -v pleasewait) |
|
|
|
|
303 |
for file in $LEXICONS |
for file in $LEXICONS |
304 |
do |
do |
|
/usr/bin/dos2unix $file |
|
305 |
/sbin/e-smith/validate-lexicon $file |
/sbin/e-smith/validate-lexicon $file |
306 |
done |
done |
307 |
|
|
312 |
|
|
313 |
/sbin/e-smith/generate-lexicons |
/sbin/e-smith/generate-lexicons |
314 |
|
|
|
ln -s pt root/etc/e-smith/locale/pt-br |
|
|
|
|
315 |
%install |
%install |
|
set -x |
|
|
|
|
316 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
317 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
318 |
|
|
|
# These live in the base packages - copied here to ease translation |
|
|
# and to make it easier to see when the base changes |
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/en_US |
|
|
rm -rf $RPM_BUILD_ROOT/etc/e-smith/local/en-us |
|
|
|
|
319 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
320 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
321 |
|
|
328 |
%{name}-%{version}-%{release}-filelist-$locale |
%{name}-%{version}-%{release}-filelist-$locale |
329 |
done |
done |
330 |
|
|
|
# cat >/tmp/pkgmap <<HERE |
|
|
# LPRng printers |
|
|
# base groups|initial.cgi|localnetworks|reboot|remoteaccess|review|useraccounts|userpassword |
|
|
# backup backup |
|
|
# clamav clamav |
|
|
# domains domains |
|
|
# email emailsettings|pseudonyms |
|
|
# formmagick FormMagick |
|
|
# hosts hostentries |
|
|
# ibays ibays |
|
|
# ldap directory |
|
|
# ntp datetime |
|
|
# portforwarding portforwarding |
|
|
# support online-manual|support |
|
|
# proxy proxy |
|
|
# qmailanalog qmailanalog |
|
|
# quota quota |
|
|
# samba workgroup |
|
|
# starterwebsite starterwebsite |
|
|
# viewlogfiles viewlogfiles |
|
|
# yum yum |
|
|
# HERE |
|
|
# |
|
|
# cat /tmp/pkgmap | while read pkg parts |
|
|
# do |
|
|
# for locale in %{package_locales} |
|
|
# do |
|
|
# egrep $parts %{name}-%{version}-%{release}-filelist-$locale \ |
|
|
# %{name}-%{version}-%{release}-filelist-$locale-$pkg |
|
|
# done |
|
|
# done |
|
|
|
|
331 |
%clean |
%clean |
332 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
333 |
|
|
369 |
%{summary} |
%{summary} |
370 |
%files fr -f %{name}-%{version}-%{release}-filelist-fr |
%files fr -f %{name}-%{version}-%{release}-filelist-fr |
371 |
|
|
372 |
|
%package hu |
373 |
|
Summary: %{package_summary} - Hungarian |
374 |
|
Group: %{group} |
375 |
|
%description hu |
376 |
|
%{summary} |
377 |
|
%files hu -f %{name}-%{version}-%{release}-filelist-hu |
378 |
|
|
379 |
%package id |
%package id |
380 |
Summary: %{package_summary} - Indonesian |
Summary: %{package_summary} - Indonesian |
381 |
Group: %{group} |
Group: %{group} |