File clanlib.spec of Package failed_clanlib

#
# spec file for package clanlib (Version 0.6.5)
#
# Copyright (c) 2007 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:           clanlib
BuildRequires:  DirectFB-devel freeglut-devel freetype2-devel gcc-c++ hermes-devel libdrm-devel libmikmod-devel libpng-devel libtiff-devel libvorbis-devel pkgconfig xorg-x11
License:        GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group:          System/Libraries
Autoreqprov:    on
URL:            http://www.clanlib.org/
Version:        0.6.5
Release:        428
Summary:        A Portable Interface for Writing Games
Source:         ClanLib-%{version}-1.tar.bz2
Patch0:         ClanLib-%{version}-destdir.patch
Patch1:         ClanLib-%{version}-docu.patch
Patch2:         ClanLib-%{version}-fixes.patch
Patch3:         ClanLib-%{version}-show_commands.patch
Patch4:         ClanLib-%{version}-std_c++.patch
Patch5:         ClanLib-%{version}-DirectFB.patch
Patch6:         assert.patch
Patch7:         ClanLib-%{version}-cast-warn.patch
Patch8:         ClanLib-%{version}-byteorder.patch
Patch9:         ClanLib-%{version}-gcc41.patch
Patch10:        ClanLib-%{version}-noexec.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ClanLib delivers a platform-independent interface for writing games.



Authors:
--------
    Magnus Norddahl <mbn@nkdev.dk>
    Daniel Vogel <666@grafzahl.de>

%package devel
Requires:       clanlib gcc-c++ freeglut-devel hermes-devel freetype2-devel libpng-devel libtiff-devel libvorbis-devel xorg-x11-devel DirectFB-devel
Summary:        A portable interface for writing games
Group:          Development/Libraries/X11
Autoreqprov:    on                                                                

%description devel
ClanLib delivers a platform independent interface to write games with.



Authors:
--------
    Magnus Norddahl <mbn@nkdev.dk>
    Daniel Vogel <666@grafzahl.de>

%prep
%setup -q -n ClanLib-%{version}
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6 -p1
%patch7
%patch8
%patch9 -p1
%patch10 -p1
find -name ".cvsignore" | xargs rm -fv
chmod -R a-s *

%build
%{?suse_update_config:%{suse_update_config}}
autoreconf --force --install
export CFLAGS=`echo $RPM_OPT_FLAGS -fno-strict-aliasing| sed -e "s|-mcpu=i686||g"`
export CXXFLAGS=$CFLAGS
%define common_conf --prefix=/usr --mandir=%{_mandir} --libdir=%{_libdir}
%ifarch %ix86
./configure %common_conf --enable-asm386 --enable-vidmode --enable-joystick
%else
./configure %common_conf --disable-asm386 --disable-fbdev --enable-vidmode --enable-joystick
%endif
make %{?jobs:-j%jobs}
make docs

%install
rm -rf $RPM_BUILD_ROOT
DOCDIR=$RPM_BUILD_ROOT/%{_defaultdocdir}/clanlib-devel
DOCS="BUGS CODING_STYLE COPYING CREDITS HARDWARE INSTALL.linux PORTING \
      README README.fbdev README.gui README.upgrade ROADMAP ascii-logo"
rm -rf $DOCDIR 
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT HTML_PREFIX=$DOCDIR/Docs docs_install
chmod 644 $DOCS
install -m 644 $DOCS $DOCDIR
cp -r Documentation/Examples $DOCDIR
find $DOCDIR -type d -exec chmod 755 {} \;
find $DOCDIR -type f -exec chmod 644 {} \;
rm $RPM_BUILD_ROOT/%{_libdir}/libclan*.a

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%{_libdir}/libclan*.so.*
%doc BUGS COPYING CREDITS README

%files devel
%defattr(-, root, root)
%docdir %{_defaultdocdir}/clanlib-devel
%{_defaultdocdir}/clanlib-devel
#%doc %{_mandir}/*/*
/usr/bin/clanlib-config
/usr/include/ClanLib
%{_libdir}/libclan*.so
#/usr/lib/ClanLib

%changelog
* Thu May 24 2007 - ro@suse.de
- added ldconfig to postscript
* Wed Apr 11 2007 - sbrabec@suse.cz
- Require just created libmikmod-devel instead of libmikmod.
* Wed Feb 07 2007 - ro@suse.de
- do not build as root
* Mon Dec 11 2006 - meissner@suse.de
- mark up assembler as needing no executable stack.
* Tue Oct 17 2006 - ro@suse.de
- use DirectFB-devel in BuildRequires
- add DirectFB-devel to require-list in devel package
* Thu Jul 13 2006 - nadvornik@suse.cz
- fixed compile with new directfb
* Mon Jan 30 2006 - nadvornik@suse.cz
- cleared setgid on source archive files
* Fri Jan 27 2006 - nadvornik@suse.cz
- fixed Requires of devel subpackage
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 29 2005 - meissner@suse.de
- fno-strict-aliasing.
* Mon Oct 17 2005 - meissner@suse.de
- fixed gcc41 C++ problems.
* Mon Feb 28 2005 - meissner@suse.de
- Fixed gcc4 C++ problems.
* Wed Jul 21 2004 - schwab@suse.de
- Fix inappropriate mixing of signed and unsigned.
- Fix missing shifts.
* Wed Jul 21 2004 - schwab@suse.de
- Fix stupid endian bug.
* Wed Jan 14 2004 - ro@suse.de
- build with current DirectFB
* Wed Aug 27 2003 - nadvornik@suse.cz
- do not package static libraries
* Thu Aug 14 2003 - nadvornik@suse.cz
- fixed cast warnings
* Mon May 19 2003 - ro@suse.de
- add static libs to devel subpackage
- remove .cvsignore files from package
* Tue Feb 25 2003 - aj@suse.de
- Include missing assert.
* Fri Feb 07 2003 - mcihar@suse.cz
- updated to 0.6.5:
    - DirectFB updates.
    - Misc minor bug fixes.
- compiled with joystick support
* Fri Feb 07 2003 - ro@suse.de
- DirectFB-0.9.16 changed DSPF_RGB15 to DSPF_ARGB1555
* Mon Aug 26 2002 - nadvornik@suse.cz
- fixed mode of doc files
* Fri Jul 05 2002 - kukuk@suse.de
- Use %%ix86 macro
* Thu Jul 04 2002 - ro@suse.de
- fix for libpng (add -lz)
* Mon Jun 17 2002 - meissner@suse.de
- also run suse_update_config so we get a new and fresh config.guess.
* Fri Jun 07 2002 - ro@suse.de
- use latest snapshot from 0.6 branch to compile with
  DirectFB 0.9.11
* Sat Jun 01 2002 - ro@suse.de
- changed neededforbuild <libmikmo> to <libmikmod>
* Mon May 06 2002 - ro@suse.de
- removed "-j3" from make call
* Fri May 03 2002 - pthomas@suse.de
- Update to 0.6.1.
- Fix code to compile with gcc 3.1.
- Remove 'using namespace std;' from clanlib header.
- Add patch to support DESTDIR.
- Enable support for vorbis.
- Add freetype2, pkgconfig, DirectFB, libogg and libvorbis
  to #neededforbuild.
* Fri Apr 26 2002 - stepan@suse.de
- fix lib path
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Wed Jan 23 2002 - nadvornik@suse.cz
- updated to 0.5.3
* Thu Nov 22 2001 - nadvornik@suse.cz
- fixed problem with absolute paths to resources
- do not use -mcpu=i686, it is not compiled correctly
* Tue Nov 13 2001 - nadvornik@suse.cz
- fixed to compile on ia64
* Mon Nov 12 2001 - nadvornik@suse.cz
- updated to 0.5.1
  - many bugfixes
  - updated documentation
* Mon Nov 12 2001 - ro@suse.de
- no svgalib
* Thu Nov 08 2001 - ro@suse.de
- use mesa-devel-packages in neededforbuild
* Thu Aug 23 2001 - uli@suse.de
- build with RPM_OPT_FLAGS (i.e. with optimizations; seems to
  untrigger internal compiler error on IA64)
* Thu Jun 21 2001 - nadvornik@suse.cz
- some fixes for 64bit archs
* Wed Jun 06 2001 - nadvornik@suse.cz
- update to 0.5.0
* Tue May 08 2001 - mfabian@suse.de
- bzip2 sources
* Thu Mar 22 2001 - nadvornik@suse.cz
- freetype in neededforbuild was needless, removed
* Thu Mar 15 2001 - ro@suse.de
- changed neededforbuild <mesaglu> to <xf86glu>
- changed neededforbuild <mesaglu-devel> to <xf86glu-devel>
* Wed Mar 07 2001 - ro@suse.de
- changed neededforbuild <mesadev> to <mesa-devel>
* Mon Feb 26 2001 - nadvornik@suse.cz
- fixed to compile on axp
* Mon Dec 11 2000 - kukuk@suse.de
- Remove Requires, RPM can solve this better
* Fri Jul 28 2000 - nadvornik@suse.cz
- compiled with xdevel3 to work with xf86 3.3.6
* Thu Jul 20 2000 - nadvornik@suse.cz
- fixed bug with mouse in fullscreen
* Thu Jul 13 2000 - nadvornik@suse.cz
- configure with --enable-vidmode
* Tue May 30 2000 - nadvornik@suse.cz
- update to 0.4.4
* Mon May 22 2000 - nadvornik@suse.cz
- used %%{_defaultdocdir}
- added mesadev to neededforbuild
* Fri Apr 28 2000 - nadvornik@suse.cz
- fixed to compile with xf86-4.0
* Wed Apr 12 2000 - nadvornik@suse.cz
- update to 0.4.3
- added BuildRoot
- added URL
* Thu Mar 16 2000 - kukuk@suse.de
- Remove framebuffer support for SPARC
* Tue Mar 14 2000 - ro@suse.de
- fixed to compile on alpha
  Mon Feb 28 19:17:11 MET 2000 - sndirschsuse.de
- fixed some problems with undefined symbols in libclanMagick.so
- added shared library libMagick.so again for this
* Fri Feb 18 2000 - sndirsch@suse.de
- Magicklib is now built statically and not longer included by
  clanlib
* Fri Feb 18 2000 - sndirsch@suse.de
- updated to CVS tag "version-0-4-0-SuSE"
* Thu Feb 17 2000 - sndirsch@suse.de
- updated to release 0.4.0
* Wed Feb 09 2000 - sndirsch@suse.de
- changed group tag
* Thu Jan 20 2000 - sndirsch@suse.de
- added Requires field for libpng
* Tue Dec 28 1999 - sndirsch@suse.de
- created clanlib package
openSUSE Build Service is sponsored by