%define prefix /usr

Summary: A unicode manipulation library
Name: libunicode
Version: @VERSION@
Release: 1
Copyright: LGPL
Group: System Environment/Libraries
Source: http://www.pango.org/download/libunicode-%{version}.tar.gz
BuildRoot: /var/tmp/libunicode-%{PACKAGE_VERSION}-root

%description
A library to handle unicode strings

%package devel
Summary: A unicode manipulation library
Group: Development/Libraries

%description devel
The libunicode-devel package includes the static libraries and header files
for the libunicode package.

Install libunicode-devel if you want to develop programs which will use
libunicode.

%changelog
* Fri Feb 11 2000 Owen Taylor <otaylor@redhat.com>
- Upgrade to 0.4
- Correct License: to LGPL
- Remove man-compress/strip. New versions of RPM handle this.
- Switch to using DESTDIR
- Split off a -devel package
- Run ldconfig in %post and %postun

* Fri Jan 21 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.3-3mdk
- libtoolize --force.

* Tue Nov 02 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- rebuild for new environmint

* Thu Aug 05 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- first rpm version

%prep
%setup

%build
./configure --prefix=%{prefix} --sysconfdir=/etc
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{prefix}

make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%doc README AUTHORS COPYING ChangeLog TODO
%{prefix}/lib/libunicode.so.*.*.*

%files devel
%defattr(-, root, root)
%{prefix}/lib/libunicode.so
%{prefix}/lib/libunicode.a
%{prefix}/include/*
%{prefix}/bin/unicode-config

