1 |
%define major 48 |
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: 4.8.1 |
9 |
Release: %mkrel 1 |
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: %{name}4c-3_8-setBreakType.patch |
17 |
Patch6: icu-4.6.1-do-not-promote-ldflags.patch |
18 |
BuildRequires: doxygen |
19 |
Requires: %{libname} = %{epoch}:%{version}-%{release} |
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
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 doc |
48 |
Summary: Documentation for the International Components for Unicode |
49 |
Group: System/Libraries |
50 |
Requires: %{name} = %{epoch}:%{version}-%{release} |
51 |
|
52 |
%description doc |
53 |
Documentation for the International Components for Unicode. |
54 |
|
55 |
%package -n %{libname} |
56 |
Summary: Libraries for the International Components for Unicode |
57 |
Group: System/Libraries |
58 |
|
59 |
%description -n %{libname} |
60 |
Libraries for the International Components for Unicode. |
61 |
|
62 |
%package -n %{develname} |
63 |
Summary: Development files for the International Components for Unicode |
64 |
Group: Development/Other |
65 |
Requires: %{libname} = %{epoch}:%{version}-%{release} |
66 |
Provides: %{name}%{major}-devel = %{epoch}:%{version}-%{release} |
67 |
Provides: %{name}-devel = %{epoch}:%{version}-%{release} |
68 |
Provides: lib%{name}-devel = %{epoch}:%{version}-%{release} |
69 |
Obsoletes: %mklibname -d icu 36 |
70 |
Obsoletes: %mklibname -d icu 34 |
71 |
#define _requires_exceptions statically\\|linked |
72 |
|
73 |
%description -n %{develname} |
74 |
Development files and headers for the International Components for Unicode. |
75 |
|
76 |
%prep |
77 |
%setup -q -n %{name} |
78 |
%patch0 -p1 -b .setBreakType |
79 |
%patch6 -p0 -b .ldflags |
80 |
|
81 |
mkdir -p docs |
82 |
cd docs |
83 |
unzip -q %{SOURCE1} |
84 |
cd - |
85 |
|
86 |
%build |
87 |
pushd source |
88 |
# (tpg) needed for patch 2 |
89 |
export CFLAGS='%optflags -fno-strict-aliasing' |
90 |
export CXXFLAGS='%optflags -fno-strict-aliasing' |
91 |
%configure2_5x \ |
92 |
--with-library-bits=64else32 \ |
93 |
--with-data-packaging=library \ |
94 |
--disable-samples |
95 |
%make |
96 |
%make doc |
97 |
popd |
98 |
|
99 |
%check |
100 |
pushd source |
101 |
make check |
102 |
popd |
103 |
|
104 |
%install |
105 |
rm -rf %{buildroot} |
106 |
pushd source |
107 |
%makeinstall_std |
108 |
popd |
109 |
|
110 |
%clean |
111 |
rm -rf %{buildroot} |
112 |
|
113 |
%files |
114 |
%defattr(-,root,root) |
115 |
%{_bindir}/* |
116 |
%exclude %{_bindir}/icu-config |
117 |
%{_sbindir}/* |
118 |
|
119 |
%files doc |
120 |
%defattr(-,root,root) |
121 |
%doc readme.html docs/* |
122 |
%{_mandir}/man1/* |
123 |
%{_mandir}/man8/* |
124 |
|
125 |
%files -n %{libname} |
126 |
%defattr(-,root,root) |
127 |
%{_libdir}/*.so.%{major}* |
128 |
|
129 |
%files -n %{develname} |
130 |
%defattr(-,root,root) |
131 |
%{_bindir}/icu-config |
132 |
%{_libdir}/*.so |
133 |
%{_libdir}/pkgconfig/*.pc |
134 |
%dir %{_includedir}/layout |
135 |
%dir %{_includedir}/unicode |
136 |
%{_includedir}/layout/* |
137 |
%{_includedir}/unicode/* |
138 |
%dir %{_libdir}/%{name} |
139 |
%{_libdir}/%{name}/* |
140 |
%dir %{_datadir}/%{name} |
141 |
%{_datadir}/%{name}/* |