94a1ffd
Name: libunistring
d1116eb
Version: 0.9.3
d1116eb
Release: 1%{?dist}
94a1ffd
Group: System Environment/Libraries
94a1ffd
Summary: GNU Unicode string library
94a1ffd
License: LGPLv3+
94a1ffd
Url: http://www.gnu.org/software/libunistring/
94a1ffd
Source0: http://ftp.gnu.org/gnu/libunistring/%{name}-%{version}.tar.gz
94a1ffd
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
94a1ffd
Requires(post): info
94a1ffd
Requires(preun): info
94a1ffd
94a1ffd
%description
94a1ffd
This portable C library implements Unicode string types in three flavours:
94a1ffd
(UTF-8, UTF-16, UTF-32), together with functions for character processing
94a1ffd
(names, classifications, properties) and functions for string processing
94a1ffd
(iteration, formatted output, width, word breaks, line breaks, normalization,
94a1ffd
case folding and regular expressions).
94a1ffd
94a1ffd
%package devel
94a1ffd
Group: Development/Libraries
94a1ffd
Summary: GNU Unicode string library - development files
94a1ffd
Requires: %{name} = %{version}-%{release}
94a1ffd
94a1ffd
%description devel
94a1ffd
Development files for programs using libunistring.
94a1ffd
94a1ffd
%prep
94a1ffd
%setup -q
94a1ffd
94a1ffd
%build
94a1ffd
%configure --disable-static --disable-rpath
94a1ffd
make %{?_smp_mflags}
94a1ffd
94a1ffd
%install
94a1ffd
rm -rf $RPM_BUILD_ROOT
94a1ffd
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
94a1ffd
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
94a1ffd
rm -f $RPM_BUILD_ROOT/%{_libdir}/%{name}.la
94a1ffd
94a1ffd
%clean
94a1ffd
rm -rf $RPM_BUILD_ROOT
94a1ffd
94a1ffd
%files
94a1ffd
%defattr(-,root,root,-)
94a1ffd
%doc AUTHORS NEWS README
94a1ffd
%{_libdir}/%{name}.so.*
94a1ffd
94a1ffd
%files devel
94a1ffd
%defattr(-,root,root,-)
94a1ffd
%doc HACKING DEPENDENCIES THANKS ChangeLog
94a1ffd
%doc %{_datadir}/doc/%{name}/*.html
94a1ffd
%{_infodir}/%{name}.info*
94a1ffd
%{_libdir}/%{name}.so
94a1ffd
%{_includedir}/unistring
94a1ffd
%{_includedir}/*.h
94a1ffd
94a1ffd
%post -p /sbin/ldconfig
94a1ffd
94a1ffd
%postun -p /sbin/ldconfig
94a1ffd
94a1ffd
%post devel
94a1ffd
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
94a1ffd
94a1ffd
%preun devel
94a1ffd
if [ $1 = 0 ]; then
94a1ffd
   /sbin/install-info --delete %{_infodir}/{%{name}.info %{_infodir}/dir || :
94a1ffd
fi
94a1ffd
94a1ffd
%changelog
d1116eb
* Sun May 23 2010 Pádraig Brady <P@draigBrady.com> 0.9.3-1
d1116eb
- Update to 0.9.3
94a1ffd
* Thu Nov 19 2009 Pádraig Brady <P@draigBrady.com> 0.9.1-3
94a1ffd
- Remove glibc-devel and texinfo build deps
94a1ffd
* Thu Nov 19 2009 Pádraig Brady <P@draigBrady.com> 0.9.1-2
94a1ffd
- Changes as per initial review by panemade@gmail.com
94a1ffd
* Tue Nov 17 2009 Pádraig Brady <P@draigBrady.com> 0.9.1-1
94a1ffd
- Initial version
94a1ffd