# todo: update SAPSJIS to SJISX0213? Name: compat-locales-sap Version: 2.5 Release: 2%{?dist} Summary: Legacy locales for SAP Group: System Environment/Libraries License: LGPLv2+ and GPLv2+ URL: https://service.sap.com/sap/support/notes/171356 Source0: saplocales-2.2.5.tgz Source1: sysdep.h Source2: README.redhat Source3: cs_CZ@SAP Source4: sk_SK@SAP Source5: de_DE@POSIX Source6: en_US@POSIX Source7: tr_TR@SAP BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch1: saplocales-2.2.5-rhel5.patch Requires: %{name}-common = %{version}-%{release} %description Legacy locales required only for legacy data on SAP Application Servers. Only install this package if you need to access old legacy data in one of these old locale not supported by upstream glibc. This package provides the gconv module for SAPSJIS. %package common Summary: SAP locale files Group: System Environment/Libraries License: GPLv2+ %description common This package provides various legacy unix locale for SAP Application Servers: tr_TR.ISO-8859-9@SAP, ko_KR.euckr@SAP, lt_LT.ISO-8859-4@SAP, lv_LV.ISO-8859-4@SAP, et_EE.ISO-8859-4@SAP, cs_CZ.ISO-8859-2@SAP, sk_SK.ISO-8859-2@SAP, de_DE.ISO-8859-1@POSIX, en_US.ISO-8859-1@POSIX, ja_JP.SJIS@SAP Only install this package if you need to access old legacy data in one of these old locale not supported by upstream glibc. Note that SJIS is incompatible with ASCII. %prep %setup -q -n saplocales-2.2.5 %patch1 -p1 -b .orig cp -p %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5 %SOURCE6 %SOURCE7 . %build make gconv/SAPSJIS.so mkdir charmaps locales cp -p SAPSHIFT_JIS charmaps cp -p cs_CZ@SAP de_DE@POSIX en_US@POSIX sk_SK@SAP tr_TR@SAP locales %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libdir} cp -a gconv $RPM_BUILD_ROOT%{_libdir} cp -p gconv-modules.SAP $RPM_BUILD_ROOT%{_libdir}/gconv mkdir -p $RPM_BUILD_ROOT%{_datadir}/i18n/{charmaps,locales} cp -p charmaps/* $RPM_BUILD_ROOT%{_datadir}/i18n/charmaps cp -p locales/* $RPM_BUILD_ROOT%{_datadir}/i18n/locales %clean rm -rf $RPM_BUILD_ROOT %post common localedef -ci tr_TR@SAP -f ISO-8859-9 tr_TR.ISO-8859-9@SAP localedef -ci ko_KR -f EUC-KR ko_KR.euckr@SAP localedef -ci lt_LT -f ISO-8859-4 lt_LT.ISO-8859-4@SAP localedef -ci lv_LV -f ISO-8859-4 lv_LV.ISO-8859-4@SAP localedef -ci et_EE -f ISO-8859-4 et_EE.ISO-8859-4@SAP localedef -ci cs_CZ@SAP -f ISO-8859-2 cs_CZ.ISO-8859-2@SAP localedef -ci sk_SK@SAP -f ISO-8859-2 sk_SK.ISO-8859-2@SAP localedef -ci de_DE@POSIX -f ISO-8859-1 de_DE.ISO-8859-1@POSIX localedef -ci en_US@POSIX -f ISO-8859-1 en_US.ISO-8859-1@POSIX # ASCII incompatible locale localedef -i ja_JP -f SAPSHIFT_JIS ja_JP.SJIS@SAP %files %defattr(-,root,root,-) %doc COPYING.LIB README.redhat %{_libdir}/gconv %files common %defattr(-,root,root,-) %doc COPYING %{_datadir}/i18n/charmaps/* %{_datadir}/i18n/locales/* %changelog * Fri Jun 5 2009 Jens Petersen - 2.5-2 - drop the de_DE iso14651_HP collation for now * Thu Jun 4 2009 Jens Petersen - 2.5-1 - rename from sap-locale to distinguish package from SAP's saplocales package - add posix locales for de_DE and en_US (Nils Philippsen) - add iso14651_HP collation for de_DE from OpenSuSE's sap-locale package - update tr_TR locale with one from SuSE sap-locale - bump version to 2.5 * Fri May 15 2009 Jens Petersen - 2.2.5-4 - add cs_CZ.ISO-8859-2@SAP and sk_SK.ISO-8859-2@SAP (thanks Pravin Satpute) * Fri May 8 2009 Jens Petersen - 2.2.5-3 - reworked package to provide tr_TR.ISO-8859-9@SAP, ko_KR.euckr@SAP lt_LT.ISO-8859-4@SAP, lv_LV.ISO-8859-4@SAP, et_EE.ISO-8859-4@SAP, and ja_JP.SJIS@SAP (#467488) * Fri Mar 6 2009 Jens Petersen - 2.2.5-3 - update README - add some notes to common description about locale * Mon Mar 2 2009 Jens Petersen - 2.2.5-2 - initial packaging of SAP package for RHEL Supplementary (#467488) - saplocales-2.2.5-rhel5.patch with sysdep.h from Uli Drepper