File libtwin0.spec of Package libtwin0

#
# spec file for package libtwin0 (Version 0.0.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libtwin0
Version:        0.0.3
Release:        25
Url:            http://gitweb.freedesktop.org/?p=twin.git
Summary:        Twin: A tiny window system
License:        LGPL v2.0 or later; LGPL v2.1 or later
BuildRequires:  glibc-devel libjpeg-devel libpng-devel pkg-config zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2
Patch0:         libtwin.altivec-compile-fix.patch
Patch1:         libtwin.fix-variable-used-before-set.patch
Group:          Development/Libraries/Other

%description
libtwin is the 'twin' windowing system library.



%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure \
	--disable-static \
	CFLAGS="$RPM_OPT_FLAGS -flax-vector-conversions"
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean 
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files 
%defattr(-,root,root)
%{_libdir}/libtwin*.so.*
%exclude %{_libdir}/*.la

%package -n libtwin0-devel
License:        LGPL v2.1 only
Requires:       %{name} = %{version}
Summary:        Twin: A tiny window system
Group:          Development/Libraries/Other

%description -n libtwin0-devel
libtwin is the 'twin' windowing system library. This package holds the
development files.



%files -n libtwin0-devel
%defattr(-,root,root)
%dir /usr/include/libtwin
/usr/include/libtwin/*.h
%{_libdir}/libtwin.so
%{_libdir}/pkgconfig/libtwin.pc

%changelog
* Fri Jun 06 2008 sassmann@suse.de
- add patch libtwin.fix-variable-used-before-set.patch to fix
  bnc#394557
* Thu Jan 31 2008 sassmann@suse.de
- build with %%configure --disable-static
- remove .la file
* Wed Jan 30 2008 sassmann@suse.de
- initial release of libtwin0 and libtwin0-devel (version 0.0.3)
openSUSE Build Service is sponsored by