File libunicode.spec of Package libunicode

# Initial package, based on the old SUSE package.

BuildRequires: gcc autoconf automake libtool

Name:         libunicode0
License:      GPL
Group:        System/Libraries
Autoreqprov:  on
Version:      0.4
Release:      1ash
Provides:	  libunicode = %{version}
Obsoletes:      libunicode <= %{version}
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Source:       http://www.pango.org/download/libunicode-%{version}.tar.bz2
Patch1:       libunicode.dif
Patch2:       libunicode_config_libdir.diff
Summary:      A Unicode handling Library

%description
A unicode handling library. Used to be used by GNOME.


%package -n libunicode-devel
License:        GPL
Requires:       glibc-devel libunicode0 = %{version}
Group:          Development/Libraries/C and C++
Summary:        Development Tools for applications which will use the libunicode

%description -n libunicode-devel
A unicode handling library. Used to be used by GNOME.
This package contains the header files and static libraries for
developing programs.

%prep
%setup -q -n libunicode-%{version}
autoreconf --force --install
#CFLAGS="$RPM_OPT_FLAGS"
%configure

%build
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
#sed -e "s/@lib@/%_lib/" unicodeConf.sh \
#	> $RPM_BUILD_ROOT%{prefix}/%{_lib}/unicodeConf.sh

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root)
%{_libdir}/libunicode.so.0*

%files -n libunicode-devel
%defattr(-,root,root)
%{_bindir}/*
%{_includedir}/*
%{_libdir}/libunicode*.so
%{_libdir}/libunicode*a
%doc README AUTHORS COPYING ChangeLog TODO

%changelog
* Fri May 30 2009 Alexander Shaduri
- Initial .spec file
openSUSE Build Service is sponsored by