2012-11-20 23:06:40 +01:00
|
|
|
#
|
2017-12-30 09:56:10 +01:00
|
|
|
# spec file for package icu
|
2012-11-20 23:06:40 +01:00
|
|
|
#
|
2021-02-18 11:02:45 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2012-11-20 23:06:40 +01: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.
|
|
|
|
|
Accepting request 642586 from home:namtrac:branches:X11:common:Factory
- Update to new upstream release 63.1
* CLDR 34
+ Segmentation rules and emoji sort order adjusted for
Unicode 11
+ Somali and Javanese data now up to moderate level
(document content)
+ Tongan, Konkani, Maori, Dzongkha, Tatar, Kurdish (ku),
and Xhosa data now up to basic level
+ Many data additions and corrections in many other
languages
+ The following languages have been added to ICU: Sindhi,
Maori, Turkmen, Javanese, Interlingua, Kurdish (ku), Xhosa
* New currency: Venezuela's Bolívar Soberano (VES)
* New Japanese calendar era from 2019: CLDR and ICU include
data for testing that can be enabled.
(ICU #12973, CLDR #10750)
* To enable CLDR new Japanese era placeholder name, set
environment variable (and Java system property for ICU4J)
ICU_ENABLE_TENTATIVE_ERA=true.
* New API for number and currency range formatting
(class NumberRangeFormatter, #11276)
* Support for additional Unicode properties:
Indic_Positional_Category & Indic_Syllabic_Category (#8966)
and Vertical_Orientation (#12850)
* New API for code point maps and tries, mapping Unicode
code points (U+0000..U+10FFFF) to integer values. (#13530)
* Java classes CodePointMap, CodePointTrie, MutableCodePointTrie
* C types UCPMap, UCPTrie, UMutableCPTrie
* New API for getting a UnicodeSet per binary property and a code
point map per enumerated/int-value property. (#20086)
OBS-URL: https://build.opensuse.org/request/show/642586
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/icu?expand=0&rev=96
2018-10-17 14:30:32 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-11-20 23:06:40 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-11-09 17:13:54 +01:00
|
|
|
%define lname libicu70
|
|
|
|
%define amajor 70
|
|
|
|
%define aversion 70
|
2015-04-29 00:13:01 +02:00
|
|
|
%ifarch %armb hppa mips mips64 ppc ppc64 %sparc s390 s390x m68k
|
2015-04-29 00:04:53 +02:00
|
|
|
%define be_platform 1
|
|
|
|
%else
|
|
|
|
%define be_platform 0
|
|
|
|
%endif
|
2019-04-18 14:14:14 +02:00
|
|
|
# icu-versioning.diff needs update for new Version too
|
2017-12-30 09:56:10 +01:00
|
|
|
Name: icu
|
2021-11-09 17:13:54 +01:00
|
|
|
Version: 70.1
|
2012-11-20 23:06:40 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: International Components for Unicode
|
2017-05-10 12:04:11 +02:00
|
|
|
License: ICU
|
2013-05-06 10:15:27 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-04-01 17:27:24 +02:00
|
|
|
URL: http://icu-project.org/
|
|
|
|
|
|
|
|
#Git-Clone: https://github.com/unicode-org/icu.git
|
2021-11-09 17:13:54 +01:00
|
|
|
Source: https://github.com/unicode-org/icu/releases/download/release-70-1/icu4c-70_1-src.tgz
|
|
|
|
Source2: https://github.com/unicode-org/icu/releases/download/release-70-1/icu4c-70_1-src.tgz.asc
|
|
|
|
Source3: https://github.com/unicode-org/icu/releases/download/release-70-1/icu4c-70_1-docs.zip
|
|
|
|
Source4: https://github.com/unicode-org/icu/releases/download/release-70-1/icu4c-70_1-docs.zip.asc
|
2020-11-10 15:19:54 +01:00
|
|
|
Source99: icu.keyring
|
2014-07-29 21:45:00 +02:00
|
|
|
Source100: baselibs.conf
|
2013-07-14 17:27:58 +02:00
|
|
|
Patch4: icu-fix-install-mode-files.diff
|
2014-09-02 23:17:18 +02:00
|
|
|
Patch6: icu-error-reporting.diff
|
2018-07-29 12:17:10 +02:00
|
|
|
Patch7: icu-avoid-x87-excess-precision.diff
|
2020-02-25 11:30:44 +01:00
|
|
|
Patch8: locale.diff
|
2021-05-12 15:31:44 +02:00
|
|
|
Patch9: nan-undefined-conversion.patch
|
2021-11-22 12:30:50 +01:00
|
|
|
Patch10: fix-ucptrietest-golden-diff.patch
|
2013-03-27 01:04:24 +01:00
|
|
|
BuildRequires: fdupes
|
2012-11-20 23:06:40 +01:00
|
|
|
BuildRequires: gcc-c++
|
2021-11-09 18:30:45 +01:00
|
|
|
BuildRequires: pkg-config
|
2019-04-01 18:46:57 +02:00
|
|
|
BuildRequires: python3-base
|
2014-06-03 13:51:30 +02:00
|
|
|
BuildRequires: unzip
|
2021-11-09 18:30:45 +01:00
|
|
|
Provides: bundled(timezone) = 2021b
|
2012-11-20 23:06:40 +01:00
|
|
|
|
|
|
|
%description
|
2017-07-31 14:42:00 +02:00
|
|
|
ICU is a set of C and C++ libraries that provide extensive Unicode and locale
|
|
|
|
support, such as calendar, 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.
|
2020-10-29 12:00:36 +01:00
|
|
|
|
2013-05-06 10:15:27 +02:00
|
|
|
This subpackage contains the runtime programs for interacting with ICU.
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%package -n %lname
|
2013-07-14 17:27:58 +02:00
|
|
|
Summary: International Components for Unicode
|
|
|
|
Group: System/Libraries
|
2012-11-20 23:06:40 +01:00
|
|
|
Requires: timezone
|
2020-05-31 20:31:44 +02:00
|
|
|
Provides: libicu = %version
|
2015-04-29 00:13:01 +02:00
|
|
|
%if %be_platform
|
|
|
|
Requires: libicu%aversion-bedata = %version
|
2015-04-29 00:04:53 +02:00
|
|
|
%else
|
2015-04-29 00:13:01 +02:00
|
|
|
Requires: libicu%aversion-ledata = %version
|
2015-04-29 00:04:53 +02:00
|
|
|
%endif
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%description -n %lname
|
2017-07-31 14:42:00 +02:00
|
|
|
ICU is a set of C and C++ libraries that provide extensive Unicode
|
|
|
|
and locale support.
|
|
|
|
This package contains the runtime libraries for ICU.
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%package -n libicu%aversion-bedata
|
2014-09-02 23:17:18 +02:00
|
|
|
Summary: Rule databases and tables for ICU
|
2013-07-14 17:27:58 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%description -n libicu%aversion-bedata
|
2017-07-31 14:42:00 +02:00
|
|
|
ICU is a set of C and C++ libraries that provide extensive Unicode
|
|
|
|
and locale support.
|
2014-09-02 23:17:18 +02:00
|
|
|
|
|
|
|
ICU makes use of a wide variety of data tables to provide many of its
|
|
|
|
services: converter mapping tables, collation rules, transliteration
|
|
|
|
rules, break iterator rules and dictionaries.
|
2013-07-14 17:27:58 +02:00
|
|
|
|
2014-09-02 23:17:18 +02:00
|
|
|
This subpackage contains these data tables, in big-endian format.
|
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%package -n libicu%aversion-ledata
|
2014-09-02 23:17:18 +02:00
|
|
|
Summary: Rule databases and tables for ICU
|
|
|
|
Group: System/Libraries
|
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%description -n libicu%aversion-ledata
|
2017-07-31 14:42:00 +02:00
|
|
|
ICU is a set of C and C++ libraries that provide extensive Unicode
|
|
|
|
and locale support.
|
2014-09-02 23:17:18 +02:00
|
|
|
|
|
|
|
ICU makes use of a wide variety of data tables to provide many of its
|
|
|
|
services: converter mapping tables, collation rules, transliteration
|
|
|
|
rules, break iterator rules and dictionaries.
|
|
|
|
|
|
|
|
This subpackage contains these data tables, in little-endian format.
|
2013-07-14 17:27:58 +02:00
|
|
|
|
2017-12-30 09:56:10 +01:00
|
|
|
%package -n libicu-devel
|
2017-07-31 14:42:00 +02:00
|
|
|
Summary: Development files for the ICU library
|
2012-11-20 23:06:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-04-29 00:13:01 +02:00
|
|
|
Requires: %lname = %version
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2017-12-30 09:56:10 +01:00
|
|
|
%description -n libicu-devel
|
2017-07-31 14:42:00 +02:00
|
|
|
ICU is a set of C and C++ libraries that provide extensive Unicode
|
|
|
|
and locale support.
|
|
|
|
This package contains the headers for ICU.
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2017-12-30 09:56:10 +01:00
|
|
|
%package -n libicu-doc
|
|
|
|
Summary: Documentation for the ICU library
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description -n libicu-doc
|
|
|
|
ICU is a set of C and C++ libraries that provide extensive Unicode
|
|
|
|
and locale support.
|
|
|
|
This package contains the HTML documentation.
|
|
|
|
|
2012-11-20 23:06:40 +01:00
|
|
|
%prep
|
2021-04-02 00:34:18 +02:00
|
|
|
%autosetup -p1 -n icu
|
|
|
|
|
2017-12-30 09:56:10 +01:00
|
|
|
# docs are special
|
|
|
|
mkdir html
|
|
|
|
pushd html/
|
2019-04-01 17:27:24 +02:00
|
|
|
unzip %SOURCE3
|
2017-12-30 09:56:10 +01:00
|
|
|
popd
|
2012-11-20 23:06:40 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd source
|
2019-04-01 17:27:24 +02:00
|
|
|
mkdir -p data/out/tmp # build procedure forgets to do this on its own
|
2015-04-29 00:13:01 +02:00
|
|
|
export CXXFLAGS="%optflags -DICU_DATA_DIR=\\\"%_datadir/icu/%version/\\\""
|
2012-11-20 23:06:40 +01:00
|
|
|
export CFLAGS="$CXXFLAGS"
|
2014-06-03 13:51:30 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-samples \
|
2013-07-14 17:27:58 +02:00
|
|
|
--with-data-packaging=archive
|
2020-10-29 12:00:36 +01:00
|
|
|
%make_build VERBOSE=1
|
2014-09-02 23:17:18 +02:00
|
|
|
# Build the other endianess, too.
|
|
|
|
pushd data/
|
2015-04-29 00:13:01 +02:00
|
|
|
%if %be_platform
|
2014-09-02 23:17:18 +02:00
|
|
|
cp in/icudt%{amajor}l.dat out/
|
|
|
|
%else
|
|
|
|
LD_LIBRARY_PATH="../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH" \
|
2014-10-11 17:53:57 +02:00
|
|
|
../bin/icupkg -tb in/icudt%{amajor}l.dat out/icudt%{amajor}b.dat
|
|
|
|
! cmp in/icudt%{amajor}l.dat out/icudt%{amajor}b.dat
|
2014-09-02 23:17:18 +02:00
|
|
|
%endif
|
|
|
|
popd
|
2012-11-20 23:06:40 +01:00
|
|
|
|
|
|
|
%install
|
2015-04-29 00:13:01 +02:00
|
|
|
mkdir -p "%buildroot/%_docdir/%name"
|
2017-12-30 09:56:10 +01:00
|
|
|
cp -a html "%buildroot/%_docdir/%name/"
|
|
|
|
cp -a license.html readme.html "%buildroot/%_docdir/%name/"
|
|
|
|
|
2012-11-20 23:06:40 +01:00
|
|
|
find . -name CVS -type d -exec rm -Rf "{}" "+"
|
|
|
|
cd source
|
2017-12-30 09:56:10 +01:00
|
|
|
|
2020-10-29 12:00:36 +01:00
|
|
|
%make_install
|
2015-04-29 00:13:01 +02:00
|
|
|
cp data/out/icudt*.dat "%buildroot/%_datadir/icu/%version/"
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2013-06-15 22:06:55 +02:00
|
|
|
#
|
|
|
|
# ICU's "pkgdata" utility is really fragile, so icu-versioning.diff
|
2017-07-31 14:42:00 +02:00
|
|
|
# does as few actions as possible, but that means we need some additional
|
2013-06-15 22:06:55 +02:00
|
|
|
# cleanup in the spec file now.
|
|
|
|
#
|
2015-04-29 00:13:01 +02:00
|
|
|
pushd "%buildroot/%_libdir/"
|
2013-07-23 20:00:42 +02:00
|
|
|
for i in *.so.[0-9]*; do
|
|
|
|
echo "Looking at $i"
|
2013-06-15 22:06:55 +02:00
|
|
|
if [ "${i##*.so.}" != "%version" ]; then
|
2013-07-23 20:00:42 +02:00
|
|
|
rm -fv "$i"
|
|
|
|
continue
|
2013-06-15 22:06:55 +02:00
|
|
|
fi
|
2013-07-23 20:00:42 +02:00
|
|
|
# Because U_ICU_VERSION_SHORT is "51_2" and not "51.2",
|
|
|
|
# create some symlinks.
|
2015-04-29 00:13:01 +02:00
|
|
|
ln -s "$i" "${i%%%version}%aversion"
|
2013-06-15 22:06:55 +02:00
|
|
|
done
|
2013-07-23 20:00:42 +02:00
|
|
|
popd
|
2013-06-15 22:06:55 +02:00
|
|
|
|
2014-09-02 23:17:18 +02:00
|
|
|
# /usr/lib/rpm/elfdeps requires +x bit and not all files had it at one point.
|
|
|
|
# - OpenBSD for example is known to have patched their libtool program
|
|
|
|
# to kill the x bit on install :(
|
2015-04-29 00:13:01 +02:00
|
|
|
chmod a+rx "%buildroot/%_libdir"/lib*.so.*
|
2012-11-20 23:06:40 +01:00
|
|
|
|
|
|
|
# install uncompiled source data:
|
2015-04-29 00:13:01 +02:00
|
|
|
mkdir -p "%buildroot/%_datadir/icu/%version/unidata"
|
|
|
|
install -m 644 data/unidata/*.txt "%buildroot/%_datadir/icu/%version/unidata"
|
|
|
|
ln -s unidata/UnicodeData.txt "%buildroot/%_datadir/icu/%version/"
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
rm "%buildroot/%_datadir/icu/%version/install-sh"
|
2017-12-30 09:56:10 +01:00
|
|
|
# Seems unused
|
|
|
|
rm -Rf "%buildroot/%_datadir/icu/%version/unidata/" \
|
|
|
|
"%buildroot/%_datadir/icu/%version/UnicodeData.txt" \
|
|
|
|
"%buildroot/%_libdir/icu/current" \
|
2017-12-26 14:49:43 +01:00
|
|
|
"%buildroot/%_libdir/icu/Makefile.inc" \
|
|
|
|
"%buildroot/%_libdir/icu/pkgdata.inc"
|
2013-03-27 01:04:24 +01:00
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%fdupes %buildroot/%_prefix
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2017-12-30 09:56:10 +01:00
|
|
|
%check
|
|
|
|
# s390x see: https://ssl.icu-project.org/trac/ticket/13095
|
|
|
|
cd source
|
|
|
|
ICU_DATA="%buildroot/%_datadir/icu/%version" make check %{?_smp_mflags} VERBOSE=1
|
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2017-12-30 09:56:10 +01:00
|
|
|
%files
|
|
|
|
%_bindir/derb
|
|
|
|
%_bindir/gen*
|
|
|
|
%_bindir/icuinfo
|
|
|
|
%_bindir/makeconv
|
|
|
|
%_bindir/pkgdata
|
|
|
|
%_bindir/uconv
|
2021-11-09 17:13:54 +01:00
|
|
|
%_bindir/icuexportdata
|
2017-12-30 09:56:10 +01:00
|
|
|
%_sbindir/*
|
|
|
|
%_mandir/man*/*
|
2017-12-30 09:55:23 +01:00
|
|
|
%dir %_datadir/icu
|
|
|
|
%dir %_datadir/icu/%version
|
|
|
|
%_datadir/icu/%version/LICENSE
|
2017-12-30 09:56:10 +01:00
|
|
|
%dir %_docdir/%name/
|
|
|
|
%_docdir/%name/license.html
|
|
|
|
%_docdir/%name/readme.html
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%_libdir/libicu*.so.*
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%files -n libicu%aversion-bedata
|
|
|
|
%dir %_datadir/icu
|
|
|
|
%dir %_datadir/icu/%version
|
|
|
|
%_datadir/icu/%version/icudt%{amajor}b.dat
|
2014-09-02 23:17:18 +02:00
|
|
|
|
2015-04-29 00:13:01 +02:00
|
|
|
%files -n libicu%aversion-ledata
|
|
|
|
%dir %_datadir/icu
|
|
|
|
%dir %_datadir/icu/%version
|
|
|
|
%_datadir/icu/%version/icudt%{amajor}l.dat
|
2013-07-14 17:27:58 +02:00
|
|
|
|
2017-12-30 09:56:10 +01:00
|
|
|
%files -n libicu-devel
|
2015-04-29 00:13:01 +02:00
|
|
|
%_libdir/libicu*.so
|
|
|
|
%_includedir/unicode/
|
|
|
|
%dir %_libdir/icu/
|
|
|
|
%dir %_libdir/icu/%version/
|
|
|
|
%_libdir/icu/%version/Makefile.inc
|
|
|
|
%_libdir/icu/%version/pkgdata.inc
|
|
|
|
%_libdir/pkgconfig/icu-*.pc
|
|
|
|
%_bindir/icu-config
|
|
|
|
%dir %_datadir/icu/
|
|
|
|
%dir %_datadir/icu/%version/
|
|
|
|
%_datadir/icu/%version/mkinstalldirs
|
|
|
|
%_datadir/icu/%version/config/
|
2012-11-20 23:06:40 +01:00
|
|
|
|
2017-12-30 09:56:10 +01:00
|
|
|
%files -n libicu-doc
|
|
|
|
%dir %_docdir/%name/
|
|
|
|
%_docdir/%name/html/
|
|
|
|
|
2012-11-20 23:06:40 +01:00
|
|
|
%changelog
|