Resolves rhbz#225896 clean up low hanging rpmlint warnings
This commit is contained in:
parent
c0a11fa0c7
commit
498cc00a3d
31
icu.spec
31
icu.spec
@ -1,20 +1,20 @@
|
|||||||
Name: icu
|
Name: icu
|
||||||
Version: 4.0
|
Version: 4.0
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: International Components for Unicode
|
Summary: International Components for Unicode
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.icu-project.org/
|
URL: http://www.icu-project.org/
|
||||||
Source0: http://download.icu-project.org/files/icu4c/4.0/icu4c-4_0-src.tgz
|
Source0: http://download.icu-project.org/files/icu4c/4.0/icu4c-4_0-src.tgz
|
||||||
|
Source1: icu-config
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: doxygen, autoconf
|
BuildRequires: doxygen, autoconf
|
||||||
|
|
||||||
Patch1: icu-config
|
Patch1: icu-3.4-multiarchdevel.patch
|
||||||
Patch2: icu-3.4-multiarchdevel.patch
|
Patch2: icu.icuXXXX.virama.prevnext.patch
|
||||||
Patch3: icu.icuXXXX.virama.prevnext.patch
|
Patch3: icu.icu6008.arm.padding.patch
|
||||||
Patch4: icu.icu6008.arm.padding.patch
|
Patch4: icu.icu6213.worstcase.patch
|
||||||
Patch5: icu.icu6213.worstcase.patch
|
Patch5: icu.icu6284.strictalias.patch
|
||||||
Patch6: icu.icu6284.strictalias.patch
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tools and utilities for developing with icu.
|
Tools and utilities for developing with icu.
|
||||||
@ -53,16 +53,18 @@ Group: Documentation
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
%patch2 -p1 -b .multiarchdevel
|
%patch1 -p1 -b .multiarchdevel
|
||||||
%patch3 -p1 -b .icuXXXX.virama.prevnext.patch
|
%patch2 -p1 -b .icuXXXX.virama.prevnext.patch
|
||||||
%patch4 -p1 -b .icu6008.arm.padding.patch
|
%patch3 -p1 -b .icu6008.arm.padding.patch
|
||||||
%patch5 -p1 -b .icu6213.worstcase.patch
|
%patch4 -p1 -b .icu6213.worstcase.patch
|
||||||
%patch6 -p1 -b .icu6284.strictalias.patch
|
%patch5 -p1 -b .icu6284.strictalias.patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd source
|
cd source
|
||||||
autoconf
|
autoconf
|
||||||
%configure --with-data-packaging=library --disable-samples
|
%configure --with-data-packaging=library --disable-samples
|
||||||
|
#rhbz#225896
|
||||||
|
sed -i -- "s/-nodefaultlibs -nostdlib//" config/mh-linux
|
||||||
make # %{?_smp_mflags} # -j(X>1) may "break" man pages as of 3.2, b.f.u #2357
|
make # %{?_smp_mflags} # -j(X>1) may "break" man pages as of 3.2, b.f.u #2357
|
||||||
make doc
|
make doc
|
||||||
|
|
||||||
@ -71,7 +73,7 @@ rm -rf $RPM_BUILD_ROOT source/__docs
|
|||||||
make -C source install DESTDIR=$RPM_BUILD_ROOT
|
make -C source install DESTDIR=$RPM_BUILD_ROOT
|
||||||
make -C source install-doc docdir=__docs
|
make -C source install-doc docdir=__docs
|
||||||
chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
|
chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
|
||||||
cp -p %{PATCH1} $RPM_BUILD_ROOT%{_bindir}/%{name}-config
|
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}-config
|
||||||
chmod a+x $RPM_BUILD_ROOT%{_bindir}/%{name}-config
|
chmod a+x $RPM_BUILD_ROOT%{_bindir}/%{name}-config
|
||||||
sed -i s/\\\$\(THREADSCXXFLAGS\)// $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/icu.pc
|
sed -i s/\\\$\(THREADSCXXFLAGS\)// $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/icu.pc
|
||||||
sed -i s/\\\$\(THREADSCPPFLAGS\)/-D_REENTRANT/ $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/icu.pc
|
sed -i s/\\\$\(THREADSCPPFLAGS\)/-D_REENTRANT/ $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/icu.pc
|
||||||
@ -130,6 +132,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%doc source/__docs/%{name}/html/*
|
%doc source/__docs/%{name}/html/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 29 2008 Caolan McNamara <caolanm@redhat.com> - 4.0-6
|
||||||
|
- Resolves rhbz#225896 clean up low hanging rpmlint warnings
|
||||||
|
|
||||||
* Tue Dec 16 2008 Caolan McNamara <caolanm@redhat.com> - 4.0-5
|
* Tue Dec 16 2008 Caolan McNamara <caolanm@redhat.com> - 4.0-5
|
||||||
- drop integrated icu.icu5557.safety.patch
|
- drop integrated icu.icu5557.safety.patch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user