2007-01-16 00:17:07 +01:00
#
2008-09-13 02:21:47 +02:00
# spec file for package icu (Version 4.0)
2007-01-16 00:17:07 +01:00
#
2009-03-03 00:27:52 +01:00
# Copyright (c) 2009 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/
#
# norootforbuild
2008-02-15 01:23:22 +01:00
2007-01-16 00:17:07 +01:00
Name : icu
BuildRequires : gcc-c++
2008-04-10 14:19:15 +02:00
License : X11/MIT
2007-01-16 00:17:07 +01:00
Group : System/Libraries
2008-02-08 19:26:21 +01:00
AutoReqProv : on
2008-09-13 02:21:47 +02:00
Version : 4.0
2009-04-02 17:31:42 +02:00
Release : 9
2007-01-16 00:17:07 +01:00
Requires : libicu = %{version}
2008-02-08 19:26:21 +01:00
Url : http://ibm.com/software/globalization/icu
2008-09-13 02:21:47 +02:00
Source0 : icu4c-4_0-src.tar.bz2
Source1 : icu4c-4_0-docs.tar.bz2
2007-01-16 00:17:07 +01:00
Source3 : SuSEconfig.icu
2008-10-11 17:21:51 +02:00
# PATCH-FIX-UPSTREAM icu4c-3_6-src-setBreakType-public.diff -- OOo-2.3.1 and above needs to access the setBreakType method, see http://bugs.icu-project.org/trac/ticket/5498
2008-02-08 19:26:21 +01:00
Patch : icu4c-3_6-src-setBreakType-public.diff
2009-03-03 00:27:52 +01:00
Patch1 : icu-gcc44.patch
2009-04-02 17:31:42 +02:00
# PATCH-FIX-OPENSUSE icu-remove-datetime.patch vuntz@novell.com -- Do not put date/time in icu-config (needed for build-compare)
Patch2 : icu-remove-datetime.patch
2007-01-16 00:17:07 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
Summary : International Components for Unicode
%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.
Authors:
--------
The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com>
%package -n libicu
2008-04-10 14:19:15 +02:00
License : IBM Public License
2007-01-16 00:17:07 +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
#
2007-01-16 00:17:07 +01:00
Provides : libicu17 libicu22 libicu26 libicu30 libicu32 libicu34
Obsoletes : libicu17 libicu22 libicu26 libicu30 libicu32 libicu34 icu-i18ndata
%description -n libicu
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 not contain any of the data files needed at
runtime and present in the `icu' and `icu-locales` packages.
Authors:
--------
The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com>
%package -n libicu-devel
2008-04-10 14:19:15 +02:00
License : IBM Public License
2007-01-16 00:17:07 +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-devel-64bit
%endif
#
2007-01-16 00:17:07 +01:00
Requires : libicu = %{version}
%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.
Authors:
--------
The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com>
%package -n libicu-doc
2008-04-10 14:19:15 +02:00
License : IBM Public License
2007-01-16 00:17:07 +01:00
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.
Authors:
--------
The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com>
%package -n icu-data
2008-04-10 14:19:15 +02:00
License : IBM Public License
2007-01-16 00:17:07 +01:00
Summary : International Components for Unicode (Sources for the Data in ICU)
Group : System/Libraries
Requires : libicu >= %{version}
%description -n icu-data
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 " i c u " 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
the `libicu%{version} ' package.
Authors:
--------
The ICU project, International Business Machines (IBM) and Others. <icu@oss.software.ibm.com>
%prep
%setup -q -n icu -a1
2008-02-08 19:26:21 +01:00
%patch
2009-03-03 00:27:52 +01:00
%patch1
2009-04-02 17:31:42 +02:00
%patch2 -p1
2007-01-16 00:17:07 +01:00
%build
cd source
rm -f config.cache
%{?suse_update_config:%{suse_update_config -f }}
export CFLAGS=" $RPM_OPT_FLAGS - f n o - s t r i c t - a l i a s i n g "
export CXXFLAGS=" $RPM_OPT_FLAGS - f n o - s t r i c t - a l i a s i n g "
2008-09-13 02:21:47 +02:00
export CXXFLAGS=" $ C X X F L A G S - D I C U _ D A T A _ D I R = ' / u s r / s h a r e / i c u / 4 . 0 / ' "
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
%{__make} %{?jobs:-j%jobs}
2007-01-16 00:17:07 +01:00
%install
find . -name CVS -type d | xargs rm -rf
cd source
make DESTDIR=$RPM_BUILD_ROOT install
# to extract debug info
chmod a+rx $RPM_BUILD_ROOT %{_libdir} /*.so.*
# install uncompiled source data:
mkdir -p $RPM_BUILD_ROOT /usr/share/icu/%{version} /unidata
2008-02-15 01:23:22 +01:00
install -m 644 data/unidata/*.txt $RPM_BUILD_ROOT /%{_datadir} /icu/%{version} /unidata
ln -s unidata/UnicodeData.txt $RPM_BUILD_ROOT /%{_datadir} /icu/%{version} /
2007-01-16 00:17:07 +01:00
# run test suite:
#pushd data
#ln -sf build/*.cnv build/*.res build/*.dat build/*.brk .
#popd
#make check || echo "make check returned $?, ignored."
#popd
mkdir -p $RPM_BUILD_ROOT /sbin/conf.d/
sed -e " s / @ I C U V E R S I O N @ / %{version} / g " < ${RPM_SOURCE_DIR} /SuSEconfig.icu > ./SuSEconfig.icu
install -m 755 ./SuSEconfig.icu $RPM_BUILD_ROOT /sbin/conf.d/
2008-02-15 01:23:22 +01:00
rm $RPM_BUILD_ROOT /%{_datadir} /icu/%{version} /license.html
rm $RPM_BUILD_ROOT /%{_datadir} /icu/%{version} /install-sh
2007-01-16 00:17:07 +01:00
%clean
rm -rf $RPM_BUILD_ROOT
2008-02-15 01:23:22 +01:00
%post -n libicu -p /sbin/ldconfig
2007-01-16 00:17:07 +01:00
2008-02-15 01:23:22 +01:00
%postun -n libicu -p /sbin/ldconfig
2007-01-16 00:17:07 +01:00
%files
%defattr (-, root, root)
%doc license.html readme.html
%dir %{_libdir} /icu/
%dir %{_libdir} /icu/%{version}
%{_libdir} /icu/current
/usr/bin/derb
/usr/bin/genbrk
/usr/bin/gencnval
/usr/bin/genrb
2007-07-27 01:44:36 +02:00
/usr/bin/genctd
2007-01-16 00:17:07 +01:00
/usr/bin/makeconv
/usr/bin/pkgdata
/usr/bin/uconv
/usr/sbin/*
%{_mandir} /*/*
/sbin/conf.d/SuSEconfig.icu
%files -n libicu
%defattr (-, root, root)
%attr (755, root, root) %{_libdir} /lib*.so.*
%files -n libicu-devel
%defattr (-, root, root)
%{_libdir} /lib*.so
/usr/include/unicode/
/usr/include/layout/
%{_libdir} /icu/%{version} /Makefile.inc
%{_libdir} /icu/Makefile.inc
/usr/bin/icu-config
%dir /usr/share/icu
%dir /usr/share/icu/%{version}
/usr/share/icu/%{version} /mkinstalldirs
/usr/share/icu/%{version} /config/
%files -n libicu-doc
%defattr (-, root, root)
%doc html/
%doc packaging/
%files -n icu-data
%defattr (-, root, root)
%dir /usr/share/icu/%{version} /unidata
/usr/share/icu/%{version} /unidata/*
/usr/share/icu/%{version} /UnicodeData.txt
2007-07-27 01:44:36 +02:00
%changelog
2009-04-02 17:31:42 +02:00
* Sat Mar 28 2009 vuntz@novell.com
- Add icu-remove-datetime.patch to be more build-compare friendly.
2009-03-03 00:27:52 +01:00
* Mon Mar 02 2009 crrodriguez@suse.de
- fix build with GCC 4.4
- remove static libraries
2008-12-15 12:41:50 +01:00
* Wed Dec 10 2008 olh@suse.de
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
(bnc#437293)
2008-11-02 15:46:17 +01:00
* Thu Oct 30 2008 olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
2008-10-11 17:21:51 +02:00
* Sat Sep 13 2008 vuntz@novell.com
- Merge with openSUSE:Factory. Redo the patch tags that were done
by jpr@novell.com
2008-12-15 12:41:50 +01:00
* Fri Sep 05 2008 maw@suse.de
2008-09-13 02:21:47 +02:00
- Update to version 4.0:
(All of the bug numbers listed are against
http://bugs.icu-project.org/trac)
+ Update to Unicode 5.1 (#5696)
+ Locale Data: ICU uses and supports data from Common Locale Data
Repository (CLDR) 1.6, which includes many improvements in
quality and quantity of data
+ Add/removeLikelySubtags (#6124)
+ Charset converter file size improvement (#5987)
+ Date Interval Formatting (#6157) Note: Calendar type supported
by this feature is Gregorian only in this release
+ Improved Plural support
+ Additional calendars: Chinese (#4081) and Coptic/Ethiopic
(#4571)
+ Security fixes for CVE-2007-4770, CVE-2007-4771, and
CVE-2008-1036.
- Drop libicu-regex.patch, which has been upstreamed.
2008-04-10 14:19:15 +02:00
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
2008-02-15 01:23:22 +01:00
* Wed Feb 13 2008 maw@suse.de
- Update to version 3.8:
+ Locale Data: ICU uses and supports data from Common Locale Data
Repository (CLDR) 1.5.0.1, which includes many improvements in
quality and quantity of data.
+ Rule Based Time Zone: This set of classes provides the ability
to read and write time zone data in RFC2445 VTIMEZONE format.
This also provides access Olson timezone transitions.
+ Timezone Formatting: This has changed to give more human
readable results.
+ Relative Date/Time Formatting: A draft of the relative date/time
format class has been added. This functionality can be accessed
through the DateFormat::createDateInstance or DateFormat.getInstance
factory method. It provides the ability to format localized dates
in terms of " y e s t e r d a y " , " t o d a y " and " t o m o r r o w " , instead of a
specific only date or time.
+ Demonstrations and Tools
* ICU Data Library Customizer: This new online tool provides an
easier way customize ICU's data.
* ICU4J Demonstrations: These will demonstrate some features of
ICU4J, like calendars, transliteration, and several other
features.
+ Flexible Date/Time Formatting: A draft of flexible date/time
format generator has been added. This allows multiple date and
time format patterns to be generated that are valid for specific
locales. This funtionality can be accessed through the
DateTimePatternGenerator API.
+ Time Zones: The default time zone is detected more accurately
on Unix machines.
+ Additional Calendars
* @calendar=taiwan: This calendar is a variant of the Gregorian
calendar used in Taiwan.
* @calendar=indian: This is the Indian national calendar.
* @calendar=persian: This is the Persian calendar. It is also
known as the Jal<EFBFBD> li Calendar. It is used in several Arabic
countries.
+ UnicodeSet
* The Freezable design pattern is now supported, which can
improve performance for the contains() and span() methods
on frozen UnicodeSet objects.
* A span function was added for iterating through strings.
* The containsAll(string) and containsNone(string) now support
set strings, instead of only codepoints.
+ Performance
* Charset conversion performance has been enhanced. The
amount of improvement varies depending on the converter
being used and platform being used.
* Rule based transliterator construction performance has been
improved.
- s#%%run_ldconfig#/sbin/ldconfig# in libicu's %%post and %%postun
- add libicu-regex.patch (bnc#354372).
2008-02-08 19:26:21 +01:00
* Thu Feb 07 2008 pmladek@suse.cz
- made RuleBasedBreakIterator::setBreakType method pubclic; it was requested by
OpenOffice_org >= 2.3.1, see http://bugs.icu-project.org/trac/ticket/5498
* Wed Jul 25 2007 pmladek@suse.cz
2007-07-27 01:44:36 +02:00
- Updated to version 3.6
* supports Unicode 5.0
* supports data from Common Locale Data Repository (CLDR) 1.4
* charset detection framework was added
* font layout engine has support added for Tibetan, Sinhala and Old Hangul
* BiDi algorithm was enhanced to be more flexible and efficient
* new icupkg tool provides an easier way to manage ICU's data library
* time zone data is modularized to allow easier building and updating of
the data
* BreakIterator uses UText for abstract text processing
* 64-bit indexing is now used to allow access to larger chunks of text
* added API for read-only locking for security and robustness
* lots performance improvements
2008-02-08 19:26:21 +01:00
* Mon Feb 13 2006 olh@suse.de
2007-01-16 00:17:07 +01:00
- mark libraries as executable to extract debuginfo
2008-02-08 19:26:21 +01:00
* Wed Jan 25 2006 mls@suse.de
2007-01-16 00:17:07 +01:00
- converted neededforbuild to BuildRequires
2008-02-08 19:26:21 +01:00
* Wed Aug 03 2005 sbrabec@suse.cz
2007-01-16 00:17:07 +01:00
- Updated to version 3.4.
2008-11-02 15:46:17 +01:00
* Mon Mar 28 2005 gekker@suse.de
2007-01-16 00:17:07 +01:00
- Move icu-config to libicu-devel package (8030).
2008-02-08 19:26:21 +01:00
* Mon Jan 10 2005 sbrabec@suse.cz
2007-01-16 00:17:07 +01:00
- Updated to version 3.2 (#49578).
Updated by Robert Schiele <rschiele@uni-mannheim.de>.
- Added -fno-strict-aliasing.
2008-02-08 19:26:21 +01:00
* Fri Nov 19 2004 ro@suse.de
2007-01-16 00:17:07 +01:00
- ignore return-code from strip call
2008-02-08 19:26:21 +01:00
* Tue May 25 2004 clahey@suse.de
2007-01-16 00:17:07 +01:00
- Removed --with-data-packaging=files. Fixes gtk-sharp compilation.
2008-02-08 19:26:21 +01:00
* Mon May 24 2004 clahey@suse.de
2007-01-16 00:17:07 +01:00
- Updated to 2.6.2.
2008-02-08 19:26:21 +01:00
* Wed Mar 31 2004 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- Bugzilla #37029: "strip --strip-debug" static libraries to save
space on the CDs.
2008-02-08 19:26:21 +01:00
* Fri Jan 23 2004 uli@suse.de
2007-01-16 00:17:07 +01:00
- removed --disable-rpath; it is unnecessary and breaks the
icu-config script
2008-02-08 19:26:21 +01:00
* Sat Jan 10 2004 adrian@suse.de
2007-01-16 00:17:07 +01:00
- add %%run_ldconfig
2008-02-08 19:26:21 +01:00
* Tue Sep 23 2003 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- Bugzilla #31665: "SuSEconfig.icu is not lib64 clean" fixed.
2008-02-08 19:26:21 +01:00
* Mon Aug 18 2003 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- update to 2.6.
2008-02-08 19:26:21 +01:00
* Mon Jun 16 2003 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- fix " d i r e c t o r y n o t o w n e d b y a n y p a c k a g e " .
2008-11-02 15:46:17 +01:00
* Fri May 16 2003 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- fix file list, remove CVS directories.
2008-02-08 19:26:21 +01:00
* Wed Sep 11 2002 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- /usr/sbin/gencnval is now in /usr/bin/gencnval.
Fix SuSEconfig.icu accordingly.
2008-02-08 19:26:21 +01:00
* Sat Aug 17 2002 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- update to 2.2
2008-02-08 19:26:21 +01:00
* Sun Aug 11 2002 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- add Provides: libicu17 to libicu21 subpackage
(to trigger the selection of the new package during update.)
2008-02-08 19:26:21 +01:00
* Fri Aug 09 2002 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- update to 2.1
2008-02-08 19:26:21 +01:00
* Tue Mar 12 2002 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- use %%{_libdir}
2008-02-08 19:26:21 +01:00
* Tue Mar 12 2002 kukuk@suse.de
2007-01-16 00:17:07 +01:00
- Fix most wrong directories in filelist
2008-11-02 15:46:17 +01:00
* Mon Feb 11 2002 ro@suse.de
2007-01-16 00:17:07 +01:00
- tar option for bz2 is " j "
2008-11-02 15:46:17 +01:00
* Wed Mar 07 2001 mfabian@suse.de
2007-01-16 00:17:07 +01:00
- new package: icu 1.7
- package names as described in PACKAGING