1 |
%define major 52 |
2 |
%define libname %mklibname icu %{major} |
3 |
%define develname %mklibname icu -d |
4 |
%define tarballver %(echo %version|sed -e 's|\\.|_|g') |
5 |
|
6 |
Summary: International Components for Unicode |
7 |
Name: icu |
8 |
Version: 52.1 |
9 |
Release: %mkrel 2 |
10 |
Epoch: 1 |
11 |
License: MIT |
12 |
Group: System/Libraries |
13 |
URL: http://www.icu-project.org/index.html |
14 |
Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-src.tgz |
15 |
Source1: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-docs.zip |
16 |
Patch0: icu-50.1-disable-renaming.patch |
17 |
Patch6: icu-4.6.1-do-not-promote-ldflags.patch |
18 |
BuildRequires: doxygen |
19 |
Requires: %{libname} = %{epoch}:%{version} |
20 |
|
21 |
%description |
22 |
The International Components for Unicode (ICU) libraries provide robust and |
23 |
full-featured Unicode services on a wide variety of platforms. ICU supports |
24 |
the most current version of the Unicode standard, and they provide support |
25 |
for supplementary Unicode characters (needed for GB 18030 repertoire support). |
26 |
|
27 |
As computing environments become more heterogeneous, software portability |
28 |
becomes more important. ICU lets you produce the same results across all the |
29 |
various platforms you support, without sacrificing performance. It offers |
30 |
great flexibility to extend and customize the supplied services, which |
31 |
include: |
32 |
|
33 |
* Text: Unicode text handling, full character properties and character set |
34 |
conversions (500+ codepages) |
35 |
* Analysis: Unicode regular expressions; full Unicode sets; character, word |
36 |
and line boundaries |
37 |
* Comparison: Language sensitive collation and searching |
38 |
* Transformations: normalization, upper/lowercase, script transliterations |
39 |
(50+ pairs) |
40 |
* Locales: Comprehensive locale data (230+) and resource bundle architecture |
41 |
* Complex Text Layout: Arabic, Hebrew, Indic and Thai |
42 |
* Time: Multi-calendar and time zone |
43 |
* Formatting and Parsing: dates, times, numbers, currencies, messages and |
44 |
rule based |
45 |
|
46 |
%package data |
47 |
Summary: Shared data for the International Components for Unicode |
48 |
Group: System/Libraries |
49 |
BuildArch: noarch |
50 |
Conflicts: icu-devel < 1:50.1-3 |
51 |
|
52 |
%description data |
53 |
Shared data for the International Components for Unicode. |
54 |
|
55 |
%package doc |
56 |
Summary: Documentation for the International Components for Unicode |
57 |
Group: System/Libraries |
58 |
Requires: %{name} |
59 |
BuildArch: noarch |
60 |
|
61 |
%description doc |
62 |
Documentation for the International Components for Unicode. |
63 |
|
64 |
%package -n %{libname} |
65 |
Summary: Libraries for the International Components for Unicode |
66 |
Group: System/Libraries |
67 |
Requires: %{name}-data = %{epoch}:%{version} |
68 |
|
69 |
%description -n %{libname} |
70 |
Libraries for the International Components for Unicode. |
71 |
|
72 |
%package -n %{develname} |
73 |
Summary: Development files for the International Components for Unicode |
74 |
Group: Development/Other |
75 |
Requires: %{libname} = %{epoch}:%{version} |
76 |
Provides: %{name}%{major}-devel = %{epoch}:%{version}-%{release} |
77 |
Provides: %{name}-devel = %{epoch}:%{version}-%{release} |
78 |
Provides: lib%{name}-devel = %{epoch}:%{version}-%{release} |
79 |
Obsoletes: %mklibname -d icu 36 |
80 |
Obsoletes: %mklibname -d icu 34 |
81 |
|
82 |
%description -n %{develname} |
83 |
Development files and headers for the International Components for Unicode. |
84 |
|
85 |
%prep |
86 |
%setup -q -n %{name} |
87 |
%patch0 -p1 -b .renaming |
88 |
%patch6 -p0 -b .ldflags |
89 |
|
90 |
mkdir -p docs |
91 |
cd docs |
92 |
unzip -q %{SOURCE1} |
93 |
cd - |
94 |
|
95 |
%build |
96 |
pushd source |
97 |
%configure2_5x \ |
98 |
--with-library-bits=64else32 \ |
99 |
--with-data-packaging=archive \ |
100 |
--disable-renaming \ |
101 |
--disable-samples |
102 |
%make |
103 |
%make doc |
104 |
popd |
105 |
|
106 |
%install |
107 |
pushd source |
108 |
%makeinstall_std |
109 |
popd |
110 |
|
111 |
%files |
112 |
%{_bindir}/* |
113 |
%exclude %{_bindir}/icu-config |
114 |
%{_sbindir}/* |
115 |
|
116 |
%files data |
117 |
%dir %{_datadir}/%{name} |
118 |
%dir %{_datadir}/%{name}/%{version} |
119 |
%{_datadir}/%{name}/%{version}/*.dat |
120 |
|
121 |
%files doc |
122 |
%doc readme.html docs/* |
123 |
%{_mandir}/man1/* |
124 |
%{_mandir}/man8/* |
125 |
|
126 |
%files -n %{libname} |
127 |
%{_libdir}/*.so.%{major}* |
128 |
|
129 |
%files -n %{develname} |
130 |
%{_bindir}/icu-config |
131 |
%{_libdir}/*.so |
132 |
%{_libdir}/pkgconfig/*.pc |
133 |
%dir %{_includedir}/layout |
134 |
%dir %{_includedir}/unicode |
135 |
%{_includedir}/layout/* |
136 |
%{_includedir}/unicode/* |
137 |
%dir %{_libdir}/%{name} |
138 |
%dir %{_libdir}/%{name}/%{version} |
139 |
%{_libdir}/%{name}/%{version}/Makefile.inc |
140 |
%{_libdir}/%{name}/%{version}/pkgdata.inc |
141 |
%{_libdir}/%{name}/Makefile.inc |
142 |
%{_libdir}/%{name}/current |
143 |
%{_libdir}/%{name}/pkgdata.inc |
144 |
%{_datadir}/%{name}/%{version}/config |
145 |
%{_datadir}/%{name}/%{version}/install-sh |
146 |
%{_datadir}/%{name}/%{version}/license.html |
147 |
%{_datadir}/%{name}/%{version}/mkinstalldirs |