98ae9c2
Name: libunistring
98ae9c2
Version: 0.9.3
98ae9c2
Release: 5%{?dist}
98ae9c2
Group: System Environment/Libraries
98ae9c2
Summary: GNU Unicode string library
98ae9c2
License: LGPLv3+
98ae9c2
Url: http://www.gnu.org/software/libunistring/
98ae9c2
Source0: http://ftp.gnu.org/gnu/libunistring/%{name}-%{version}.tar.gz
98ae9c2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
98ae9c2
Requires(post): info
98ae9c2
Requires(preun): info
98ae9c2
98ae9c2
# Patches
98ae9c2
Patch0001: 0001-Add-NULL-check-for-malloc-in-two-uninorm-files.patch
98ae9c2
98ae9c2
%description
98ae9c2
This portable C library implements Unicode string types in three flavours:
98ae9c2
(UTF-8, UTF-16, UTF-32), together with functions for character processing
98ae9c2
(names, classifications, properties) and functions for string processing
98ae9c2
(iteration, formatted output, width, word breaks, line breaks, normalization,
98ae9c2
case folding and regular expressions).
98ae9c2
98ae9c2
%package devel
98ae9c2
Group: Development/Libraries
98ae9c2
Summary: GNU Unicode string library - development files
98ae9c2
Requires: %{name} = %{version}-%{release}
98ae9c2
98ae9c2
%description devel
98ae9c2
Development files for programs using libunistring.
98ae9c2
98ae9c2
%prep
98ae9c2
%setup -q
98ae9c2
98ae9c2
%patch0001 -p1
98ae9c2
98ae9c2
%build
98ae9c2
%configure --disable-static --disable-rpath
98ae9c2
make %{?_smp_mflags}
98ae9c2
98ae9c2
%install
98ae9c2
rm -rf $RPM_BUILD_ROOT
98ae9c2
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
98ae9c2
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
98ae9c2
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}.la
98ae9c2
98ae9c2
%clean
98ae9c2
rm -rf $RPM_BUILD_ROOT
98ae9c2
98ae9c2
%files
98ae9c2
%defattr(-,root,root,-)
98ae9c2
%doc AUTHORS NEWS README
98ae9c2
%{_libdir}/%{name}.so.*
98ae9c2
98ae9c2
%files devel
98ae9c2
%defattr(-,root,root,-)
98ae9c2
%doc HACKING DEPENDENCIES THANKS ChangeLog
98ae9c2
%doc %{_datadir}/doc/%{name}/*.html
98ae9c2
%{_infodir}/%{name}.info*
98ae9c2
%{_libdir}/%{name}.so
98ae9c2
%{_includedir}/unistring
98ae9c2
%{_includedir}/*.h
98ae9c2
98ae9c2
%post -p /sbin/ldconfig
98ae9c2
98ae9c2
%postun -p /sbin/ldconfig
98ae9c2
98ae9c2
%post devel
98ae9c2
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
98ae9c2
98ae9c2
%preun devel
98ae9c2
if [ $1 = 0 ]; then
98ae9c2
   /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
98ae9c2
fi
98ae9c2
98ae9c2
%changelog
98ae9c2
* Wed Feb 29 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-5
98ae9c2
- Resolves: rhbz#732017 - Malloc without NULL check
98ae9c2
98ae9c2
* Mon Sep 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-4
98ae9c2
- Resolves: rhbz#737592 - %%preun error while uninstalling libunistring-devel
98ae9c2
98ae9c2
* Tue Aug 02 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-3
98ae9c2
- Imported from Fedora
98ae9c2
- Resolves: rhbz#726463 - Add libunistring as a separate component/package
98ae9c2
                          into RHEL
98ae9c2