2005-06-03 22:59:21 +00:00
|
|
|
# Copyright (C) 2000-2005, International Business Machines
|
2003-06-03 06:44:40 +00:00
|
|
|
# Corporation and others. All Rights Reserved.
|
2000-10-20 05:28:49 +00:00
|
|
|
#
|
|
|
|
# RPM specification file for ICU.
|
|
|
|
#
|
2001-07-04 04:04:34 +00:00
|
|
|
# Neal Probert <nprobert@walid.com> is the current maintainer.
|
|
|
|
# Yves Arrouye <yves@realnames.com> is the original author.
|
2000-10-20 05:28:49 +00:00
|
|
|
|
2001-07-04 04:04:34 +00:00
|
|
|
# This file can be freely redistributed under the same license as ICU.
|
2000-11-22 06:39:11 +00:00
|
|
|
|
2000-10-20 05:28:49 +00:00
|
|
|
Name: icu
|
2005-06-03 22:59:21 +00:00
|
|
|
Version: 3.4
|
2001-05-21 16:57:47 +00:00
|
|
|
Release: 1
|
2005-06-03 22:59:21 +00:00
|
|
|
Requires: libicu34 >= %{version}
|
2000-10-20 05:28:49 +00:00
|
|
|
Summary: International Components for Unicode
|
2002-09-16 18:59:34 +00:00
|
|
|
Packager: Ian Holsman (CNET Networks) <ianh@cnet.com>
|
2002-09-27 23:37:59 +00:00
|
|
|
Copyright: X License
|
2000-10-20 05:28:49 +00:00
|
|
|
Group: System Environment/Libraries
|
2004-06-08 22:25:40 +00:00
|
|
|
Source: icu-%{version}.tgz
|
|
|
|
BuildRoot: /var/tmp/%{name}-%{version}
|
2000-10-20 05:28:49 +00:00
|
|
|
%description
|
2004-06-09 03:34:11 +00:00
|
|
|
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
|
2004-06-08 22:25:40 +00:00
|
|
|
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 zones support, transliteration, word, line and
|
|
|
|
sentence breaking, etc.
|
|
|
|
|
|
|
|
This package contains the Unicode character database and derived
|
|
|
|
properties, along with converters and time zones data.
|
|
|
|
|
|
|
|
This package contains the runtime libraries for ICU. It does
|
2000-10-20 05:28:49 +00:00
|
|
|
not contain any of the data files needed at runtime and present in the
|
|
|
|
`icu' and `icu-locales` packages.
|
|
|
|
|
2005-06-03 22:59:21 +00:00
|
|
|
%package -n libicu34
|
2000-10-20 05:28:49 +00:00
|
|
|
Summary: International Components for Unicode (libraries)
|
|
|
|
Group: Development/Libraries
|
2005-06-03 22:59:21 +00:00
|
|
|
%description -n libicu34
|
2004-06-09 03:34:11 +00:00
|
|
|
ICU is a set of C and C++ libraries that provides robust and full-featured
|
|
|
|
Unicode support. This package contains the runtime libraries for ICU. It does
|
2000-10-20 05:28:49 +00:00
|
|
|
not contain any of the data files needed at runtime and present in the
|
|
|
|
`icu' and `icu-locales` packages.
|
|
|
|
|
|
|
|
%package -n libicu-devel
|
|
|
|
Summary: International Components for Unicode (development files)
|
|
|
|
Group: Development/Libraries
|
2005-06-03 22:59:21 +00:00
|
|
|
Requires: libicu34 = %{version}
|
2000-10-20 05:28:49 +00:00
|
|
|
%description -n libicu-devel
|
2004-06-09 03:34:11 +00:00
|
|
|
ICU is a set of C and C++ libraries that provides robust and full-featured
|
|
|
|
Unicode support. This package contains the development files for ICU.
|
2000-10-20 05:28:49 +00:00
|
|
|
|
|
|
|
%package locales
|
|
|
|
Summary: Locale data for ICU
|
|
|
|
Group: System Environment/Libraries
|
2005-06-03 22:59:21 +00:00
|
|
|
Requires: libicu34 >= %{version}
|
2000-10-20 05:28:49 +00:00
|
|
|
%description locales
|
2004-06-09 03:34:11 +00:00
|
|
|
The locale data are used by ICU to provide localization (l10n),
|
|
|
|
internationalization (i18n) and timezone support to ICU applications.
|
|
|
|
This package also contains break data for various languages,
|
|
|
|
and transliteration data.
|
2000-10-20 05:28:49 +00:00
|
|
|
|
2001-05-21 16:57:47 +00:00
|
|
|
%post
|
2000-11-22 06:39:11 +00:00
|
|
|
# Adjust the current ICU link in /usr/lib/icu
|
|
|
|
|
|
|
|
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
|
|
|
|
cd /usr/lib/icu
|
2002-09-27 23:37:59 +00:00
|
|
|
rm -f /usr/lib/icu/current
|
2000-11-22 06:39:11 +00:00
|
|
|
if test x"$icucurrent" != x
|
|
|
|
then
|
|
|
|
ln -s "$icucurrent" current
|
|
|
|
fi
|
|
|
|
|
2004-06-08 22:25:40 +00:00
|
|
|
#ICU_DATA=/usr/share/icu/%{version}
|
2004-03-12 07:02:13 +00:00
|
|
|
#export ICU_DATA
|
2000-10-20 05:28:49 +00:00
|
|
|
|
2001-05-21 16:57:47 +00:00
|
|
|
%preun
|
2000-11-22 06:39:11 +00:00
|
|
|
# Adjust the current ICU link in /usr/lib/icu
|
|
|
|
|
2004-06-08 22:25:40 +00:00
|
|
|
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/%{version}\//d' -e 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
|
2000-11-22 06:39:11 +00:00
|
|
|
cd /usr/lib/icu
|
2002-09-27 23:37:59 +00:00
|
|
|
rm -f /usr/lib/icu/current
|
2000-11-22 06:39:11 +00:00
|
|
|
if test x"$icucurrent" != x
|
|
|
|
then
|
|
|
|
ln -s "$icucurrent" current
|
|
|
|
fi
|
|
|
|
|
2005-06-03 22:59:21 +00:00
|
|
|
%post -n libicu34
|
2000-10-20 05:28:49 +00:00
|
|
|
ldconfig
|
|
|
|
|
2000-10-27 22:30:42 +00:00
|
|
|
# Adjust the current ICU link in /usr/lib/icu
|
|
|
|
|
|
|
|
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
|
|
|
|
cd /usr/lib/icu
|
2002-09-27 23:37:59 +00:00
|
|
|
rm -f /usr/lib/icu/current
|
2000-10-27 22:30:42 +00:00
|
|
|
if test x"$icucurrent" != x
|
|
|
|
then
|
|
|
|
ln -s "$icucurrent" current
|
|
|
|
fi
|
|
|
|
|
2005-06-03 22:59:21 +00:00
|
|
|
%preun -n libicu34
|
2000-10-27 22:30:42 +00:00
|
|
|
# Adjust the current ICU link in /usr/lib/icu
|
|
|
|
|
2004-06-08 22:25:40 +00:00
|
|
|
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/%{version}\//d' -e 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
|
2000-10-27 22:30:42 +00:00
|
|
|
cd /usr/lib/icu
|
2002-09-27 23:37:59 +00:00
|
|
|
rm -f /usr/lib/icu/current
|
2000-10-27 22:30:42 +00:00
|
|
|
if test x"$icucurrent" != x
|
|
|
|
then
|
|
|
|
ln -s "$icucurrent" current
|
|
|
|
fi
|
|
|
|
|
2000-10-20 05:28:49 +00:00
|
|
|
%prep
|
2004-06-08 22:25:40 +00:00
|
|
|
%setup -q -n icu
|
2000-10-20 05:28:49 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd source
|
2001-05-21 16:57:47 +00:00
|
|
|
chmod a+x ./configure
|
2004-04-01 04:25:48 +00:00
|
|
|
CFLAGS="-O3" CXXFLAGS="-O" ./configure --prefix=/usr --sysconfdir=/etc --with-data-packaging=files --enable-shared --enable-static --disable-samples
|
2004-06-08 22:25:40 +00:00
|
|
|
echo 'CPPFLAGS += -DICU_DATA_DIR=\"/usr/share/icu/%{version}\"' >> icudefs.mk
|
2000-10-20 05:28:49 +00:00
|
|
|
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
cd source
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc readme.html
|
|
|
|
%doc license.html
|
2004-06-08 22:25:40 +00:00
|
|
|
/usr/share/icu/%{version}/license.html
|
2005-06-03 22:59:21 +00:00
|
|
|
/usr/share/icu/%{version}/icudt34l/*.cnv
|
|
|
|
/usr/share/icu/%{version}/icudt34l/*.icu
|
|
|
|
/usr/share/icu/%{version}/icudt34l/*.spp
|
2002-09-16 18:59:34 +00:00
|
|
|
|
|
|
|
/usr/bin/derb
|
|
|
|
/usr/bin/genbrk
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/bin/gencnval
|
2002-09-16 18:59:34 +00:00
|
|
|
/usr/bin/genrb
|
|
|
|
/usr/bin/icu-config
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/bin/makeconv
|
2002-09-16 18:59:34 +00:00
|
|
|
/usr/bin/pkgdata
|
|
|
|
/usr/bin/uconv
|
2000-10-20 05:28:49 +00:00
|
|
|
|
2001-05-21 16:57:47 +00:00
|
|
|
/usr/sbin/decmn
|
2000-10-20 05:28:49 +00:00
|
|
|
/usr/sbin/genccode
|
|
|
|
/usr/sbin/gencmn
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/sbin/gensprep
|
2001-05-21 16:57:47 +00:00
|
|
|
/usr/sbin/genuca
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/sbin/icuswap
|
2004-06-08 22:25:40 +00:00
|
|
|
/usr/share/icu/%{version}/mkinstalldirs
|
2004-04-01 04:25:48 +00:00
|
|
|
|
|
|
|
/usr/man/man1/derb.1.*
|
2005-06-03 22:59:21 +00:00
|
|
|
/usr/man/man1/gencnval.1.*
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/man/man1/genrb.1.*
|
|
|
|
/usr/man/man1/icu-config.1.*
|
|
|
|
/usr/man/man1/makeconv.1.*
|
|
|
|
/usr/man/man1/pkgdata.1.*
|
|
|
|
/usr/man/man1/uconv.1.*
|
|
|
|
/usr/man/man8/decmn.8.*
|
|
|
|
/usr/man/man8/genccode.8.*
|
|
|
|
/usr/man/man8/gencmn.8.*
|
2004-06-09 03:34:11 +00:00
|
|
|
/usr/man/man8/gensprep.8.*
|
2005-06-03 22:59:21 +00:00
|
|
|
/usr/man/man8/genuca.8.*
|
2000-10-20 05:28:49 +00:00
|
|
|
|
|
|
|
%files -n icu-locales
|
2005-06-03 22:59:21 +00:00
|
|
|
/usr/share/icu/%{version}/icudt34l/*.brk
|
|
|
|
/usr/share/icu/%{version}/icudt34l/*.res
|
|
|
|
/usr/share/icu/%{version}/icudt34l/coll/*.res
|
|
|
|
/usr/share/icu/%{version}/icudt34l/rbnf/*.res
|
|
|
|
/usr/share/icu/%{version}/icudt34l/translit/*.res
|
2004-06-08 22:25:40 +00:00
|
|
|
|
2005-06-03 22:59:21 +00:00
|
|
|
%files -n libicu34
|
2000-10-20 05:28:49 +00:00
|
|
|
%doc license.html
|
2005-06-03 22:59:21 +00:00
|
|
|
/usr/lib/libicui18n.so.34
|
|
|
|
/usr/lib/libicui18n.so.34.0
|
|
|
|
/usr/lib/libicutu.so.34
|
|
|
|
/usr/lib/libicutu.so.34.0
|
|
|
|
/usr/lib/libicuuc.so.34
|
|
|
|
/usr/lib/libicuuc.so.34.0
|
|
|
|
/usr/lib/libicudata.so.34
|
|
|
|
/usr/lib/libicudata.so.34.0
|
|
|
|
/usr/lib/libicuio.so.34
|
|
|
|
/usr/lib/libicuio.so.34.0
|
|
|
|
/usr/lib/libiculx.so.34
|
|
|
|
/usr/lib/libiculx.so.34.0
|
|
|
|
/usr/lib/libicule.so.34
|
|
|
|
/usr/lib/libicule.so.34.0
|
2000-10-20 05:28:49 +00:00
|
|
|
|
|
|
|
%files -n libicu-devel
|
|
|
|
%doc readme.html
|
|
|
|
%doc license.html
|
|
|
|
/usr/lib/libicui18n.so
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/lib/libsicui18n.a
|
2000-10-20 05:28:49 +00:00
|
|
|
/usr/lib/libicuuc.so
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/lib/libsicuuc.a
|
|
|
|
/usr/lib/libicutu.so
|
|
|
|
/usr/lib/libsicutu.a
|
2003-06-05 21:27:16 +00:00
|
|
|
/usr/lib/libicuio.so
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/lib/libsicuio.a
|
2002-09-27 23:37:59 +00:00
|
|
|
/usr/lib/libicudata.so
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/lib/libsicudata.a
|
2003-06-05 21:27:16 +00:00
|
|
|
/usr/lib/libicule.so
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/lib/libsicule.a
|
2003-06-05 21:27:16 +00:00
|
|
|
/usr/lib/libiculx.so
|
2004-04-01 04:25:48 +00:00
|
|
|
/usr/lib/libsiculx.a
|
2002-09-16 18:59:34 +00:00
|
|
|
/usr/include/unicode/*.h
|
2003-06-05 21:27:16 +00:00
|
|
|
/usr/include/layout/*.h
|
2004-06-08 22:25:40 +00:00
|
|
|
/usr/lib/icu/%{version}/Makefile.inc
|
2000-10-25 22:27:24 +00:00
|
|
|
/usr/lib/icu/Makefile.inc
|
2004-06-08 22:25:40 +00:00
|
|
|
/usr/share/icu/%{version}/config
|
|
|
|
/usr/share/doc/icu-%{version}/*
|
2000-10-20 05:28:49 +00:00
|
|
|
|
2002-09-16 18:59:34 +00:00
|
|
|
%changelog
|
2004-06-08 22:25:40 +00:00
|
|
|
* Mon Jun 07 2004 Alexei Dets <adets@idsk.com>
|
|
|
|
- update to 3.0
|
2003-09-17 23:42:15 +00:00
|
|
|
* Tue Aug 16 2003 Steven Loomis <srl@jtcsv.com>
|
|
|
|
- update to 2.6.1 - include license
|
2003-06-05 21:27:16 +00:00
|
|
|
* Thu Jun 05 2003 Steven Loomis <srl@jtcsv.com>
|
|
|
|
- Update to 2.6
|
2002-12-27 21:46:57 +00:00
|
|
|
* Fri Dec 27 2002 Steven Loomis <srl@jtcsv.com>
|
|
|
|
- Update to 2.4 spec
|
2002-09-27 23:37:59 +00:00
|
|
|
* Fri Sep 27 2002 Steven Loomis <srl@jtcsv.com>
|
|
|
|
- minor updates to 2.2 spec. Rpath is off by default, don't pass it as an option.
|
2002-09-16 18:59:34 +00:00
|
|
|
* Mon Sep 16 2002 Ian Holsman <ian@holsman.net>
|
|
|
|
- update to icu 2.2
|
2002-09-27 23:37:59 +00:00
|
|
|
|