1# Copyright (C) 2000-2005, International Business Machines 2# Corporation and others. All Rights Reserved. 3# 4# RPM specification file for ICU. 5# 6# Neal Probert <nprobert@walid.com> is the current maintainer. 7# Yves Arrouye <yves@realnames.com> is the original author. 8 9# This file can be freely redistributed under the same license as ICU. 10 11Name: icu 12Version: 3.4 13Release: 1 14Requires: libicu34 >= %{version} 15Summary: International Components for Unicode 16Packager: Ian Holsman (CNET Networks) <ianh@cnet.com> 17Copyright: X License 18Group: System Environment/Libraries 19Source: icu-%{version}.tgz 20BuildRoot: /var/tmp/%{name}-%{version} 21%description 22ICU is a set of C and C++ libraries that provides robust and full-featured 23Unicode and locale support. The library provides calendar support, conversions 24for many character sets, language sensitive collation, date 25and time formatting, support for many locales, message catalogs 26and resources, message formatting, normalization, number and currency 27formatting, time zones support, transliteration, word, line and 28sentence breaking, etc. 29 30This package contains the Unicode character database and derived 31properties, along with converters and time zones data. 32 33This package contains the runtime libraries for ICU. It does 34not contain any of the data files needed at runtime and present in the 35`icu' and `icu-locales` packages. 36 37%package -n libicu34 38Summary: International Components for Unicode (libraries) 39Group: Development/Libraries 40%description -n libicu34 41ICU is a set of C and C++ libraries that provides robust and full-featured 42Unicode support. This package contains the runtime libraries for ICU. It does 43not contain any of the data files needed at runtime and present in the 44`icu' and `icu-locales` packages. 45 46%package -n libicu-devel 47Summary: International Components for Unicode (development files) 48Group: Development/Libraries 49Requires: libicu34 = %{version} 50%description -n libicu-devel 51ICU is a set of C and C++ libraries that provides robust and full-featured 52Unicode support. This package contains the development files for ICU. 53 54%package locales 55Summary: Locale data for ICU 56Group: System Environment/Libraries 57Requires: libicu34 >= %{version} 58%description locales 59The locale data are used by ICU to provide localization (l10n), 60internationalization (i18n) and timezone support to ICU applications. 61This package also contains break data for various languages, 62and transliteration data. 63 64%post 65# Adjust the current ICU link in /usr/lib/icu 66 67icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1` 68cd /usr/lib/icu 69rm -f /usr/lib/icu/current 70if test x"$icucurrent" != x 71then 72 ln -s "$icucurrent" current 73fi 74 75#ICU_DATA=/usr/share/icu/%{version} 76#export ICU_DATA 77 78%preun 79# Adjust the current ICU link in /usr/lib/icu 80 81icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/%{version}\//d' -e 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1` 82cd /usr/lib/icu 83rm -f /usr/lib/icu/current 84if test x"$icucurrent" != x 85then 86 ln -s "$icucurrent" current 87fi 88 89%post -n libicu34 90ldconfig 91 92# Adjust the current ICU link in /usr/lib/icu 93 94icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1` 95cd /usr/lib/icu 96rm -f /usr/lib/icu/current 97if test x"$icucurrent" != x 98then 99 ln -s "$icucurrent" current 100fi 101 102%preun -n libicu34 103# Adjust the current ICU link in /usr/lib/icu 104 105icucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/%{version}\//d' -e 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1` 106cd /usr/lib/icu 107rm -f /usr/lib/icu/current 108if test x"$icucurrent" != x 109then 110 ln -s "$icucurrent" current 111fi 112 113%prep 114%setup -q -n icu 115 116%build 117cd source 118chmod a+x ./configure 119CFLAGS="-O3" CXXFLAGS="-O" ./configure --prefix=/usr --sysconfdir=/etc --with-data-packaging=files --enable-shared --enable-static --disable-samples 120echo 'CPPFLAGS += -DICU_DATA_DIR=\"/usr/share/icu/%{version}\"' >> icudefs.mk 121make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" 122 123%install 124rm -rf $RPM_BUILD_ROOT 125cd source 126make install DESTDIR=$RPM_BUILD_ROOT 127 128%files 129%defattr(-,root,root) 130%doc readme.html 131%doc license.html 132/usr/share/icu/%{version}/license.html 133/usr/share/icu/%{version}/icudt34l/*.cnv 134/usr/share/icu/%{version}/icudt34l/*.icu 135/usr/share/icu/%{version}/icudt34l/*.spp 136 137/usr/bin/derb 138/usr/bin/genbrk 139/usr/bin/gencnval 140/usr/bin/genrb 141/usr/bin/icu-config 142/usr/bin/makeconv 143/usr/bin/pkgdata 144/usr/bin/uconv 145 146/usr/sbin/decmn 147/usr/sbin/genccode 148/usr/sbin/gencmn 149/usr/sbin/gensprep 150/usr/sbin/genuca 151/usr/sbin/icuswap 152/usr/share/icu/%{version}/mkinstalldirs 153 154/usr/man/man1/derb.1.* 155/usr/man/man1/gencnval.1.* 156/usr/man/man1/genrb.1.* 157/usr/man/man1/icu-config.1.* 158/usr/man/man1/makeconv.1.* 159/usr/man/man1/pkgdata.1.* 160/usr/man/man1/uconv.1.* 161/usr/man/man8/decmn.8.* 162/usr/man/man8/genccode.8.* 163/usr/man/man8/gencmn.8.* 164/usr/man/man8/gensprep.8.* 165/usr/man/man8/genuca.8.* 166 167%files -n icu-locales 168/usr/share/icu/%{version}/icudt34l/*.brk 169/usr/share/icu/%{version}/icudt34l/*.res 170/usr/share/icu/%{version}/icudt34l/coll/*.res 171/usr/share/icu/%{version}/icudt34l/rbnf/*.res 172/usr/share/icu/%{version}/icudt34l/translit/*.res 173 174%files -n libicu34 175%doc license.html 176/usr/lib/libicui18n.so.34 177/usr/lib/libicui18n.so.34.0 178/usr/lib/libicutu.so.34 179/usr/lib/libicutu.so.34.0 180/usr/lib/libicuuc.so.34 181/usr/lib/libicuuc.so.34.0 182/usr/lib/libicudata.so.34 183/usr/lib/libicudata.so.34.0 184/usr/lib/libicuio.so.34 185/usr/lib/libicuio.so.34.0 186/usr/lib/libiculx.so.34 187/usr/lib/libiculx.so.34.0 188/usr/lib/libicule.so.34 189/usr/lib/libicule.so.34.0 190 191%files -n libicu-devel 192%doc readme.html 193%doc license.html 194/usr/lib/libicui18n.so 195/usr/lib/libsicui18n.a 196/usr/lib/libicuuc.so 197/usr/lib/libsicuuc.a 198/usr/lib/libicutu.so 199/usr/lib/libsicutu.a 200/usr/lib/libicuio.so 201/usr/lib/libsicuio.a 202/usr/lib/libicudata.so 203/usr/lib/libsicudata.a 204/usr/lib/libicule.so 205/usr/lib/libsicule.a 206/usr/lib/libiculx.so 207/usr/lib/libsiculx.a 208/usr/include/unicode/*.h 209/usr/include/layout/*.h 210/usr/lib/icu/%{version}/Makefile.inc 211/usr/lib/icu/Makefile.inc 212/usr/share/icu/%{version}/config 213/usr/share/doc/icu-%{version}/* 214 215%changelog 216* Mon Jun 07 2004 Alexei Dets <adets@idsk.com> 217- update to 3.0 218* Tue Aug 16 2003 Steven Loomis <srl@jtcsv.com> 219- update to 2.6.1 - include license 220* Thu Jun 05 2003 Steven Loomis <srl@jtcsv.com> 221- Update to 2.6 222* Fri Dec 27 2002 Steven Loomis <srl@jtcsv.com> 223- Update to 2.4 spec 224* Fri Sep 27 2002 Steven Loomis <srl@jtcsv.com> 225- minor updates to 2.2 spec. Rpath is off by default, don't pass it as an option. 226* Mon Sep 16 2002 Ian Holsman <ian@holsman.net> 227- update to icu 2.2 228 229