2007-01-16 00:17:07 +01:00
|
|
|
#
|
2012-11-20 21:06:59 +01:00
|
|
|
# spec file for package icu
|
2007-01-16 00:17:07 +01:00
|
|
|
#
|
2012-11-20 21:06:59 +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-20 21:06:59 +01:00
|
|
|
%define lname libicu49
|
|
|
|
Version: 49.1
|
|
|
|
Release: 0
|
|
|
|
Summary: International Components for Unicode
|
|
|
|
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-20 21:06:59 +01:00
|
|
|
Source0: icu4c-49_1-src.tgz
|
|
|
|
Source1: icu4c-49_1-docs.zip
|
|
|
|
# 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: gcc-c++
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
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-20 21:06:59 +01:00
|
|
|
%package -n %lname
|
2012-11-14 20:32:59 +01:00
|
|
|
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-64bit
|
|
|
|
%endif
|
2012-11-20 21:06:59 +01:00
|
|
|
Requires: timezone
|
|
|
|
Obsoletes: icu-i18ndata
|
|
|
|
# Following O/P added in timeframe for 12.2
|
|
|
|
Provides: libicu = %version-%release
|
|
|
|
Obsoletes: libicu < %version-%release
|
2012-04-12 09:26:42 +02:00
|
|
|
|
2012-11-20 21:06:59 +01:00
|
|
|
%description -n %lname
|
2007-01-16 00:17:07 +01:00
|
|
|
ICU is a set of C and C++ libraries that provides robust and
|
2012-11-14 20:32:59 +01:00
|
|
|
full-featured Unicode support. 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.
|
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-20 21:06:59 +01:00
|
|
|
Requires: %lname = %{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-11-20 21:06:59 +01: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-20 21:06:59 +01:00
|
|
|
Requires: %lname >= %{version}
|
2007-01-16 00:17:07 +01:00
|
|
|
|
2012-11-20 21:06:59 +01: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-20 21:06:59 +01:00
|
|
|
the "%lname" package.
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%prep
|
2012-11-20 21:06:59 +01:00
|
|
|
%setup -q -n icu
|
|
|
|
mkdir html
|
|
|
|
pushd html
|
|
|
|
unzip %{SOURCE1}
|
|
|
|
popd
|
|
|
|
%patch1 -p1
|
|
|
|
%patch99 -p1
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd source
|
2012-11-20 21:06:59 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags} -DICU_DATA_DIR=\\\"/usr/share/icu/%{version}/\\\""
|
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
|
2012-11-20 21:06:59 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%install
|
2012-11-20 21:06:59 +01:00
|
|
|
find . -name CVS -type d -exec rm -Rf "{}" "+"
|
2007-01-16 00:17:07 +01:00
|
|
|
cd source
|
2012-11-20 21:06:59 +01:00
|
|
|
|
|
|
|
%make_install
|
|
|
|
|
2007-01-16 00:17:07 +01:00
|
|
|
# to extract debug info
|
2012-11-20 21:06:59 +01:00
|
|
|
chmod a+rx %{buildroot}%{_libdir}/*.so.*
|
|
|
|
|
2007-01-16 00:17:07 +01:00
|
|
|
# install uncompiled source data:
|
2012-11-20 21:06:59 +01: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
|
|
|
|
cd source
|
|
|
|
%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
|
|
|
|
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
|
2012-11-14 19:16:36 +01:00
|
|
|
|
2012-11-14 20:32:59 +01:00
|
|
|
%files
|
2012-11-20 21:06:28 +01:00
|
|
|
%defattr(-, root, root)
|
2012-11-14 20:32:59 +01:00
|
|
|
%doc license.html readme.html
|
2012-11-20 21:06:28 +01:00
|
|
|
%dir %{_libdir}/icu/
|
|
|
|
%dir %{_libdir}/icu/%{version}
|
|
|
|
%{_libdir}/icu/current
|
2012-11-20 21:06:59 +01:00
|
|
|
%{_bindir}/derb
|
|
|
|
%{_bindir}/genbrk
|
|
|
|
%{_bindir}/gencfu
|
|
|
|
%{_bindir}/gencnval
|
|
|
|
%{_bindir}/genrb
|
|
|
|
%{_bindir}/genctd
|
|
|
|
%{_bindir}/icuinfo
|
|
|
|
%{_bindir}/makeconv
|
|
|
|
%{_bindir}/pkgdata
|
|
|
|
%{_bindir}/uconv
|
|
|
|
%{_sbindir}/*
|
2012-11-20 21:06:28 +01:00
|
|
|
%{_mandir}/*/*
|
|
|
|
|
2012-11-20 21:06:59 +01:00
|
|
|
%files -n %lname
|
2012-11-14 20:32:59 +01:00
|
|
|
%defattr(-, root, root)
|
2012-11-20 21:06:28 +01:00
|
|
|
%attr (755, root, root) %{_libdir}/lib*.so.*
|
2007-01-16 00:17:07 +01:00
|
|
|
|
|
|
|
%files -n libicu-devel
|
|
|
|
%defattr(-, root, root)
|
2012-11-20 21:06:28 +01:00
|
|
|
%{_libdir}/lib*.so
|
2012-11-20 21:06:59 +01:00
|
|
|
%{_includedir}/unicode/
|
|
|
|
%{_includedir}/layout/
|
2012-11-20 21:06:28 +01:00
|
|
|
%{_libdir}/icu/%{version}/Makefile.inc
|
2012-11-20 21:06:59 +01:00
|
|
|
%{_libdir}/icu/%{version}/pkgdata.inc
|
2012-11-20 21:06:28 +01:00
|
|
|
%{_libdir}/icu/Makefile.inc
|
2012-11-20 21:06:59 +01:00
|
|
|
%{_libdir}/icu/pkgdata.inc
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_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
|
2012-11-20 21:06:28 +01:00
|
|
|
%defattr(-, root, root)
|
2007-01-16 00:17:07 +01:00
|
|
|
%doc html/
|
|
|
|
|
2012-11-20 21:06:59 +01:00
|
|
|
%files data
|
2007-01-16 00:17:07 +01:00
|
|
|
%defattr(-, root, root)
|
2012-11-20 21:06:59 +01: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
|