some spec cleanups

This commit is contained in:
Caolan McNamara 2007-02-09 14:43:55 +00:00
parent 99645ce535
commit a1bb888777

View File

@ -1,15 +1,14 @@
Name: icu
Version: 3.6
Release: 16
Release: 17%{?dist}
Summary: International Components for Unicode
Group: System Environment/Libraries
License: X License
License: MIT
URL: http://www.ibm.com/software/globalization/icu/
Source0: ftp://ftp.software.ibm.com/software/globalization/icu/icu4c-3_6-src.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source0: ftp://ftp.software.ibm.com/software/globalization/icu/3.6/icu4c-3_6-src.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: doxygen, autoconf
Patch1: icu-3.4-multiarchdevel.patch
Patch2: icu-config
Patch3: icu.icu5365.dependantvowels.patch
@ -59,7 +58,6 @@ Group: Documentation
%description -n lib%{name}-doc
%{summary}.
%prep
%setup -q -n %{name}
%patch1 -p1 -b .multiarchdevel
@ -89,7 +87,7 @@ rm -rf $RPM_BUILD_ROOT source/__docs
make -C source install DESTDIR=$RPM_BUILD_ROOT
make -C source install-doc docdir=__docs
chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so.*
cp %{PATCH2} $RPM_BUILD_ROOT%{_bindir}/%{name}-config
cp -p %{PATCH2} $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/\\\$\(THREADSCPPFLAGS\)/-D_REENTRANT/ $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/icu.pc
@ -97,16 +95,13 @@ sed -i s/\\\$\(THREADSCPPFLAGS\)/-D_REENTRANT/ $RPM_BUILD_ROOT/%{_libdir}/pkgcon
%check || :
make -C source check
%clean
rm -rf $RPM_BUILD_ROOT
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc license.html readme.html
@ -152,8 +147,10 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-)
%doc source/__docs/%{name}/html/*
%changelog
* Mon Feb 09 2007 Caolan McNamara <caolanm@redhat.com> - 3.6-17
- spec cleanups
* Mon Feb 05 2007 Caolan McNamara <caolanm@redhat.com> - 3.6-16
- Resolves: rhbz#226949 layout telegu like pango