Kill SuSEconfig parts (FATE#313539)
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/icu?expand=0&rev=8
This commit is contained in:
parent
0de37f0764
commit
139f3e740c
@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany. All rights reserved.
|
||||
#
|
||||
# Author: Mike Fabian <mfabian@suse.de>, 2000
|
||||
#
|
||||
|
||||
|
||||
for iculibdir in $(echo /usr/lib*/icu/ )
|
||||
do
|
||||
echo "Adjust the current ICU link in $iculibdir ..."
|
||||
|
||||
icucurrent=`2>/dev/null ls -dp ${iculibdir}/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
|
||||
cd $iculibdir
|
||||
rm -f current
|
||||
if test x"$icucurrent" != x
|
||||
then
|
||||
ln -s "$icucurrent" current
|
||||
fi
|
||||
done
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 11 21:35:12 UTC 2012 - jengelh@inai.de
|
||||
|
||||
- Remove SuSEconfig.icu; only run the link updater on icu updates
|
||||
(FATE#313539)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 13 12:34:53 UTC 2012 - cfarrell@suse.com
|
||||
|
||||
|
28
icu.spec
28
icu.spec
@ -26,7 +26,6 @@ Group: System/Libraries
|
||||
Url: http://ibm.com/software/globalization/icu
|
||||
Source0: icu4c-49_1-src.tgz
|
||||
Source1: icu4c-49_1-docs.zip
|
||||
Source3: SuSEconfig.icu
|
||||
# PATCH-FIX-UPSTREAM icu-rpmlint.diff -- http://bugs.icu-project.org/trac/ticket/7808
|
||||
Patch1: icu-rpmlint.diff
|
||||
# PATCH-FIX-OPENSUSE icu-remove-datetime.patch vuntz@novell.com -- Do not put date/time in icu-config (needed for build-compare)
|
||||
@ -142,10 +141,6 @@ mkdir -p %{buildroot}%{_datadir}/icu/%{version}/unidata
|
||||
install -m 644 data/unidata/*.txt %{buildroot}/%{_datadir}/icu/%{version}/unidata
|
||||
ln -s unidata/UnicodeData.txt %{buildroot}/%{_datadir}/icu/%{version}/
|
||||
|
||||
mkdir -p %{buildroot}/sbin/conf.d/
|
||||
sed -e "s/@ICUVERSION@/%{version}/g" < ${RPM_SOURCE_DIR}/SuSEconfig.icu > ./SuSEconfig.icu
|
||||
install -m 755 ./SuSEconfig.icu %{buildroot}/sbin/conf.d/
|
||||
|
||||
rm %{buildroot}/%{_datadir}/icu/%{version}/license.html
|
||||
rm %{buildroot}/%{_datadir}/icu/%{version}/install-sh
|
||||
|
||||
@ -158,6 +153,28 @@ cd source
|
||||
make check
|
||||
%endif
|
||||
|
||||
# This should be run by whatever owns /usr/lib64/icu -
|
||||
# the (main) package in this case
|
||||
%post
|
||||
if test -d "%_libdir/icu"; then
|
||||
current=$(cd %_libdir/icu; find [0-9]* -maxdepth 1 -type d -printf '%f\n' |
|
||||
sort -V | tail -n1);
|
||||
if test -n "$current"; then
|
||||
rm -f "%_libdir/icu/current";
|
||||
ln -sv "$current" "%_libdir/icu/current";
|
||||
fi;
|
||||
fi;
|
||||
|
||||
%postun
|
||||
if test -d "%_libdir/icu"; then
|
||||
current=$(cd %_libdir/icu; find [0-9]* -maxdepth 1 -type d -printf '%f\n' |
|
||||
sort -V | tail -n1);
|
||||
if test -n "$current"; then
|
||||
rm -f "%_libdir/icu/current";
|
||||
ln -sv "$current" "%_libdir/icu/current";
|
||||
fi;
|
||||
fi;
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
@ -180,7 +197,6 @@ make check
|
||||
%{_bindir}/uconv
|
||||
%{_sbindir}/*
|
||||
%{_mandir}/*/*
|
||||
/sbin/conf.d/SuSEconfig.icu
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-, root, root)
|
||||
|
Loading…
Reference in New Issue
Block a user