1 |
%define major 73 |
2 |
%define libname %mklibname icu %{major} |
3 |
%define develname %mklibname icu -d |
4 |
|
5 |
%define dataname %{name}%{major}-data |
6 |
|
7 |
%define tarballver %(echo %version|tr '.' '_') |
8 |
%define dashver %(echo %version|tr '.' '-') |
9 |
|
10 |
# re-enable when upgrading this package to a new version |
11 |
%define with_tests 1 |
12 |
|
13 |
Summary: International Components for Unicode |
14 |
Name: icu |
15 |
# |
16 |
# when updating to a new version, please, start rebuilds from tracker and tracker-miners |
17 |
# to have all needed libs available before mirrors gets cleaned from old icu libs |
18 |
# |
19 |
Epoch: 1 |
20 |
Version: 73.2 |
21 |
Release: %mkrel 1 |
22 |
License: Unicode |
23 |
Group: System/Libraries |
24 |
URL: http://site.icu-project.org/ |
25 |
Source0: https://github.com/unicode-org/icu/releases/download/release-%{dashver}/icu4c-%{tarballver}-src.tgz |
26 |
Patch0: icu-50.1-disable-renaming.patch |
27 |
BuildRequires: doxygen |
28 |
Requires: %{libname} = %{epoch}:%{version} |
29 |
|
30 |
%description |
31 |
The International Components for Unicode (ICU) libraries provide robust and |
32 |
full-featured Unicode services on a wide variety of platforms. ICU supports |
33 |
the most current version of the Unicode standard, and they provide support |
34 |
for supplementary Unicode characters (needed for GB 18030 repertoire support). |
35 |
|
36 |
As computing environments become more heterogeneous, software portability |
37 |
becomes more important. ICU lets you produce the same results across all the |
38 |
various platforms you support, without sacrificing performance. It offers |
39 |
great flexibility to extend and customize the supplied services, which |
40 |
include: |
41 |
|
42 |
* Text: Unicode text handling, full character properties and character set |
43 |
conversions (500+ codepages) |
44 |
* Analysis: Unicode regular expressions; full Unicode sets; character, word |
45 |
and line boundaries |
46 |
* Comparison: Language sensitive collation and searching |
47 |
* Transformations: normalization, upper/lowercase, script transliterations |
48 |
(50+ pairs) |
49 |
* Locales: Comprehensive locale data (230+) and resource bundle architecture |
50 |
* Complex Text Layout: Arabic, Hebrew, Indic and Thai |
51 |
* Time: Multi-calendar and time zone |
52 |
* Formatting and Parsing: dates, times, numbers, currencies, messages and |
53 |
rule based |
54 |
|
55 |
%package -n %{dataname} |
56 |
Summary: Shared data for the International Components for Unicode |
57 |
Group: System/Libraries |
58 |
BuildArch: noarch |
59 |
|
60 |
%description -n %{dataname} |
61 |
Shared data for the International Components for Unicode. |
62 |
|
63 |
%package doc |
64 |
Summary: Documentation for the International Components for Unicode |
65 |
Group: System/Libraries |
66 |
Requires: %{name} |
67 |
BuildArch: noarch |
68 |
|
69 |
%description doc |
70 |
Documentation for the International Components for Unicode. |
71 |
|
72 |
%package -n %{libname} |
73 |
Summary: Libraries for the International Components for Unicode |
74 |
Group: System/Libraries |
75 |
Requires: %{dataname} = %{epoch}:%{version}-%{release} |
76 |
|
77 |
%description -n %{libname} |
78 |
Libraries for the International Components for Unicode. |
79 |
|
80 |
%package -n %{develname} |
81 |
Summary: Development files for the International Components for Unicode |
82 |
Group: Development/Other |
83 |
Requires: %{libname} = %{epoch}:%{version}-%{release} |
84 |
Provides: %{name}%{major}-devel = %{epoch}:%{version}-%{release} |
85 |
Provides: %{name}-devel = %{epoch}:%{version}-%{release} |
86 |
Provides: lib%{name}-devel = %{epoch}:%{version}-%{release} |
87 |
|
88 |
%description -n %{develname} |
89 |
Development files and headers for the International Components for Unicode. |
90 |
|
91 |
%prep |
92 |
%setup -q -n %{name} |
93 |
%autopatch -p1 |
94 |
|
95 |
%build |
96 |
pushd source |
97 |
%configure \ |
98 |
--with-library-bits=64else32 \ |
99 |
--with-data-packaging=archive \ |
100 |
--disable-renaming \ |
101 |
--disable-samples |
102 |
mkdir -p data/out/tmp |
103 |
# fix test failures |
104 |
sed -i.testdata -r -e 's#/genrb#/genrb $(ICU_DATA_OPT)#' test/testdata/rules.mk |
105 |
%__make |
106 |
%__make doc |
107 |
popd |
108 |
|
109 |
%if %{with_tests} |
110 |
%check |
111 |
pushd source |
112 |
export LC_ALL=C LANG=en |
113 |
%ifarch aarch64 x86_64 %ix86 %arm |
114 |
make check ||: |
115 |
%else |
116 |
make check |
117 |
%endif |
118 |
popd |
119 |
%endif |
120 |
|
121 |
%install |
122 |
%make_install -C source |
123 |
|
124 |
%files |
125 |
%{_bindir}/* |
126 |
%exclude %{_bindir}/icu-config |
127 |
%{_sbindir}/* |
128 |
|
129 |
%files -n %{dataname} |
130 |
%dir %{_datadir}/%{name} |
131 |
%dir %{_datadir}/%{name}/%{version} |
132 |
%{_datadir}/%{name}/%{version}/icudt%{major}l.dat |
133 |
|
134 |
%files doc |
135 |
%doc readme.html source/doc/html/* |
136 |
%{_mandir}/man1/* |
137 |
%{_mandir}/man8/* |
138 |
|
139 |
%files -n %{libname} |
140 |
%{_libdir}/*.so.%{major}{,.*} |
141 |
|
142 |
%files -n %{develname} |
143 |
%{_bindir}/icu-config |
144 |
%{_libdir}/*.so |
145 |
%{_libdir}/pkgconfig/*.pc |
146 |
%dir %{_includedir}/unicode |
147 |
%{_includedir}/unicode/* |
148 |
%dir %{_libdir}/%{name} |
149 |
%dir %{_libdir}/%{name}/%{version} |
150 |
%{_libdir}/%{name}/%{version}/Makefile.inc |
151 |
%{_libdir}/%{name}/%{version}/pkgdata.inc |
152 |
%{_libdir}/%{name}/Makefile.inc |
153 |
%{_libdir}/%{name}/current |
154 |
%{_libdir}/%{name}/pkgdata.inc |
155 |
%{_datadir}/%{name}/%{version}/config |
156 |
%{_datadir}/%{name}/%{version}/install-sh |
157 |
%{_datadir}/%{name}/%{version}/LICENSE |
158 |
%{_datadir}/%{name}/%{version}/mkinstalldirs |