Treat minor versions as new SONAMEs
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/icu?expand=0&rev=27
This commit is contained in:
20
icu.spec
20
icu.spec
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: icu
|
||||
%define lname libicu51
|
||||
%define lname libicu51_2
|
||||
Version: 51.2
|
||||
Release: 0
|
||||
%define aversion 51_2
|
||||
@@ -32,6 +32,7 @@ Source2: icu4c-%aversion-docs.tar.xz
|
||||
Source3: sanitize_docs.sh
|
||||
Patch1: icu-rpmlint.diff
|
||||
Patch2: icu-remove-datetime.patch
|
||||
Patch3: icu-versioning.diff
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkg-config
|
||||
@@ -108,7 +109,7 @@ the "%lname" package.
|
||||
|
||||
%prep
|
||||
%setup -qn icu -a2
|
||||
%patch -P 1 -P 2 -p1
|
||||
%patch -P 1 -P 2 -P 3 -p1
|
||||
|
||||
%build
|
||||
cd source
|
||||
@@ -117,7 +118,7 @@ export CFLAGS="$CXXFLAGS"
|
||||
%configure --disable-static \
|
||||
--enable-shared \
|
||||
--disable-samples
|
||||
make %{?_smp_mflags}
|
||||
make %{?_smp_mflags} VERBOSE=1
|
||||
|
||||
%install
|
||||
b="%buildroot"
|
||||
@@ -130,6 +131,17 @@ cd source
|
||||
|
||||
make install DESTDIR="$b";
|
||||
|
||||
#
|
||||
# ICU's "pkgdata" utility is really fragile, so icu-versioning.diff
|
||||
# does as few as possible, but that means we need some additional
|
||||
# cleanup in the spec file now.
|
||||
#
|
||||
for i in "$b/%_libdir"/*.so.[0-9]*; do
|
||||
if [ "${i##*.so.}" != "%version" ]; then
|
||||
rm -fv "$i";
|
||||
fi
|
||||
done
|
||||
|
||||
# /usr/lib/rpm/elfdeps requires +x bit and not all had it at one point
|
||||
chmod a+rx "$b/%_libdir"/lib*.so.*
|
||||
|
||||
@@ -149,7 +161,7 @@ cd source
|
||||
# Checks disabled in qemu because of races happening when we emulate
|
||||
# multi-threaded programs, and some check tests atomic instructions in
|
||||
# multi-threaded icu invocations
|
||||
make check
|
||||
make check VERBOSE=1
|
||||
%endif
|
||||
|
||||
# This should be run by whatever owns /usr/lib64/icu -
|
||||
|
Reference in New Issue
Block a user