icu/icu.spec

93 lines
2.3 KiB
RPMSpec

# Based off of a spec file by Dag Wieers <dag@wieers.com>
# http://dag.wieers.com/packages/icu/icu.spec
Summary: International Components for Unicode
Name: icu
Version: 2.6.2
Release: 1
License: X License
Group: System Environment/Libraries
URL: http://oss.software.ibm.com/icu/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: /sbin/ldconfig
%description
ICU is a C++ and C library that provides robust and full-featured Unicode
support. This package contains the runtime libraries for ICU. It does not
contain any of the data files needed at runtime and present in the `icu'
and `icu-locales` packages.
%package -n libicu
Summary: International Components for Unicode
Group: System Environment/Libraries
%description -n libicu
ICU is a C++ and C library that provides robust and full-featured Unicode
support. This package contains the runtime libraries for ICU. It does not
contain any of the data files needed at runtime and present in the `icu'
and `icu-locales` packages.
%package -n libicu-devel
Summary: Header files, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: libicu = %{version}-%{release}
%description -n libicu-devel
This package contains the header files, static libraries, and
development documentation for %{name}. If you would like to develop
programs using %{name}, you will need to install %{name}-devel.
%prep
%setup
%build
cd source
%configure --disable-samples
make
%install
rm -rf $RPM_BUILD_ROOT
cd source
%makeinstall
%post -n libicu
/sbin/ldconfig 2>/dev/null
%postun -n libicu
/sbin/ldconfig 2>/dev/null
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc %{_mandir}/man?/*
%{_sysconfdir}/icu/
%{_bindir}/*
%{_sbindir}/*
%dir %{_datadir}/icu/
%{_datadir}/icu/%{version}/mkinstalldirs
%{_datadir}/icu/%{version}/license.html
%files -n libicu
%defattr(-, root, root)
%doc license.html readme.html
%{_libdir}/*.so.*
%files -n libicu-devel
%defattr(-, root, root)
%doc %{_datadir}/icu/%{version}/README
%dir %{_libdir}/icu/
%dir %{_datadir}/icu/
%{_includedir}/layout/
%{_includedir}/unicode/
%{_libdir}/*.so
%{_libdir}/icu/Makefile.inc
%{_libdir}/icu/%{version}/Makefile.inc
%{_datadir}/icu/%{version}/config/mh-linux
%changelog
* Wed Dec 15 2004 Justin Ross <jross@dhcp83-29.boston.redhat.com>
- Initial build.