1 |
%define major 44 |
%define major 48 |
2 |
%define libname %mklibname icu %{major} |
%define libname %mklibname icu %{major} |
3 |
%define develname %mklibname icu -d |
%define develname %mklibname icu -d |
4 |
%define realversion 4.4.2 |
%define realversion 4.8 |
5 |
%define tarballver %(echo %realversion|sed -e 's|\\.|_|g') |
%define tarballver %(echo %realversion|sed -e 's|\\.|_|g') |
6 |
|
|
7 |
Summary: International Components for Unicode |
Summary: International Components for Unicode |
8 |
Name: icu |
Name: icu |
9 |
Version: 4.4.2 |
Version: 4.8 |
10 |
Release: %mkrel 2 |
Release: %mkrel 1 |
11 |
Epoch: 1 |
Epoch: 1 |
12 |
License: MIT |
License: MIT |
13 |
Group: System/Libraries |
Group: System/Libraries |
14 |
URL: http://www.icu-project.org/index.html |
URL: http://www.icu-project.org/index.html |
15 |
Source0: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-src.tgz |
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 |
Source1: http://download.icu-project.org/files/icu4c/%{version}/%{name}4c-%{tarballver}-docs.zip |
|
Source2: http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/icu/icu-config |
|
17 |
Patch0: %{name}4c-3_8-setBreakType.patch |
Patch0: %{name}4c-3_8-setBreakType.patch |
18 |
Patch2: icu4c-4_2-multiarch.patch |
Patch6: icu-4.6.1-do-not-promote-ldflags.patch |
|
Patch3: icu4c-4_0-format_not_a_string_literal_and_no_format_arguments.diff |
|
|
Patch4: icu-4.4-configure.patch |
|
|
Patch5: icu-4.4.1-pkgdata.patch |
|
|
Patch6: icu-4.4-arm_asm.patch |
|
19 |
BuildRequires: doxygen |
BuildRequires: doxygen |
20 |
Requires: %{libname} = %{epoch}:%{version}-%{release} |
Requires: %{libname} = %{epoch}:%{version}-%{release} |
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot |
77 |
%prep |
%prep |
78 |
%setup -q -n %{name} |
%setup -q -n %{name} |
79 |
%patch0 -p1 -b .setBreakType |
%patch0 -p1 -b .setBreakType |
80 |
%patch2 -p1 -b .multiarch |
%patch6 -p0 -b .ldflags |
|
%patch3 -p0 -b .format_not_a_string_literal_and_no_format_arguments |
|
|
%patch4 -p1 |
|
|
%patch5 -p0 -b .bufferoverflow |
|
|
%patch6 -p1 -b .asm_arm |
|
81 |
|
|
82 |
mkdir -p docs |
mkdir -p docs |
83 |
cd docs |
cd docs |
87 |
%build |
%build |
88 |
pushd source |
pushd source |
89 |
# (tpg) needed for patch 2 |
# (tpg) needed for patch 2 |
|
autoconf |
|
90 |
export CFLAGS='%optflags -fno-strict-aliasing' |
export CFLAGS='%optflags -fno-strict-aliasing' |
91 |
export CXXFLAGS='%optflags -fno-strict-aliasing' |
export CXXFLAGS='%optflags -fno-strict-aliasing' |
92 |
%configure2_5x \ |
%configure2_5x \ |
93 |
--with-library-bits=64else32 \ |
--with-library-bits=64else32 \ |
|
--disable-rpath \ |
|
94 |
--with-data-packaging=library \ |
--with-data-packaging=library \ |
95 |
--disable-samples |
--disable-samples |
96 |
%make |
%make |
97 |
%make doc |
%make doc |
98 |
popd |
popd |
99 |
|
|
100 |
#%%check |
%check |
101 |
#pushd source |
pushd source |
102 |
#make check |
make check |
103 |
#popd |
popd |
104 |
|
|
105 |
%install |
%install |
106 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
108 |
%makeinstall_std |
%makeinstall_std |
109 |
popd |
popd |
110 |
|
|
|
cp -pR ./source/tools/ctestfw/libicutest.so* %buildroot/%{_libdir} |
|
|
|
|
|
# fix attribs |
|
|
chmod 755 %{buildroot}%{_libdir}/*.so* |
|
|
|
|
|
install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/icu-config |
|
|
sed -i s/\\\$\(THREADSCXXFLAGS\)// %{buildroot}/%{_libdir}/pkgconfig/icu.pc |
|
|
sed -i s/\\\$\(THREADSCPPFLAGS\)/-D_REENTRANT/ %{buildroot}/%{_libdir}/pkgconfig/icu.pc |
|
|
|
|
111 |
%clean |
%clean |
112 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
113 |
|
|
131 |
%defattr(-,root,root) |
%defattr(-,root,root) |
132 |
%{_bindir}/icu-config |
%{_bindir}/icu-config |
133 |
%{_libdir}/*.so |
%{_libdir}/*.so |
134 |
%{_libdir}/pkgconfig/icu.pc |
%{_libdir}/pkgconfig/*.pc |
135 |
%dir %{_includedir}/layout |
%dir %{_includedir}/layout |
136 |
%dir %{_includedir}/unicode |
%dir %{_includedir}/unicode |
137 |
%{_includedir}/layout/* |
%{_includedir}/layout/* |
140 |
%{_libdir}/%{name}/* |
%{_libdir}/%{name}/* |
141 |
%dir %{_datadir}/%{name} |
%dir %{_datadir}/%{name} |
142 |
%{_datadir}/%{name}/* |
%{_datadir}/%{name}/* |
|
|
|
|
|
|