2007-01-16 00:17:07 +01:00
|
|
|
#
|
2011-01-14 16:20:22 +01:00
|
|
|
# spec file for package icu
|
2007-01-16 00:17:07 +01:00
|
|
|
#
|
2012-01-20 22:07:16 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:17:07 +01:00
|
|
|
#
|
2008-09-13 02:21:47 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:17:07 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-04-12 09:26:42 +02:00
|
|
|
|
2007-01-16 00:17:07 +01:00
|
|
|
Name: icu
|
2012-11-14 19:16:36 +01:00
|
|
|
%define sover 49
|
2012-04-12 09:26:42 +02:00
|
|
|
Version: 49.1
|
2012-01-06 11:44:51 +01:00
|
|
|
Release: 0
|
2012-11-14 19:16:36 +01:00
|
|
|
%define aversion 49_1
|
2011-05-05 15:49:44 +02:00
|
|
|
Summary: International Components for Unicode
|
2012-06-13 15:10:01 +02:00
|
|
|
License: SUSE-XFree86-1.0
|
2011-08-03 16:04:43 +02:00
|
|
|
Group: System/Libraries
|
2012-01-06 11:44:51 +01:00
|
|
|
Url: http://ibm.com/software/globalization/icu
|
2012-11-14 19:16:36 +01:00
|
|
|
Source0: icu4c-%aversion-src.tgz
|
|
|
|
Source1: icu4c-%aversion-docs.zip
|
2012-04-12 09:26:42 +02:00
|
|
|
# PATCH-FIX-UPSTREAM icu-rpmlint.diff -- http://bugs.icu-project.org/trac/ticket/7808
|
|
|
|
Patch1: icu-rpmlint.diff
|
2009-04-02 17:31:42 +02:00
|
|
|
# PATCH-FIX-OPENSUSE icu-remove-datetime.patch vuntz@novell.com -- Do not put date/time in icu-config (needed for build-compare)
|
2009-05-28 00:41:07 +02:00
|
|
|
Patch99: icu-remove-datetime.patch
|
2012-11-14 19:16:36 +01:00
|
|
|
#BuildRequires: automake
|
2011-05-05 15:49:44 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkg-config
|
2012-01-20 22:07:16 +01:00
|
|
|
BuildRequires: unzip
|
2007-01-16 00:17:07 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
|
|
|
full-featured Unicode and locale support. The library provides calendar
|
|
|
|
support, conversions for many character sets, language sensitive
|
|
|
|
collation, date and time formatting, support for many locales, message
|
|
|
|
catalogs and resources, message formatting, normalization, number and
|
|
|
|
currency formatting, time zone support, transliteration, and word,
|
|
|
|
line, and sentence breaking, etc.
|
|
|
|
|
|
|
|
This package contains the Unicode character database and derived
|
|
|
|
properties along with converters and time zone data.
|
|
|
|
|
|
|
|
This package contains the runtime libraries for ICU. It does not
|
|
|
|
contain any of the data files needed at runtime and present in the icu
|
|
|
|
and icu-locales packages.
|
|
|
|
|
2012-11-14 19:16:36 +01:00
|
|
|
%package -n libicudata%sover
|
|
|
|
Summary: International Components for Unicode: Data library
|
|
|
|
Group: System/Libraries
|
|
|
|
Obsoletes: icu-i18ndata
|
|
|
|
|
|
|
|
%description -n libicudata%sover
|
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
|
|
|
full-featured Unicode support. This package contains the main runtime
|
|
|
|
library for ICU.
|
|
|
|
|
|
|
|
icudata contains data required by the common and i18n ICU libraries.
|
|
|
|
|
|
|
|
%package -n libicui18n%sover
|
|
|
|
Summary: International Components for Unicode: Internationalization library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libicui18n%sover
|
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
|
|
|
full-featured Unicode support. This package contains the main runtime
|
|
|
|
library for ICU.
|
|
|
|
|
|
|
|
icui18n is a library that contains many local-based
|
|
|
|
internationalization (i18n) functions.
|
|
|
|
|
|
|
|
%package -n libicuio%sover
|
|
|
|
Summary: International Components for Unicode
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libicuio%sover
|
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
|
|
|
full-featured Unicode support. This package contains the main runtime
|
|
|
|
library for ICU.
|
|
|
|
|
|
|
|
icuio is an optional library that provides a stdio-like API with
|
|
|
|
Unicode support.
|
|
|
|
|
|
|
|
%package -n libicule%sover
|
|
|
|
Summary: International Components for Unicode: Layout engine
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libicule%sover
|
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
|
|
|
full-featured Unicode support. This package contains the main runtime
|
|
|
|
library for ICU.
|
|
|
|
|
|
|
|
icule is an optional engine for doing font layout.
|
|
|
|
|
|
|
|
%package -n libiculx%sover
|
|
|
|
Summary: International Components for Unicode: Layout extensions engine
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libiculx%sover
|
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
|
|
|
full-featured Unicode support. This package contains the main runtime
|
|
|
|
library for ICU.
|
|
|
|
|
|
|
|
iculx is an optional engine for doing font layout that uses parts of
|
|
|
|
ICU.
|
|
|
|
|
|
|
|
%package -n libicutest%sover
|
|
|
|
Summary: International Components for Unicode: Testing library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libicutest%sover
|
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
|
|
|
full-featured Unicode support. This package contains the main runtime
|
|
|
|
library for ICU.
|
|
|
|
|
|
|
|
(Upstream has not provided a description for this library.)
|
|
|
|
|
|
|
|
%package -n libicutu%sover
|
|
|
|
Summary: International Components for Unicode: Tool utility library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libicutu%sover
|
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
|
|
|
full-featured Unicode support. This package contains the main runtime
|
|
|
|
library for ICU.
|
|
|
|
|
|
|
|
An internal library that contains internal APIs that are only used
|
|
|
|
by ICU's tools.
|
|
|
|
|
|
|
|
%package -n libicuuc%sover
|
|
|
|
Summary: International Components for Unicode: Common library
|
|
|
|
Group: System/Libraries
|
2008-11-02 15:46:17 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libicu-64bit
|
|
|
|
%endif
|
2010-05-14 00:19:53 +02:00
|
|
|
Requires: timezone
|
2012-04-12 09:26:42 +02:00
|
|
|
# Following O/P added in timeframe for 12.2
|
|
|
|
Provides: libicu = %version-%release
|
|
|
|
Obsoletes: libicu < %version-%release
|
|
|
|
|
2012-11-14 19:16:36 +01:00
|
|
|
%description -n libicuuc%sover
|
2007-01-16 00:17:07 +01:00
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
2012-11-14 19:16:36 +01:00
|
|
|
full-featured Unicode support. This package contains the main runtime
|
|
|
|
library for ICU.
|
|
|
|
|
|
|
|
Base library required by all other ICU libraries.
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%package -n libicu-devel
|
|
|
|
Summary: International Components for Unicode (development files)
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-11-02 15:46:17 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libicu-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2012-11-14 19:16:36 +01:00
|
|
|
Requires: libicudata%sover = %version
|
|
|
|
Requires: libicui18n%sover = %version
|
|
|
|
Requires: libicuio%sover = %version
|
|
|
|
Requires: libicule%sover = %version
|
|
|
|
Requires: libiculx%sover = %version
|
|
|
|
Requires: libicutest%sover = %version
|
|
|
|
Requires: libicutu%sover = %version
|
|
|
|
Requires: libicuuc%sover = %version
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%description -n libicu-devel
|
|
|
|
ICU is a C++ and C library that provides robust and full-featured
|
|
|
|
Unicode support. This package contains the development files for ICU.
|
|
|
|
|
|
|
|
%package -n libicu-doc
|
|
|
|
Summary: International Components for Unicode (html documentation)
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n libicu-doc
|
|
|
|
ICU is a C++ and C library that provides robust and full-featured
|
|
|
|
Unicode support. This package contains the html documentation.
|
|
|
|
|
2012-04-12 09:26:42 +02:00
|
|
|
%package data
|
2007-01-16 00:17:07 +01:00
|
|
|
Summary: International Components for Unicode (Sources for the Data in ICU)
|
|
|
|
Group: System/Libraries
|
2012-11-14 19:16:36 +01:00
|
|
|
Requires: libicudata%sover >= %version
|
2007-01-16 00:17:07 +01:00
|
|
|
|
2012-04-12 09:26:42 +02:00
|
|
|
%description data
|
2007-01-16 00:17:07 +01:00
|
|
|
ICU is a C++ and C library that provides robust and full-featured
|
|
|
|
Unicode support. This package contains the source files for the data
|
|
|
|
found in the "icu" package.
|
|
|
|
|
|
|
|
This data describes the Unicode data (normative and informative) and
|
|
|
|
also all the table-based converters provided in the ICU distribution.
|
|
|
|
|
|
|
|
This package contains uncompiled source data. Precompiled data is in
|
2012-11-14 19:16:36 +01:00
|
|
|
the "libicudata%sover" package.
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%prep
|
2012-01-20 22:07:16 +01:00
|
|
|
%setup -q -n icu
|
|
|
|
mkdir html
|
|
|
|
pushd html
|
|
|
|
unzip %{SOURCE1}
|
|
|
|
popd
|
2010-08-14 00:01:22 +02:00
|
|
|
%patch1 -p1
|
2009-05-28 00:41:07 +02:00
|
|
|
%patch99 -p1
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd source
|
2012-11-14 19:16:36 +01:00
|
|
|
export CXXFLAGS="%{optflags} -DU_TRACE_DYLOAD -DICU_DATA_DIR=\\\"/usr/share/icu/%{version}/\\\"";
|
|
|
|
export CFLAGS="$CXXFLAGS";
|
2009-03-03 00:27:52 +01:00
|
|
|
%configure --disable-static --with-pic\
|
2007-01-16 00:17:07 +01:00
|
|
|
--enable-shared \
|
2009-03-03 00:27:52 +01:00
|
|
|
--without-samples
|
2011-08-03 16:04:43 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%install
|
2012-04-12 09:26:42 +02:00
|
|
|
find . -name CVS -type d -exec rm -Rf "{}" "+"
|
2007-01-16 00:17:07 +01:00
|
|
|
cd source
|
2011-08-03 16:04:43 +02:00
|
|
|
|
2012-11-14 19:16:36 +01:00
|
|
|
make install DESTDIR="%buildroot";
|
2011-08-03 16:04:43 +02:00
|
|
|
|
2007-01-16 00:17:07 +01:00
|
|
|
# to extract debug info
|
2011-08-03 16:04:43 +02:00
|
|
|
chmod a+rx %{buildroot}%{_libdir}/*.so.*
|
|
|
|
|
2007-01-16 00:17:07 +01:00
|
|
|
# install uncompiled source data:
|
2011-08-03 16:04:43 +02:00
|
|
|
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}/
|
|
|
|
|
|
|
|
rm %{buildroot}/%{_datadir}/icu/%{version}/license.html
|
|
|
|
rm %{buildroot}/%{_datadir}/icu/%{version}/install-sh
|
|
|
|
|
|
|
|
%check
|
2012-11-14 19:16:36 +01:00
|
|
|
exit 0
|
2011-08-03 16:04:43 +02:00
|
|
|
cd source
|
2011-10-13 19:42:05 +02:00
|
|
|
%if !0%{?qemu_user_space_build:1}
|
|
|
|
# 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
|
2011-08-03 16:04:43 +02:00
|
|
|
make check
|
2011-10-13 19:42:05 +02:00
|
|
|
%endif
|
2007-01-16 00:17:07 +01:00
|
|
|
|
2012-07-13 00:00:10 +02:00
|
|
|
# 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;
|
|
|
|
|
2012-11-14 19:16:36 +01:00
|
|
|
%post -n libicudata%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libicudata%sover -p /sbin/ldconfig
|
|
|
|
%post -n libicui18n%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libicui18n%sover -p /sbin/ldconfig
|
|
|
|
%post -n libicuio%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libicuio%sover -p /sbin/ldconfig
|
|
|
|
%post -n libicule%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libicule%sover -p /sbin/ldconfig
|
|
|
|
%post -n libiculx%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libiculx%sover -p /sbin/ldconfig
|
|
|
|
%post -n libicutest%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libicutest%sover -p /sbin/ldconfig
|
|
|
|
%post -n libicutu%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libicutu%sover -p /sbin/ldconfig
|
|
|
|
%post -n libicuuc%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libicuuc%sover -p /sbin/ldconfig
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc license.html readme.html
|
|
|
|
%dir %{_libdir}/icu/
|
|
|
|
%dir %{_libdir}/icu/%{version}
|
|
|
|
%{_libdir}/icu/current
|
2009-05-28 00:41:07 +02:00
|
|
|
%{_bindir}/derb
|
|
|
|
%{_bindir}/genbrk
|
|
|
|
%{_bindir}/gencfu
|
|
|
|
%{_bindir}/gencnval
|
|
|
|
%{_bindir}/genrb
|
|
|
|
%{_bindir}/genctd
|
2010-08-14 00:01:22 +02:00
|
|
|
%{_bindir}/icuinfo
|
2009-05-28 00:41:07 +02:00
|
|
|
%{_bindir}/makeconv
|
|
|
|
%{_bindir}/pkgdata
|
|
|
|
%{_bindir}/uconv
|
2011-08-03 16:04:43 +02:00
|
|
|
%{_sbindir}/*
|
2007-01-16 00:17:07 +01:00
|
|
|
%{_mandir}/*/*
|
|
|
|
|
2012-11-14 19:16:36 +01:00
|
|
|
%files -n libicudata%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libicudata.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n libicui18n%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libicui18n.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n libicuio%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libicuio.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n libicule%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libicule.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n libiculx%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libiculx.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n libicutest%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libicutest.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n libicutu%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libicutu.so.%{sover}*
|
|
|
|
|
|
|
|
%files -n libicuuc%sover
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libicuuc.so.%{sover}*
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%files -n libicu-devel
|
|
|
|
%defattr(-, root, root)
|
2012-11-14 19:16:36 +01:00
|
|
|
%{_libdir}/libicu*.so
|
2009-05-28 00:41:07 +02:00
|
|
|
%{_includedir}/unicode/
|
|
|
|
%{_includedir}/layout/
|
2007-01-16 00:17:07 +01:00
|
|
|
%{_libdir}/icu/%{version}/Makefile.inc
|
2009-05-28 00:41:07 +02:00
|
|
|
%{_libdir}/icu/%{version}/pkgdata.inc
|
2007-01-16 00:17:07 +01:00
|
|
|
%{_libdir}/icu/Makefile.inc
|
2009-05-28 00:41:07 +02:00
|
|
|
%{_libdir}/icu/pkgdata.inc
|
2011-05-05 15:49:44 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2009-05-28 00:41:07 +02:00
|
|
|
%{_bindir}/icu-config
|
|
|
|
%dir %{_datadir}/icu
|
|
|
|
%dir %{_datadir}/icu/%{version}
|
|
|
|
%{_datadir}/icu/%{version}/mkinstalldirs
|
|
|
|
%{_datadir}/icu/%{version}/config/
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%files -n libicu-doc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc html/
|
|
|
|
|
2012-04-12 09:26:42 +02:00
|
|
|
%files data
|
2007-01-16 00:17:07 +01:00
|
|
|
%defattr(-, root, root)
|
2009-05-28 00:41:07 +02:00
|
|
|
%{_datadir}/icu/%{version}/unidata/
|
|
|
|
%{_datadir}/icu/%{version}/UnicodeData.txt
|
2007-01-16 00:17:07 +01:00
|
|
|
|
2007-07-27 01:44:36 +02:00
|
|
|
%changelog
|