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 Name: icu
Version: 3.6 Version: 3.6
Release: 16 Release: 17%{?dist}
Summary: International Components for Unicode Summary: International Components for Unicode
Group: System Environment/Libraries
Group: System Environment/Libraries License: MIT
License: X License URL: http://www.ibm.com/software/globalization/icu/
URL: http://www.ibm.com/software/globalization/icu/ Source0: ftp://ftp.software.ibm.com/software/globalization/icu/3.6/icu4c-3_6-src.tgz
Source0: ftp://ftp.software.ibm.com/software/globalization/icu/icu4c-3_6-src.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: doxygen, autoconf BuildRequires: doxygen, autoconf
Patch1: icu-3.4-multiarchdevel.patch Patch1: icu-3.4-multiarchdevel.patch
Patch2: icu-config Patch2: icu-config
Patch3: icu.icu5365.dependantvowels.patch Patch3: icu.icu5365.dependantvowels.patch
@ -36,30 +35,29 @@ results across all the various platforms you support, without
sacrificing performance. It offers great flexibility to extend and sacrificing performance. It offers great flexibility to extend and
customize the supplied services. customize the supplied services.
%package -n lib%{name} %package -n lib%{name}
Summary: International Components for Unicode - libraries Summary: International Components for Unicode - libraries
Group: System Environment/Libraries Group: System Environment/Libraries
%description -n lib%{name} %description -n lib%{name}
%{summary}. %{summary}.
%package -n lib%{name}-devel %package -n lib%{name}-devel
Summary: Development files for International Components for Unicode Summary: Development files for International Components for Unicode
Group: Development/Libraries Group: Development/Libraries
Requires: lib%{name} = %{version}-%{release} Requires: lib%{name} = %{version}-%{release}
Requires: pkgconfig Requires: pkgconfig
%description -n lib%{name}-devel %description -n lib%{name}-devel
%{summary}. %{summary}.
%package -n lib%{name}-doc %package -n lib%{name}-doc
Summary: Documentation for International Components for Unicode Summary: Documentation for International Components for Unicode
Group: Documentation Group: Documentation
%description -n lib%{name}-doc %description -n lib%{name}-doc
%{summary}. %{summary}.
%prep %prep
%setup -q -n %{name} %setup -q -n %{name}
%patch1 -p1 -b .multiarchdevel %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 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 %{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 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
@ -97,16 +95,13 @@ sed -i s/\\\$\(THREADSCPPFLAGS\)/-D_REENTRANT/ $RPM_BUILD_ROOT/%{_libdir}/pkgcon
%check || : %check || :
make -C source check make -C source check
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post -n lib%{name} -p /sbin/ldconfig %post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc license.html readme.html %doc license.html readme.html
@ -152,8 +147,10 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc source/__docs/%{name}/html/* %doc source/__docs/%{name}/html/*
%changelog %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 * Mon Feb 05 2007 Caolan McNamara <caolanm@redhat.com> - 3.6-16
- Resolves: rhbz#226949 layout telegu like pango - Resolves: rhbz#226949 layout telegu like pango