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