1 |
%define major 49 |
%define major 50 |
2 |
%define libname %mklibname icu %{major} |
%define libname %mklibname icu %{major} |
3 |
%define develname %mklibname icu -d |
%define develname %mklibname icu -d |
4 |
%define tarballver %(echo %version|sed -e 's|\\.|_|g') |
%define tarballver %(echo %version|sed -e 's|\\.|_|g') |
5 |
|
|
6 |
Summary: International Components for Unicode |
Summary: International Components for Unicode |
7 |
Name: icu |
Name: icu |
8 |
Version: 49.1.2 |
Version: 50.1 |
9 |
Release: %mkrel 1 |
Release: %mkrel 1 |
10 |
Epoch: 1 |
Epoch: 1 |
11 |
License: MIT |
License: MIT |
82 |
|
|
83 |
%build |
%build |
84 |
pushd source |
pushd source |
|
# (tpg) needed for patch 2 |
|
|
export CFLAGS='%optflags -fno-strict-aliasing' |
|
|
export CXXFLAGS='%optflags -fno-strict-aliasing' |
|
85 |
%configure2_5x \ |
%configure2_5x \ |
86 |
--with-library-bits=64else32 \ |
--with-library-bits=64else32 \ |
87 |
--with-data-packaging=library \ |
--with-data-packaging=library \ |
96 |
popd |
popd |
97 |
|
|
98 |
%install |
%install |
|
rm -rf %{buildroot} |
|
99 |
pushd source |
pushd source |
100 |
%makeinstall_std |
%makeinstall_std |
101 |
popd |
popd |
102 |
|
|
103 |
%files |
%files |
|
%defattr(-,root,root) |
|
104 |
%{_bindir}/* |
%{_bindir}/* |
105 |
%exclude %{_bindir}/icu-config |
%exclude %{_bindir}/icu-config |
106 |
%{_sbindir}/* |
%{_sbindir}/* |
107 |
|
|
108 |
%files doc |
%files doc |
|
%defattr(-,root,root) |
|
109 |
%doc readme.html docs/* |
%doc readme.html docs/* |
110 |
%{_mandir}/man1/* |
%{_mandir}/man1/* |
111 |
%{_mandir}/man8/* |
%{_mandir}/man8/* |
112 |
|
|
113 |
%files -n %{libname} |
%files -n %{libname} |
|
%defattr(-,root,root) |
|
114 |
%{_libdir}/*.so.%{major}* |
%{_libdir}/*.so.%{major}* |
115 |
|
|
116 |
%files -n %{develname} |
%files -n %{develname} |
|
%defattr(-,root,root) |
|
117 |
%{_bindir}/icu-config |
%{_bindir}/icu-config |
118 |
%{_libdir}/*.so |
%{_libdir}/*.so |
119 |
%{_libdir}/pkgconfig/*.pc |
%{_libdir}/pkgconfig/*.pc |