File SDLmm.spec of Package SDLmm

#
# spec file for package SDLmm (Version 0.1.8)
#
# 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:           SDLmm
BuildRequires:  SDL-devel gcc-c++
Summary:        Simple DirectMedia Layer Glue for C++
Version:        0.1.8
Release:        1094
Source:         %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}.patch
Patch1:         %{name}-%{version}-lib64.patch
Patch2:         %{name}-%{version}-autoheader.patch
Patch3:         %{name}-%{version}-m4.patch
Patch4:         %{name}-%{version}-makefile.patch
Url:            http://sdlmm.sourceforge.net/
License:        LGPL v2.1 or later
Group:          System/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
SDLmm aims to stay as close as possible to the C API while taking
advantage of native C++ features like object oriented programming. It
also aims to be as platform independent as possible. In other words, it
tries to support every platform that SDL supports.



Authors:
--------
    David Hedbor <david@hedbor.org>
    Adam Gates <radad@xoasis.com>

%package devel
License:        LGPL v2.1 or later
Summary:        Libraries, includes and more to develop SDLmm applications
Group:          Development/Libraries/X11
Requires:       %{name} = %{version} SDL-devel libstdc++-devel

%description devel
SDLmm aims to stay as close as possible to the C API while taking
advantage of native C++ features like object orientation. We will also
aim at being platform independent as much as possible. I.e we'll try to
support ever platform supported by SDL.



Authors:
--------
    David Hedbor <david@hedbor.org>
    Adam Gates <radad@xoasis.com>

%prep
%setup -q
%patch
%patch1
%patch2
%patch3
%patch4
rm acconfig.h
rm acinclude.m4 

%build
autoreconf -fi
export CXXFLAGS="$RPM_OPT_FLAGS -W -Wall -Wpointer-arith"
%configure --disable-static --with-pic
make %{?jobs:-j %jobs}

%install
make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/*.la
rm -f docs/html/Makefil*

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%doc AUTHORS COPYING NEWS README* THANKS

%files devel
%defattr(-,root,root)
/usr/bin/sdlmm-config
/usr/include/SDLmm
%{_libdir}/*.so
%{_mandir}/man3/*
/usr/share/aclocal/*
%doc docs/html

%changelog
* Sat Jul 05 2008 crrodriguez@suse.de
- remove unusable static libraries
- cleanup buildRequires and -devel package dependencies
* Sun Jul 22 2007 aj@suse.de
- Cleanup BuildRequires.
* Fri Mar 02 2007 prusnak@suse.cz
- cleaned spec file
* Mon Oct 16 2006 schwab@suse.de
- Use install-exec-hook instead of install-hook.
* Wed Sep 13 2006 nadvornik@suse.cz
- fixed Requires of devel subpackage [#192736]
- moved .la file to devel subpackage
* Fri Jan 27 2006 nadvornik@suse.cz
- fixed BuildRequires and Requires of devel subpackage
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 02 2004 pth@suse.de
- Get rid of acconfig.h
- Call autoreconf from spec
- Fix quoting in sdlmm.m4
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Tue May 28 2002 nadvornik@suse.cz
- fixed rpath for lib64 in sdlmm-config
* Fri May 10 2002 ro@suse.de
- libdir fixed
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Tue Jan 22 2002 ro@suse.de
- changed neededforbuild <kdelibs-artsd> to <kdelibs3-artsd>
* Mon Nov 26 2001 nadvornik@suse.cz
- new package, version 0.1.8
openSUSE Build Service is sponsored by