/[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 1497 - (show annotations) (download)
Sun Jan 9 02:31:09 2011 UTC (13 years, 3 months ago) by blino
File size: 4977 byte(s)
imported package icu
1 %define major 44
2 %define libname %mklibname icu %{major}
3 %define develname %mklibname icu -d
4 %define realversion 4.4.2
5 %define tarballver %(echo %realversion|sed -e 's|\\.|_|g')
6
7 Summary: International Components for Unicode
8 Name: icu
9 Version: 4.4.2
10 Release: %mkrel 1
11 Epoch: 1
12 License: MIT
13 Group: System/Libraries
14 URL: http://www.icu-project.org/index.html
15 Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-src.tgz
16 Source1: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-docs.zip
17 Source2: http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/icu/icu-config
18 Patch0: %{name}4c-3_8-setBreakType.patch
19 Patch2: icu4c-4_2-multiarch.patch
20 Patch3: icu4c-4_0-format_not_a_string_literal_and_no_format_arguments.diff
21 Patch4: icu-4.4-configure.patch
22 Patch5: icu-4.4.1-pkgdata.patch
23 BuildRequires: doxygen
24 Requires: %{libname} = %{epoch}:%{version}-%{release}
25 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
26
27 %description
28 The International Components for Unicode (ICU) libraries provide robust and
29 full-featured Unicode services on a wide variety of platforms. ICU supports
30 the most current version of the Unicode standard, and they provide support
31 for supplementary Unicode characters (needed for GB 18030 repertoire support).
32
33 As computing environments become more heterogeneous, software portability
34 becomes more important. ICU lets you produce the same results across all the
35 various platforms you support, without sacrificing performance. It offers
36 great flexibility to extend and customize the supplied services, which
37 include:
38
39 * Text: Unicode text handling, full character properties and character set
40 conversions (500+ codepages)
41 * Analysis: Unicode regular expressions; full Unicode sets; character, word
42 and line boundaries
43 * Comparison: Language sensitive collation and searching
44 * Transformations: normalization, upper/lowercase, script transliterations
45 (50+ pairs)
46 * Locales: Comprehensive locale data (230+) and resource bundle architecture
47 * Complex Text Layout: Arabic, Hebrew, Indic and Thai
48 * Time: Multi-calendar and time zone
49 * Formatting and Parsing: dates, times, numbers, currencies, messages and
50 rule based
51
52 %package doc
53 Summary: Documentation for the International Components for Unicode
54 Group: System/Libraries
55 Requires: %{name} = %{epoch}:%{version}-%{release}
56
57 %description doc
58 Documentation for the International Components for Unicode.
59
60 %package -n %{libname}
61 Summary: Libraries for the International Components for Unicode
62 Group: System/Libraries
63
64 %description -n %{libname}
65 Libraries for the International Components for Unicode.
66
67 %package -n %{develname}
68 Summary: Development files for the International Components for Unicode
69 Group: Development/Other
70 Requires: %{libname} = %{epoch}:%{version}-%{release}
71 Provides: %{name}%{major}-devel = %{epoch}:%{version}-%{release}
72 Provides: %{name}-devel = %{epoch}:%{version}-%{release}
73 Provides: lib%{name}-devel = %{epoch}:%{version}-%{release}
74 Obsoletes: %mklibname -d icu 36
75 Obsoletes: %mklibname -d icu 34
76 #define _requires_exceptions statically\\|linked
77
78 %description -n %{develname}
79 Development files and headers for the International Components for Unicode.
80
81 %prep
82 %setup -q -n %{name}
83 %patch0 -p1 -b .setBreakType
84 %patch2 -p1 -b .multiarch
85 %patch3 -p0 -b .format_not_a_string_literal_and_no_format_arguments
86 %patch4 -p1
87 %patch5 -p0 -b .bufferoverflow
88
89 mkdir -p docs
90 cd docs
91 unzip -q %{SOURCE1}
92 cd -
93
94 %build
95 pushd source
96 # (tpg) needed for patch 2
97 autoconf
98 export CFLAGS='%optflags -fno-strict-aliasing'
99 export CXXFLAGS='%optflags -fno-strict-aliasing'
100 %configure2_5x \
101 --with-library-bits=64else32 \
102 --disable-rpath \
103 --with-data-packaging=library \
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 rm -rf %{buildroot}
116 pushd source
117 %makeinstall_std
118 popd
119
120 cp -pR ./source/tools/ctestfw/libicutest.so* %buildroot/%{_libdir}
121
122 # fix attribs
123 chmod 755 %{buildroot}%{_libdir}/*.so*
124
125 install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/icu-config
126 sed -i s/\\\$\(THREADSCXXFLAGS\)// %{buildroot}/%{_libdir}/pkgconfig/icu.pc
127 sed -i s/\\\$\(THREADSCPPFLAGS\)/-D_REENTRANT/ %{buildroot}/%{_libdir}/pkgconfig/icu.pc
128
129 %clean
130 rm -rf %{buildroot}
131
132 %if %mdkversion < 200900
133 %post -n %{libname} -p /sbin/ldconfig
134 %endif
135
136 %if %mdkversion < 200900
137 %postun -n %{libname} -p /sbin/ldconfig
138 %endif
139
140 %files
141 %defattr(-,root,root)
142 %{_bindir}/*
143 %exclude %{_bindir}/icu-config
144 %{_sbindir}/*
145
146 %files doc
147 %defattr(-,root,root)
148 %doc readme.html docs/*
149 %{_mandir}/man1/*
150 %{_mandir}/man8/*
151
152 %files -n %{libname}
153 %defattr(-,root,root)
154 %{_libdir}/*.so.%{major}*
155
156 %files -n %{develname}
157 %defattr(-,root,root)
158 %{_bindir}/icu-config
159 %{_libdir}/*.so
160 %{_libdir}/pkgconfig/icu.pc
161 %dir %{_includedir}/layout
162 %dir %{_includedir}/unicode
163 %{_includedir}/layout/*
164 %{_includedir}/unicode/*
165 %dir %{_libdir}/%{name}
166 %{_libdir}/%{name}/*
167 %dir %{_datadir}/%{name}
168 %{_datadir}/%{name}/*
169
170

  ViewVC Help
Powered by ViewVC 1.1.30