icu4c-51.1
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/icu?expand=0&rev=20
This commit is contained in:
54
icu.spec
54
icu.spec
@@ -17,21 +17,24 @@
|
||||
|
||||
|
||||
Name: icu
|
||||
%define lname libicu50
|
||||
Version: 50.1.2
|
||||
%define lname libicu51
|
||||
Version: 51.1
|
||||
Release: 0
|
||||
%define aversion 50_1_2
|
||||
%define aversion 51_1
|
||||
Summary: International Components for Unicode
|
||||
License: X11
|
||||
Group: System/Libraries
|
||||
Url: http://ibm.com/software/globalization/icu
|
||||
Source0: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{aversion}-src.tgz
|
||||
Source1: http://download.icu-project.org/files/icu4c/%{version}/icu4c-%{aversion}-docs.zip
|
||||
|
||||
#DL-URL: http://download.icu-project.org/files/icu4c/%version/icu4c-%aversion-src.tgz
|
||||
Source: icu4c-%aversion-src.tar.xz
|
||||
Source2: icu4c-%aversion-docs.tar.xz
|
||||
Source3: download.sh
|
||||
# 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)
|
||||
Patch99: icu-remove-datetime.patch
|
||||
#BuildRequires: automake
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: unzip
|
||||
@@ -113,11 +116,7 @@ This package contains uncompiled source data. Precompiled data is in
|
||||
the "%lname" package.
|
||||
|
||||
%prep
|
||||
%setup -q -n icu
|
||||
mkdir html
|
||||
pushd html
|
||||
unzip -qq %{S:1}
|
||||
popd
|
||||
%setup -qn icu -a2
|
||||
%patch1 -p1
|
||||
%patch99 -p1
|
||||
|
||||
@@ -131,21 +130,28 @@ export CFLAGS="$CXXFLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
b="%buildroot"
|
||||
mkdir -p "$b/%_docdir/%name"
|
||||
cp -a html "$b/%_docdir/%name/"
|
||||
cp -a license.html readme.html "$b/%_docdir/%name/"
|
||||
|
||||
find . -name CVS -type d -exec rm -Rf "{}" "+"
|
||||
cd source
|
||||
|
||||
make install DESTDIR="%buildroot";
|
||||
make install DESTDIR="$b";
|
||||
|
||||
# to extract debug info
|
||||
chmod a+rx "%buildroot/%_libdir"/*.so.*
|
||||
# /usr/lib/rpm/elfdeps requires +x bit
|
||||
chmod a+rx "$b/%_libdir"/*.so.*
|
||||
|
||||
# install uncompiled source data:
|
||||
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 "$b/%_datadir/icu/%version/unidata"
|
||||
install -m 644 data/unidata/*.txt "$b/%_datadir/icu/%version/unidata"
|
||||
ln -s unidata/UnicodeData.txt "$b/%_datadir/icu/%version/"
|
||||
|
||||
rm "%buildroot/%_datadir/icu/%version/license.html"
|
||||
rm "%buildroot/%_datadir/icu/%version/install-sh"
|
||||
rm "$b/%_datadir/icu/%version/license.html"
|
||||
rm "$b/%_datadir/icu/%version/install-sh"
|
||||
|
||||
%fdupes %buildroot/%_prefix
|
||||
|
||||
%check
|
||||
cd source
|
||||
@@ -178,13 +184,11 @@ if test -d "%_libdir/icu"; then
|
||||
fi;
|
||||
fi;
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc license.html readme.html
|
||||
%dir %_libdir/icu
|
||||
%dir %_libdir/icu/%version
|
||||
%_libdir/icu/current
|
||||
@@ -196,6 +200,9 @@ fi;
|
||||
%_bindir/uconv
|
||||
%_sbindir/*
|
||||
%_mandir/*/*
|
||||
%dir %_docdir/%name
|
||||
%_docdir/%name/license.html
|
||||
%_docdir/%name/readme.html
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-, root, root)
|
||||
@@ -219,7 +226,8 @@ fi;
|
||||
|
||||
%files -n libicu-doc
|
||||
%defattr(-,root,root)
|
||||
%doc html/
|
||||
%dir %_docdir/%name
|
||||
%_docdir/%name/html
|
||||
|
||||
%files data
|
||||
%defattr(-, root, root)
|
||||
|
Reference in New Issue
Block a user