/[packages]/cauldron/icu/current/SPECS/icu.spec
ViewVC logotype

Contents of /cauldron/icu/current/SPECS/icu.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 188944 - (show annotations) (download)
Fri Dec 30 03:50:41 2011 UTC (8 years, 9 months ago) by anssi
File size: 4169 byte(s)
- fix CVE-2011-4599 (buffer overflow, patch from rhel6, via Mandriva)

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

  ViewVC Help
Powered by ViewVC 1.1.28