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
|
2002-12-27 21:46:57 +00:00
|
|
|
Version: 2.4
|
2001-05-21 16:57:47 +00:00
|
|
|
Release: 1
|
2002-12-27 21:46:57 +00:00
|
|
|
Requires: libicu24 >= 2.4
|
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
|
2002-12-27 21:46:57 +00:00
|
|
|
Source: icu-2.4.tar.gz
|
2001-05-21 16:57:47 +00:00
|
|
|
BuildRoot: /var/tmp/%{name}
|
2000-10-20 05:28:49 +00:00
|
|
|
%description
|
|
|
|
ICU is a C++ and C library that provides robust and 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.
|
|
|
|
|
2002-12-27 21:46:57 +00:00
|
|
|
%package -n libicu24
|
2000-10-20 05:28:49 +00:00
|
|
|
Summary: International Components for Unicode (libraries)
|
|
|
|
Group: Development/Libraries
|
2002-12-27 21:46:57 +00:00
|
|
|
%description -n libicu24
|
2000-10-20 05:28:49 +00:00
|
|
|
ICU is a C++ and C library that provides robust and 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.
|
|
|
|
|
|
|
|
%package -n libicu-devel
|
|
|
|
Summary: International Components for Unicode (development files)
|
|
|
|
Group: Development/Libraries
|
2002-12-27 21:46:57 +00:00
|
|
|
Requires: libicu24 = 2.4
|
2000-10-20 05:28:49 +00: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 locales
|
|
|
|
Summary: Locale data for ICU
|
|
|
|
Group: System Environment/Libraries
|
2002-12-27 21:46:57 +00:00
|
|
|
Requires: libicu24 >= 2.4
|
2000-10-20 05:28:49 +00:00
|
|
|
%description locales
|
|
|
|
The locale data are used by ICU to provide localization (l10n) and
|
|
|
|
internationalization (i18n) support to ICU applications. This package
|
|
|
|
also contains break data for various languages, and transliteration data.
|
|
|
|
|
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
|
|
|
|
|
2002-12-27 21:46:57 +00:00
|
|
|
ICU_DATA=/usr/lib/icu/2.4
|
2000-10-20 05:28:49 +00:00
|
|
|
export ICU_DATA
|
|
|
|
if test ! -f $ICU_DATA/cnvalias.dat -o /etc/icu/convrtrs.txt -nt $ICU_DATA/cnvalias.dat
|
|
|
|
then
|
|
|
|
echo Compiling converters and aliases list from /etc/icu/convrtrs.txt
|
2002-09-27 23:37:59 +00:00
|
|
|
/usr/bin/gencnval /etc/icu/convrtrs.txt
|
2000-10-20 05:28:49 +00:00
|
|
|
fi
|
|
|
|
|
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
|
|
|
|
|
2002-12-27 21:46:57 +00:00
|
|
|
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/2.4\//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
|
|
|
|
|
2002-12-27 21:46:57 +00:00
|
|
|
%post -n libicu24
|
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
|
|
|
|
|
2002-12-27 21:46:57 +00:00
|
|
|
%preun -n libicu24
|
2000-10-27 22:30:42 +00:00
|
|
|
# Adjust the current ICU link in /usr/lib/icu
|
|
|
|
|
2002-12-27 21:46:57 +00:00
|
|
|
icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/2.4\//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
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd source
|
2001-05-21 16:57:47 +00:00
|
|
|
chmod a+x ./configure
|
2002-09-27 23:37:59 +00:00
|
|
|
CFLAGS="-O2" CXXFLAGS="-O2" ./configure --prefix=/usr --sysconfdir=/etc --with-data-packaging=files --enable-shared --enable-static --disable-samples
|
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
|
|
|
|
%config /etc/icu/convrtrs.txt
|
2002-12-27 21:46:57 +00:00
|
|
|
/usr/share/icu/2.4/README
|
|
|
|
/usr/lib/icu/2.4/*.cnv
|
|
|
|
/usr/lib/icu/2.4/*.icu
|
2002-09-16 18:59:34 +00:00
|
|
|
|
|
|
|
/usr/bin/derb
|
|
|
|
/usr/bin/gencnval
|
|
|
|
/usr/bin/genbrk
|
|
|
|
/usr/bin/genrb
|
|
|
|
/usr/bin/makeconv
|
|
|
|
/usr/bin/icu-config
|
|
|
|
/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
|
2002-12-27 21:46:57 +00:00
|
|
|
/usr/sbin/genpname
|
2000-10-20 05:28:49 +00:00
|
|
|
/usr/sbin/gennames
|
2002-09-16 18:59:34 +00:00
|
|
|
/usr/sbin/gennorm
|
2000-10-20 05:28:49 +00:00
|
|
|
/usr/sbin/genprops
|
|
|
|
/usr/sbin/gentz
|
2001-05-21 16:57:47 +00:00
|
|
|
/usr/sbin/genuca
|
2000-10-20 05:28:49 +00:00
|
|
|
|
2002-09-16 18:59:34 +00:00
|
|
|
/usr/man/man1/gencnval.1.gz
|
|
|
|
/usr/man/man1/genrb.1.gz
|
|
|
|
/usr/man/man1/icu-config.1.gz
|
|
|
|
/usr/man/man1/makeconv.1.gz
|
|
|
|
/usr/man/man1/pkgdata.1.gz
|
|
|
|
/usr/man/man1/uconv.1.gz
|
2000-10-20 05:28:49 +00:00
|
|
|
/usr/man/man5/convrtrs.txt.5.gz
|
|
|
|
/usr/man/man5/cnvalias.dat.5.gz
|
2002-09-16 18:59:34 +00:00
|
|
|
/usr/man/man8/decmn.8.gz
|
|
|
|
/usr/man/man8/genccode.8.gz
|
|
|
|
/usr/man/man8/gencmn.8.gz
|
|
|
|
/usr/man/man8/gennames.8.gz
|
|
|
|
/usr/man/man8/gennorm.8.gz
|
|
|
|
/usr/man/man8/genprops.8.gz
|
2001-05-21 16:57:47 +00:00
|
|
|
/usr/man/man8/genuca.8.gz
|
2000-10-20 05:28:49 +00:00
|
|
|
|
|
|
|
%files -n icu-locales
|
2002-12-27 21:46:57 +00:00
|
|
|
/usr/lib/icu/2.4/*.brk
|
|
|
|
/usr/lib/icu/2.4/*.res
|
|
|
|
%files -n libicu24
|
2000-10-20 05:28:49 +00:00
|
|
|
%doc license.html
|
2002-12-27 21:46:57 +00:00
|
|
|
/usr/lib/libicui18n.so.24
|
|
|
|
/usr/lib/libicui18n.so.24.0
|
|
|
|
/usr/lib/libicutoolutil.so.24
|
|
|
|
/usr/lib/libicutoolutil.so.24.0
|
|
|
|
/usr/lib/libicuuc.so.24
|
|
|
|
/usr/lib/libicuuc.so.24.0
|
|
|
|
/usr/lib/libicudata.so.24
|
|
|
|
/usr/lib/libicudata.so.24.0
|
|
|
|
/usr/lib/libustdio.so.24
|
|
|
|
/usr/lib/libustdio.so.24.0
|
2000-10-20 05:28:49 +00:00
|
|
|
|
|
|
|
%files -n libicu-devel
|
|
|
|
%doc readme.html
|
|
|
|
%doc license.html
|
2002-09-16 18:59:34 +00:00
|
|
|
/usr/lib/libicuctestfw.so
|
|
|
|
/usr/lib/libicuctestfw.a
|
2002-12-27 21:46:57 +00:00
|
|
|
/usr/lib/libicuctestfw.so.24
|
|
|
|
/usr/lib/libicuctestfw.so.24.0
|
2002-09-16 18:59:34 +00:00
|
|
|
|
2000-10-20 05:28:49 +00:00
|
|
|
/usr/lib/libicui18n.so
|
|
|
|
/usr/lib/libicui18n.a
|
|
|
|
/usr/lib/libicuuc.so
|
|
|
|
/usr/lib/libicuuc.a
|
|
|
|
/usr/lib/libicutoolutil.so
|
|
|
|
/usr/lib/libicutoolutil.a
|
|
|
|
/usr/lib/libustdio.so
|
|
|
|
/usr/lib/libustdio.a
|
2002-09-27 23:37:59 +00:00
|
|
|
/usr/lib/libicudata.so
|
|
|
|
/usr/lib/libicudata.a
|
2002-09-16 18:59:34 +00:00
|
|
|
/usr/include/unicode/*.h
|
2002-12-27 21:46:57 +00:00
|
|
|
/usr/lib/icu/2.4/Makefile.inc
|
2000-10-25 22:27:24 +00:00
|
|
|
/usr/lib/icu/Makefile.inc
|
2002-12-27 21:46:57 +00:00
|
|
|
/usr/share/icu/2.4/config
|
|
|
|
/usr/share/icu/2.4/README
|
|
|
|
/usr/share/doc/icu-2.4/*
|
2000-10-20 05:28:49 +00:00
|
|
|
|
2002-09-16 18:59:34 +00:00
|
|
|
%changelog
|
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
|
|
|
|