Compare commits
No commits in common. "c8" and "imports/c8-beta/compat-locales-sap-1.0.10-9.el8" have entirely different histories.
c8
...
imports/c8
@ -1,13 +0,0 @@
|
||||
diff -ru compat-locales-sap-1.0.10.orig/saplocales-2.2.5/Makefile compat-locales-sap-1.0.10/saplocales-2.2.5/Makefile
|
||||
--- compat-locales-sap-1.0.10.orig/saplocales-2.2.5/Makefile 2019-08-15 11:05:54.078849986 +0200
|
||||
+++ compat-locales-sap-1.0.10/saplocales-2.2.5/Makefile 2019-08-15 11:28:03.573044382 +0200
|
||||
@@ -31,7 +31,7 @@
|
||||
-include compiler.h \
|
||||
-I. -Iiconv $(NEWFLAGS)
|
||||
|
||||
-LDFLAGS= -shared
|
||||
+LDFLAGS= -shared -z now
|
||||
|
||||
|
||||
all: modules locales
|
||||
|
@ -1,7 +1,7 @@
|
||||
%define __filter_GLIBC_PRIVATE 1
|
||||
%define debug_package %{nil}
|
||||
Name: compat-locales-sap
|
||||
Version: 1.0.10
|
||||
Release: 14%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: Compatibility locales for SAP
|
||||
|
||||
Group: System Environment/Libraries
|
||||
@ -19,8 +19,8 @@ Source16: glibc-2.26-pl_PL
|
||||
Source17: glibc-2.26-tr_TR
|
||||
Source18: glibc-2.26-cs_CZ
|
||||
Source19: glibc-2.26-sk_SK
|
||||
Obsoletes: %{name}-common
|
||||
Conflicts: %{name} <= 1.0.10-6
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
BuildRequires: glibc-locale-source
|
||||
Patch0: saplocales-2.2.5-rhel5.patch
|
||||
Patch1: glibc-cs_CZ@SAP.patch
|
||||
@ -39,27 +39,16 @@ Patch13: glibc-de_DE@HPUX.patch
|
||||
Patch14: glibc-pl_PL@HPUX.patch
|
||||
Patch15: saplocales-842448-shift-jisx0213.patch
|
||||
Patch16: glibc-cs_CZ@HPUX.patch
|
||||
Patch17: saplocales-2.2.5-rhel8.patch
|
||||
Patch18: saplocales-2.2.5-ldflags.patch
|
||||
patch17: saplocales-2.2.5-rhel8.patch
|
||||
|
||||
%description
|
||||
Compatibility locales for legacy data on SAP Application Servers.
|
||||
|
||||
This package provides gconv modules for SAPSJIS and SAPSJISX0213.
|
||||
|
||||
%package common
|
||||
Summary: SAP locale files
|
||||
Group: System Environment/Libraries
|
||||
License: GPLv2+
|
||||
|
||||
%description common
|
||||
This package provides various compatibility locales for use
|
||||
with SAP Application Servers:
|
||||
|
||||
cs_CZ.ISO-8859-2@SAP, cs_CZ.ISO-8859-2@HPUX, sk_SK.ISO-8859-2@SAP,
|
||||
lt_LT.ISO-8859-4@SAP, lv_LV.ISO-8859-4@SAP, et_EE.ISO-8859-4@SAP,
|
||||
tr_TR.ISO-8859-9@SAP,
|
||||
ja_JP.SAPSJIS, ko_KR.euckr@SAP,
|
||||
ko_KR.euckr@SAP,
|
||||
de_DE.ISO-8859-1@POSIX, en_US.ISO-8859-1@POSIX,
|
||||
de_DE.CP1252@WINDOWS, en_US.CP1252@WINDOWS,
|
||||
es_ES.ISO-8859-1@SAP,
|
||||
@ -67,13 +56,10 @@ de_DE.ISO-8859-1@Solaris, en_US.ISO-8859-1@Solaris,
|
||||
de_DE.ISO-8859-1@HPUX, en_US.ISO-8859-1@HPUX,
|
||||
pl_PL.ISO-8859-1@HPUX
|
||||
|
||||
Note that SAPSJIS is incompatible with ASCII.
|
||||
|
||||
%prep
|
||||
%setup -q -T -c -a1
|
||||
%patch0 -p0 -b .orig
|
||||
%patch17 -p1 -b .orig
|
||||
%patch18 -p1 -b .orig
|
||||
cp -p %SOURCE0 .
|
||||
cp -p %SOURCE2 saplocales-2.2.5
|
||||
cd saplocales-2.2.5
|
||||
@ -139,25 +125,14 @@ cp -p %SOURCE16 pl_PL
|
||||
%patch14 -p1 -b .orig
|
||||
mv pl_PL{,@HPUX}
|
||||
|
||||
gunzip -c %{_datadir}/i18n/charmaps/SHIFT_JISX0213.gz > saplocales-2.2.5/SAPSHIFT_JISX0213
|
||||
mv saplocales-2.2.5/{shift_jisx0213.c,SAPSJISX0213.c}
|
||||
%patch15 -p0 -b .orig
|
||||
|
||||
%build
|
||||
make -C saplocales-2.2.5 gconv/SAPSJIS.so NEWFLAGS="-Wl,-z,now -DFOR_GLIBC_2_6_AND_LATER %{optflags}"
|
||||
make -C saplocales-2.2.5 gconv/SAPSJISX0213.so NEWFLAGS="-Wl,-z,now -DFOR_GLIBC_2_6_AND_LATER %{optflags}"
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
||||
cp -a saplocales-2.2.5/gconv $RPM_BUILD_ROOT%{_libdir}
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/i18n/locales
|
||||
cp -p cs_CZ@SAP cs_CZ@HPUX de_DE@HPUX de_DE@POSIX de_DE@Solaris de_DE@WINDOWS en_US@HPUX en_US@POSIX en_US@Solaris en_US@WINDOWS es_ES@SAP pl_PL@HPUX sk_SK@SAP tr_TR@SAP $RPM_BUILD_ROOT%{_datadir}/i18n/locales/
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/i18n/charmaps
|
||||
cp -p saplocales-2.2.5/SAPSHIFT_JIS{,X0213} $RPM_BUILD_ROOT%{_datadir}/i18n/charmaps
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/locale
|
||||
|
||||
localedef --no-archive -ci $RPM_BUILD_ROOT%{_datadir}/i18n/locales/tr_TR@SAP \
|
||||
@ -202,12 +177,6 @@ localedef --no-archive -ci $RPM_BUILD_ROOT%{_datadir}/i18n/locales/en_US@WINDOWS
|
||||
$RPM_BUILD_ROOT%{_prefix}/lib/locale/en_US@WINDOWS
|
||||
|
||||
# ASCII incompatible locale
|
||||
localedef --no-archive -ci ja_JP \
|
||||
-f $RPM_BUILD_ROOT%{_datadir}/i18n/charmaps/SAPSHIFT_JISX0213 \
|
||||
$RPM_BUILD_ROOT%{_prefix}/lib/locale/ja_JP.SAPSJIS
|
||||
localedef --no-archive -ci ja_JP \
|
||||
-f $RPM_BUILD_ROOT%{_datadir}/i18n/charmaps/SAPSHIFT_JIS \
|
||||
$RPM_BUILD_ROOT%{_prefix}/lib/locale/ja_JP.OLDSAPSJIS
|
||||
|
||||
localedef --no-archive -ci $RPM_BUILD_ROOT%{_datadir}/i18n/locales/es_ES@SAP \
|
||||
-f ISO-8859-1 \
|
||||
@ -230,71 +199,19 @@ localedef --no-archive -ci $RPM_BUILD_ROOT%{_datadir}/i18n/locales/pl_PL@HPUX \
|
||||
-f ISO-8859-2 \
|
||||
$RPM_BUILD_ROOT%{_prefix}/lib/locale/pl_PL@HPUX
|
||||
|
||||
gzip -n $RPM_BUILD_ROOT%{_datadir}/i18n/charmaps/SAPSHIFT_JIS*
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%posttrans common
|
||||
sed -i -e "/SAPSJIS/d" %{_libdir}/gconv/gconv-modules
|
||||
sed -i -e "/SAPSJISX0213/d" %{_libdir}/gconv/gconv-modules
|
||||
|
||||
# from to module cost
|
||||
cat >> %{_libdir}/gconv/gconv-modules << EOF
|
||||
alias SAPSHIFT_JIS// SAPSJIS//
|
||||
module SAPSJIS// INTERNAL SAPSJIS 1
|
||||
module INTERNAL SAPSJIS// SAPSJIS 1
|
||||
|
||||
alias SAPSHIFT_JISX0213// SAPSJISX0213//
|
||||
module SAPSJISX0213// INTERNAL SAPSJISX0213 1
|
||||
module INTERNAL SAPSJISX0213// SAPSJISX0213 1
|
||||
EOF
|
||||
%{_sbindir}/iconvconfig -o %{_libdir}/gconv/gconv-modules.cache --nostdlib %{_libdir}/gconv
|
||||
exit 0
|
||||
|
||||
%postun common
|
||||
if [ $1 -eq 0 ] ; then
|
||||
sed -i -e "/SAPSJIS/d" %{_libdir}/gconv/gconv-modules
|
||||
sed -i -e "/SAPSJISX0213/d" %{_libdir}/gconv/gconv-modules
|
||||
%{_sbindir}/iconvconfig -o %{_libdir}/gconv/gconv-modules.cache --nostdlib %{_libdir}/gconv
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc saplocales-2.2.5/COPYING.LIB
|
||||
%{_libdir}/gconv/*
|
||||
|
||||
%files common
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%{_datadir}/i18n/charmaps/*
|
||||
%{_datadir}/i18n/locales/*
|
||||
%dir %{_prefix}/lib/locale
|
||||
%{_prefix}/lib/locale/*
|
||||
|
||||
%changelog
|
||||
* Tue Aug 20 2019 Mike Fabian <mfabian@redhat.com> - 1.0.10-14
|
||||
- glibc_post_upgrade.<_target_cpu> does not exist anymore, iconvconfig
|
||||
needs to be used in the posttrans script.
|
||||
- Related: rhbz#1737442
|
||||
|
||||
* Thu Aug 15 2019 Mike Fabian <mfabian@redhat.com> - 1.0.10-13
|
||||
- Add LD_FLAGS to really fix RPMDiff FAIL: "Not linked with -Wl,-z,now."
|
||||
- Related: rhbz#1737442
|
||||
|
||||
* Mon Aug 05 2019 Mike Fabian <mfabian@redhat.com> - 1.0.10-12
|
||||
- Fix RPMDiff FAIL: "Not linked with -Wl,-z,now."
|
||||
- Resolves: rhbz#1737442
|
||||
|
||||
* Tue May 14 2019 Mike Fabian <mfabian@redhat.com> - 1.0.10-11
|
||||
- Bump release number because the scripts for the CI tests have been updated
|
||||
- Related: rhbz#1682139
|
||||
|
||||
* Tue May 14 2019 Mike Fabian <mfabian@redhat.com> - 1.0.10-10
|
||||
- SAPSJIS and SAPSJISX0213 locales need to be part of compat-locales-sap again
|
||||
- Resolves: rhbz#1691404
|
||||
|
||||
* Tue Apr 23 2019 Mike Fabian <mfabian@redhat.com> - 1.0.10-9
|
||||
- Add Conflicts: compat-locales-sap <= 1.0.10-6 to avoid
|
||||
rpmdeplint error because of the architecture change.
|
||||
|
Loading…
Reference in New Issue
Block a user