diff --git a/icu.changes b/icu.changes index 20d6032..771b24e 100644 --- a/icu.changes +++ b/icu.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 13:23:12 UTC 2014 - tchvatal@suse.com + +- Ensure we escape the find %f properly. + ------------------------------------------------------------------- Tue Jun 3 11:35:25 UTC 2014 - tchvatal@suse.com diff --git a/icu.spec b/icu.spec index 542a3aa..70c02a8 100644 --- a/icu.spec +++ b/icu.spec @@ -186,7 +186,7 @@ ICU_DATA="%buildroot/%_datadir/icu/%version" make check %{?_smp_mflags} VERBOSE= # This should be run by whatever owns /usr/lib64/icu - # the (main) package in this case if test -d "%_libdir/icu"; then - current=$(cd "%_libdir/icu/"; find [0-9]* -maxdepth 1 -type d -printf '%f\n' | + 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"; @@ -196,7 +196,7 @@ fi; %postun if test -d "%_libdir/icu"; then - current=$(cd "%_libdir/icu/"; find [0-9]* -maxdepth 1 -type d -printf '%f\n' | + 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";