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