File libtwin0.spec of Package libtwin0

#
# spec file for package libtwin0 (Version 0.0.3)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libtwin0
Version:        0.0.3
Release:        47
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
Patch2:         libtwin0-broken-open.diff
Group:          Development/Libraries/Other

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



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

%build
%configure \
	--disable-static \
	CFLAGS="$RPM_OPT_FLAGS -Wextra -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
* Tue Mar 10 2009 sf@suse.de
- broken error case in cursor_open() (bnc #432592)
  gzopen() returns a pointer, open() an integer
* 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