File squirrelmail-lang.spec of Package squirrelmail-lang
#
# spec file for package squirrelmail-lang
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: squirrelmail-lang
Version: 1.4.18
Release: 0
Requires: squirrelmail >= %{version}
Url: http://www.squirrelmail.org/
Summary: The Translations for squirrelmail
License: GPL-2.0+
Group: Productivity/Networking/Email/Clients
Source: all_locales-%{version}-20090526.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if 0%{?suse_version} >= 1030
BuildRequires: fdupes
BuildRequires: perl
BuildRequires: squirrelmail
%endif
%define sqm_path /srv/www/htdocs/squirrelmail
%define b_sqm_path %{buildroot}%{sqm_path}
%description
Squirrelmail is a web-mail reader and writer written in php. It
supports adressbook, ldap searches and many other plugins.
This package contains the internationalization files for this tool.
%prep
%setup -q -c %{name}
%build
%install
install -d -m 0755 %{b_sqm_path}
cp -a * %{b_sqm_path}/
%if 0%{?suse_version} >= 1030
# this is possibly dangerous
# make sure that no changeable files are linked
fdupes -r %{b_sqm_path} | perl -ne \
'chomp;if(!$_){my $f=shift @a;while($_=shift @a){system "ln -f $f $_";}}else{push @a,$_;}'
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc version ReleaseNotes.locales COPYING.locales ChangeLog.locales TRANSLATORS
%exclude %{sqm_path}/install
%exclude %{sqm_path}/version
%exclude %{sqm_path}/TRANSLATORS
%exclude %{sqm_path}/*.locales
%exclude %{sqm_path}/locale/*/LC_MESSAGES/*.po
%{sqm_path}/images/*
%lang(ar) %{sqm_path}/locale/ar
#%lang(ar) %{sqm_path}/help/ar
%lang(bg_BG) %{sqm_path}/locale/bg_BG
%lang(bg_BG) %{sqm_path}/help/bg_BG
%lang(bn_IN) %{sqm_path}/locale/bn_IN
#%lang(bn_IN) %{sqm_path}/help/bn_IN
%lang(bn_BD) %{sqm_path}/locale/bn_BD
#%lang(bn_BD) %{sqm_path}/help/bn_BD
%lang(ca_ES) %{sqm_path}/locale/ca_ES
%lang(ca_ES) %{sqm_path}/help/ca_ES
%lang(cs_CZ) %{sqm_path}/locale/cs_CZ
%lang(cs_CZ) %{sqm_path}/help/cs_CZ
%lang(cy_GB) %{sqm_path}/locale/cy_GB
%lang(cy_GB) %{sqm_path}/help/cy_GB
%lang(da_DK) %{sqm_path}/locale/da_DK
%lang(da_DK) %{sqm_path}/help/da_DK
%lang(de_DE) %{sqm_path}/locale/de_DE
%lang(de_DE) %{sqm_path}/help/de_DE
%lang(el_GR) %{sqm_path}/locale/el_GR
#%lang(el_GR) %{sqm_path}/help/el_GR
#%lang(en_GB) %{sqm_path}/locale/en_GB
#%lang(en_GB) %{sqm_path}/help/en_GB
#%lang(en_US) %{sqm_path}/locale/en_US
%exclude %lang(en_US) %{sqm_path}/help/en_US
%lang(es_ES) %{sqm_path}/locale/es_ES
%lang(es_ES) %{sqm_path}/help/es_ES
%lang(et_EE) %{sqm_path}/locale/et_EE
#%lang(et_EE) %{sqm_path}/help/et_EE
%lang(eu_ES) %{sqm_path}/locale/eu_ES
#%lang(eu_ES) %{sqm_path}/help/eu_ES
%lang(fa_IR) %{sqm_path}/locale/fa_IR
%lang(fa_IR) %{sqm_path}/help/fa_IR
%lang(fi_FI) %{sqm_path}/locale/fi_FI
%lang(fi_FI) %{sqm_path}/help/fi_FI
%lang(fo_FO) %{sqm_path}/locale/fo_FO
#%lang(fo_FO) %{sqm_path}/help/fo_FO
%lang(fr_FR) %{sqm_path}/locale/fr_FR
%lang(fr_FR) %{sqm_path}/help/fr_FR
%lang(fy) %{sqm_path}/locale/fy
#%lang(fy) %{sqm_path}/help/fy
%lang(he_IL) %{sqm_path}/locale/he_IL
#%lang(he_IL) %{sqm_path}/help/he_IL
%lang(hr_HR) %{sqm_path}/locale/hr_HR
#%lang(hr_HR) %{sqm_path}/help/hr_HR
%lang(hu_HU) %{sqm_path}/locale/hu_HU
#%lang(hu_HU) %{sqm_path}/help/hu_HU
%lang(id_ID) %{sqm_path}/locale/id_ID
%lang(id_ID) %{sqm_path}/help/id_ID
%lang(is_IS) %{sqm_path}/locale/is_IS
#%lang(is_IS) %{sqm_path}/help/is_IS
%lang(it_IT) %{sqm_path}/locale/it_IT
%lang(it_IT) %{sqm_path}/help/it_IT
%lang(ja_JP) %{sqm_path}/locale/ja_JP
%lang(ja_JP) %{sqm_path}/help/ja_JP
%lang(ka) %{sqm_path}/locale/ka
#%lang(ka) %{sqm_path}/help/ka
%lang(km) %{sqm_path}/locale/km
#%lang(km) %{sqm_path}/help/km
%lang(ko_KR) %{sqm_path}/locale/ko_KR
%lang(ko_KR) %{sqm_path}/help/ko_KR
%lang(lt_LT) %{sqm_path}/locale/lt_LT
%lang(lt_LT) %{sqm_path}/help/lt_LT
%lang(lv_LV) %{sqm_path}/locale/lv_LV
#%lang(lv_LV) %{sqm_path}/help/lv_LV
%lang(mk) %{sqm_path}/locale/mk
#%lang(mk) %{sqm_path}/help/mk
%lang(ms_MY) %{sqm_path}/locale/ms_MY
#%lang(ms_MY) %{sqm_path}/help/ms_MY
%lang(nb_NO) %{sqm_path}/locale/nb_NO
#%lang(nb_NO) %{sqm_path}/help/nb_NO
%lang(nl_NL) %{sqm_path}/locale/nl_NL
%lang(nl_NL) %{sqm_path}/help/nl_NL
%lang(nn_NO) %{sqm_path}/locale/nn_NO
#%lang(nn_NO) %{sqm_path}/help/nn_NO
%lang(pl_PL) %{sqm_path}/locale/pl_PL
%lang(pl_PL) %{sqm_path}/help/pl_PL
%lang(pt_BR) %{sqm_path}/locale/pt_BR
%lang(pt_BR) %{sqm_path}/help/pt_BR
%lang(pt_PT) %{sqm_path}/locale/pt_PT
%lang(pt_PT) %{sqm_path}/help/pt_PT
%lang(ro_RO) %{sqm_path}/locale/ro_RO
#%lang(ro_RO) %{sqm_path}/help/ro_RO
%lang(ru_RU) %{sqm_path}/locale/ru_RU
%lang(ru_RU) %{sqm_path}/help/ru_RU
%lang(sk_SK) %{sqm_path}/locale/sk_SK
%lang(sk_SK) %{sqm_path}/help/sk_SK
%lang(sl_SI) %{sqm_path}/locale/sl_SI
%lang(sl_SI) %{sqm_path}/help/sl_SI
%lang(sr_YU) %{sqm_path}/locale/sr_YU
%lang(sr_YU) %{sqm_path}/help/sr_YU
%lang(sv_SE) %{sqm_path}/locale/sv_SE
%lang(sv_SE) %{sqm_path}/help/sv_SE
%lang(ta_LK) %{sqm_path}/locale/ta_LK
#%lang(ta_LK) %{sqm_path}/help/ta_LK
%lang(tr_TR) %{sqm_path}/locale/tr_TR
#%lang(tr_TR) %{sqm_path}/help/tr_TR
#%lang(th_TH) %{sqm_path}/locale/th_TH
#%lang(th_TH) %{sqm_path}/help/th_TH
%lang(uk_UA) %{sqm_path}/locale/uk_UA
%lang(uk_UA) %{sqm_path}/help/uk_UA
%lang(vi_VN) %{sqm_path}/locale/vi_VN
#%lang(vi_VN) %{sqm_path}/help/vi_VN
%lang(zh_CN) %{sqm_path}/locale/zh_CN
%lang(zh_CN) %{sqm_path}/help/zh_CN
%lang(ug) %{sqm_path}/locale/ug
#%lang(ug) %{sqm_path}/help/ug
%lang(zh_TW) %{sqm_path}/locale/zh_TW
#%lang(zh_TW) %{sqm_path}/help/zh_TW
%changelog