12e5b6d6dSopenharmony_ci# Copyright (C) 2016 and later: Unicode, Inc. and others.
22e5b6d6dSopenharmony_ci# License & terms of use: http://www.unicode.org/copyright.html
32e5b6d6dSopenharmony_ci#   Copyright (C) 2000-2005, International Business Machines
42e5b6d6dSopenharmony_ci#   Corporation and others.  All Rights Reserved.
52e5b6d6dSopenharmony_ci#
62e5b6d6dSopenharmony_ci# RPM specification file for ICU.
72e5b6d6dSopenharmony_ci#
82e5b6d6dSopenharmony_ci# Neal Probert <nprobert@walid.com> is the current maintainer.
92e5b6d6dSopenharmony_ci# Yves Arrouye <yves@realnames.com> is the original author.
102e5b6d6dSopenharmony_ci
112e5b6d6dSopenharmony_ci# This file can be freely redistributed under the same license as ICU.
122e5b6d6dSopenharmony_ci
132e5b6d6dSopenharmony_ciName: icu
142e5b6d6dSopenharmony_ciVersion: 3.4
152e5b6d6dSopenharmony_ciRelease: 1
162e5b6d6dSopenharmony_ciRequires: libicu34 >= %{version}
172e5b6d6dSopenharmony_ciSummary: International Components for Unicode
182e5b6d6dSopenharmony_ciPackager: Ian Holsman (CNET Networks) <ianh@cnet.com>
192e5b6d6dSopenharmony_ciCopyright: X License
202e5b6d6dSopenharmony_ciGroup: System Environment/Libraries
212e5b6d6dSopenharmony_ciSource: icu-%{version}.tgz
222e5b6d6dSopenharmony_ciBuildRoot: /var/tmp/%{name}-%{version}
232e5b6d6dSopenharmony_ci%description
242e5b6d6dSopenharmony_ciICU is a set of C and C++ libraries that provides robust and full-featured
252e5b6d6dSopenharmony_ciUnicode and locale support. The library provides calendar support, conversions
262e5b6d6dSopenharmony_cifor many character sets, language sensitive collation, date
272e5b6d6dSopenharmony_ciand time formatting, support for many locales, message catalogs
282e5b6d6dSopenharmony_ciand resources, message formatting, normalization, number and currency
292e5b6d6dSopenharmony_ciformatting, time zones support, transliteration, word, line and
302e5b6d6dSopenharmony_cisentence breaking, etc.
312e5b6d6dSopenharmony_ci
322e5b6d6dSopenharmony_ciThis package contains the Unicode character database and derived
332e5b6d6dSopenharmony_ciproperties, along with converters and time zones data.
342e5b6d6dSopenharmony_ci
352e5b6d6dSopenharmony_ciThis package contains the runtime libraries for ICU. It does
362e5b6d6dSopenharmony_cinot contain any of the data files needed at runtime and present in the
372e5b6d6dSopenharmony_ci`icu' and `icu-locales` packages.
382e5b6d6dSopenharmony_ci
392e5b6d6dSopenharmony_ci%package -n libicu34
402e5b6d6dSopenharmony_ciSummary: International Components for Unicode (libraries)
412e5b6d6dSopenharmony_ciGroup: Development/Libraries
422e5b6d6dSopenharmony_ci%description -n libicu34
432e5b6d6dSopenharmony_ciICU is a set of C and C++ libraries that provides robust and full-featured
442e5b6d6dSopenharmony_ciUnicode support. This package contains the runtime libraries for ICU. It does
452e5b6d6dSopenharmony_cinot contain any of the data files needed at runtime and present in the
462e5b6d6dSopenharmony_ci`icu' and `icu-locales` packages.
472e5b6d6dSopenharmony_ci
482e5b6d6dSopenharmony_ci%package -n libicu-devel
492e5b6d6dSopenharmony_ciSummary: International Components for Unicode (development files)
502e5b6d6dSopenharmony_ciGroup: Development/Libraries
512e5b6d6dSopenharmony_ciRequires: libicu34 = %{version}
522e5b6d6dSopenharmony_ci%description -n libicu-devel
532e5b6d6dSopenharmony_ciICU is a set of C and C++ libraries that provides robust and full-featured
542e5b6d6dSopenharmony_ciUnicode support. This package contains the development files for ICU.
552e5b6d6dSopenharmony_ci
562e5b6d6dSopenharmony_ci%package locales
572e5b6d6dSopenharmony_ciSummary: Locale data for ICU
582e5b6d6dSopenharmony_ciGroup: System Environment/Libraries
592e5b6d6dSopenharmony_ciRequires: libicu34 >= %{version}
602e5b6d6dSopenharmony_ci%description locales
612e5b6d6dSopenharmony_ciThe locale data are used by ICU to provide localization (l10n), 
622e5b6d6dSopenharmony_ciinternationalization (i18n) and timezone support to ICU applications.
632e5b6d6dSopenharmony_ciThis package also contains break data for various languages,
642e5b6d6dSopenharmony_ciand transliteration data.
652e5b6d6dSopenharmony_ci
662e5b6d6dSopenharmony_ci%post
672e5b6d6dSopenharmony_ci# Adjust the current ICU link in /usr/lib/icu
682e5b6d6dSopenharmony_ci
692e5b6d6dSopenharmony_ciicucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
702e5b6d6dSopenharmony_cicd /usr/lib/icu
712e5b6d6dSopenharmony_cirm -f /usr/lib/icu/current
722e5b6d6dSopenharmony_ciif test x"$icucurrent" != x
732e5b6d6dSopenharmony_cithen
742e5b6d6dSopenharmony_ci    ln -s "$icucurrent" current
752e5b6d6dSopenharmony_cifi
762e5b6d6dSopenharmony_ci
772e5b6d6dSopenharmony_ci#ICU_DATA=/usr/share/icu/%{version}
782e5b6d6dSopenharmony_ci#export ICU_DATA
792e5b6d6dSopenharmony_ci
802e5b6d6dSopenharmony_ci%preun
812e5b6d6dSopenharmony_ci# Adjust the current ICU link in /usr/lib/icu
822e5b6d6dSopenharmony_ci
832e5b6d6dSopenharmony_ciicucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/%{version}\//d' -e 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
842e5b6d6dSopenharmony_cicd /usr/lib/icu
852e5b6d6dSopenharmony_cirm -f /usr/lib/icu/current
862e5b6d6dSopenharmony_ciif test x"$icucurrent" != x
872e5b6d6dSopenharmony_cithen
882e5b6d6dSopenharmony_ci    ln -s "$icucurrent" current
892e5b6d6dSopenharmony_cifi
902e5b6d6dSopenharmony_ci
912e5b6d6dSopenharmony_ci%post -n libicu34
922e5b6d6dSopenharmony_cildconfig
932e5b6d6dSopenharmony_ci
942e5b6d6dSopenharmony_ci# Adjust the current ICU link in /usr/lib/icu
952e5b6d6dSopenharmony_ci
962e5b6d6dSopenharmony_ciicucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
972e5b6d6dSopenharmony_cicd /usr/lib/icu
982e5b6d6dSopenharmony_cirm -f /usr/lib/icu/current
992e5b6d6dSopenharmony_ciif test x"$icucurrent" != x
1002e5b6d6dSopenharmony_cithen
1012e5b6d6dSopenharmony_ci    ln -s "$icucurrent" current
1022e5b6d6dSopenharmony_cifi
1032e5b6d6dSopenharmony_ci
1042e5b6d6dSopenharmony_ci%preun -n libicu34
1052e5b6d6dSopenharmony_ci# Adjust the current ICU link in /usr/lib/icu
1062e5b6d6dSopenharmony_ci
1072e5b6d6dSopenharmony_ciicucurrent=`2>/dev/null ls -dp /usr/lib/icu/* | sed -n -e '/\/%{version}\//d' -e 's,.*/\([^/]*\)/$,\1,p'| sort -rn | head -1`
1082e5b6d6dSopenharmony_cicd /usr/lib/icu
1092e5b6d6dSopenharmony_cirm -f /usr/lib/icu/current
1102e5b6d6dSopenharmony_ciif test x"$icucurrent" != x
1112e5b6d6dSopenharmony_cithen
1122e5b6d6dSopenharmony_ci    ln -s "$icucurrent" current
1132e5b6d6dSopenharmony_cifi
1142e5b6d6dSopenharmony_ci
1152e5b6d6dSopenharmony_ci%prep
1162e5b6d6dSopenharmony_ci%setup -q -n icu
1172e5b6d6dSopenharmony_ci
1182e5b6d6dSopenharmony_ci%build
1192e5b6d6dSopenharmony_cicd source
1202e5b6d6dSopenharmony_cichmod a+x ./configure
1212e5b6d6dSopenharmony_ciCFLAGS="-O3" CXXFLAGS="-O" ./configure --prefix=/usr --sysconfdir=/etc --with-data-packaging=files --enable-shared --enable-static --disable-samples
1222e5b6d6dSopenharmony_ciecho 'CPPFLAGS += -DICU_DATA_DIR=\"/usr/share/icu/%{version}\"' >> icudefs.mk
1232e5b6d6dSopenharmony_cimake RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
1242e5b6d6dSopenharmony_ci
1252e5b6d6dSopenharmony_ci%install
1262e5b6d6dSopenharmony_cirm -rf $RPM_BUILD_ROOT
1272e5b6d6dSopenharmony_cicd source
1282e5b6d6dSopenharmony_cimake install DESTDIR=$RPM_BUILD_ROOT
1292e5b6d6dSopenharmony_ci
1302e5b6d6dSopenharmony_ci%files
1312e5b6d6dSopenharmony_ci%defattr(-,root,root)
1322e5b6d6dSopenharmony_ci%doc readme.html
1332e5b6d6dSopenharmony_ci%doc license.html
1342e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/license.html
1352e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/icudt34l/*.cnv
1362e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/icudt34l/*.icu
1372e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/icudt34l/*.spp
1382e5b6d6dSopenharmony_ci
1392e5b6d6dSopenharmony_ci/usr/bin/derb
1402e5b6d6dSopenharmony_ci/usr/bin/genbrk
1412e5b6d6dSopenharmony_ci/usr/bin/gencnval
1422e5b6d6dSopenharmony_ci/usr/bin/genrb
1432e5b6d6dSopenharmony_ci/usr/bin/icu-config
1442e5b6d6dSopenharmony_ci/usr/bin/makeconv
1452e5b6d6dSopenharmony_ci/usr/bin/pkgdata
1462e5b6d6dSopenharmony_ci/usr/bin/uconv
1472e5b6d6dSopenharmony_ci
1482e5b6d6dSopenharmony_ci/usr/sbin/decmn
1492e5b6d6dSopenharmony_ci/usr/sbin/genccode
1502e5b6d6dSopenharmony_ci/usr/sbin/gencmn
1512e5b6d6dSopenharmony_ci/usr/sbin/gensprep
1522e5b6d6dSopenharmony_ci/usr/sbin/genuca
1532e5b6d6dSopenharmony_ci/usr/sbin/icuswap
1542e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/mkinstalldirs
1552e5b6d6dSopenharmony_ci
1562e5b6d6dSopenharmony_ci/usr/man/man1/derb.1.*
1572e5b6d6dSopenharmony_ci/usr/man/man1/gencnval.1.*
1582e5b6d6dSopenharmony_ci/usr/man/man1/genrb.1.*
1592e5b6d6dSopenharmony_ci/usr/man/man1/icu-config.1.*
1602e5b6d6dSopenharmony_ci/usr/man/man1/makeconv.1.*
1612e5b6d6dSopenharmony_ci/usr/man/man1/pkgdata.1.*
1622e5b6d6dSopenharmony_ci/usr/man/man1/uconv.1.*
1632e5b6d6dSopenharmony_ci/usr/man/man8/decmn.8.*
1642e5b6d6dSopenharmony_ci/usr/man/man8/genccode.8.*
1652e5b6d6dSopenharmony_ci/usr/man/man8/gencmn.8.*
1662e5b6d6dSopenharmony_ci/usr/man/man8/gensprep.8.*
1672e5b6d6dSopenharmony_ci/usr/man/man8/genuca.8.*
1682e5b6d6dSopenharmony_ci
1692e5b6d6dSopenharmony_ci%files -n icu-locales
1702e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/icudt34l/*.brk
1712e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/icudt34l/*.res
1722e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/icudt34l/coll/*.res
1732e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/icudt34l/rbnf/*.res
1742e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/icudt34l/translit/*.res
1752e5b6d6dSopenharmony_ci
1762e5b6d6dSopenharmony_ci%files -n libicu34
1772e5b6d6dSopenharmony_ci%doc license.html
1782e5b6d6dSopenharmony_ci/usr/lib/libicui18n.so.34
1792e5b6d6dSopenharmony_ci/usr/lib/libicui18n.so.34.0
1802e5b6d6dSopenharmony_ci/usr/lib/libicutu.so.34
1812e5b6d6dSopenharmony_ci/usr/lib/libicutu.so.34.0
1822e5b6d6dSopenharmony_ci/usr/lib/libicuuc.so.34
1832e5b6d6dSopenharmony_ci/usr/lib/libicuuc.so.34.0
1842e5b6d6dSopenharmony_ci/usr/lib/libicudata.so.34
1852e5b6d6dSopenharmony_ci/usr/lib/libicudata.so.34.0
1862e5b6d6dSopenharmony_ci/usr/lib/libicuio.so.34
1872e5b6d6dSopenharmony_ci/usr/lib/libicuio.so.34.0
1882e5b6d6dSopenharmony_ci/usr/lib/libiculx.so.34
1892e5b6d6dSopenharmony_ci/usr/lib/libiculx.so.34.0
1902e5b6d6dSopenharmony_ci/usr/lib/libicule.so.34
1912e5b6d6dSopenharmony_ci/usr/lib/libicule.so.34.0
1922e5b6d6dSopenharmony_ci
1932e5b6d6dSopenharmony_ci%files -n libicu-devel
1942e5b6d6dSopenharmony_ci%doc readme.html
1952e5b6d6dSopenharmony_ci%doc license.html
1962e5b6d6dSopenharmony_ci/usr/lib/libicui18n.so
1972e5b6d6dSopenharmony_ci/usr/lib/libsicui18n.a
1982e5b6d6dSopenharmony_ci/usr/lib/libicuuc.so
1992e5b6d6dSopenharmony_ci/usr/lib/libsicuuc.a
2002e5b6d6dSopenharmony_ci/usr/lib/libicutu.so
2012e5b6d6dSopenharmony_ci/usr/lib/libsicutu.a
2022e5b6d6dSopenharmony_ci/usr/lib/libicuio.so
2032e5b6d6dSopenharmony_ci/usr/lib/libsicuio.a
2042e5b6d6dSopenharmony_ci/usr/lib/libicudata.so
2052e5b6d6dSopenharmony_ci/usr/lib/libsicudata.a
2062e5b6d6dSopenharmony_ci/usr/lib/libicule.so
2072e5b6d6dSopenharmony_ci/usr/lib/libsicule.a
2082e5b6d6dSopenharmony_ci/usr/lib/libiculx.so
2092e5b6d6dSopenharmony_ci/usr/lib/libsiculx.a
2102e5b6d6dSopenharmony_ci/usr/include/unicode/*.h
2112e5b6d6dSopenharmony_ci/usr/include/layout/*.h
2122e5b6d6dSopenharmony_ci/usr/lib/icu/%{version}/Makefile.inc
2132e5b6d6dSopenharmony_ci/usr/lib/icu/Makefile.inc
2142e5b6d6dSopenharmony_ci/usr/share/icu/%{version}/config
2152e5b6d6dSopenharmony_ci/usr/share/doc/icu-%{version}/*
2162e5b6d6dSopenharmony_ci
2172e5b6d6dSopenharmony_ci%changelog
2182e5b6d6dSopenharmony_ci* Mon Jun 07 2004 Alexei Dets <adets@idsk.com>
2192e5b6d6dSopenharmony_ci- update to 3.0
2202e5b6d6dSopenharmony_ci* Tue Aug 16 2003 Steven Loomis <srl@jtcsv.com>
2212e5b6d6dSopenharmony_ci- update to 2.6.1 - include license
2222e5b6d6dSopenharmony_ci* Thu Jun 05 2003 Steven Loomis <srl@jtcsv.com>
2232e5b6d6dSopenharmony_ci- Update to 2.6
2242e5b6d6dSopenharmony_ci* Fri Dec 27 2002 Steven Loomis <srl@jtcsv.com>
2252e5b6d6dSopenharmony_ci- Update to 2.4 spec
2262e5b6d6dSopenharmony_ci* Fri Sep 27 2002 Steven Loomis <srl@jtcsv.com>
2272e5b6d6dSopenharmony_ci- minor updates to 2.2 spec. Rpath is off by default, don't pass it as an option.
2282e5b6d6dSopenharmony_ci* Mon Sep 16 2002 Ian Holsman <ian@holsman.net> 
2292e5b6d6dSopenharmony_ci- update to icu 2.2
2302e5b6d6dSopenharmony_ci
231