File SDLmm.spec of Package SDLmm

#
# spec file for package SDLmm (Version 0.1.8)
#
# Copyright (c) 2010 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:           SDLmm
BuildRequires:  gcc-c++ libSDL-devel
Summary:        Simple DirectMedia Layer Glue for C++
Version:        0.1.8
Release:        1142
Source:         %{name}-%{version}.tar.bz2
Source2:        baselibs.conf
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:        LGPLv2.1+
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 -n libSDLmm-0_1-8
Group:          System/Libraries
Summary:        Simple DirectMedia Layer Glue for C++
License:        LGPLv2.1+
Provides:       SDLmm = %{version}
Obsoletes:      SDLmm <= %{version}

%description -n libSDLmm-0_1-8
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 -n libSDLmm-devel
License:        LGPLv2.1+
Summary:        Libraries, includes and more to develop SDLmm applications
Group:          Development/Libraries/X11
Requires:       libSDLmm-0_1-8 = %{version} libSDL-devel libstdc++-devel
Provides:       SDLmm-devel = %{version}
Obsoletes:      SDLmm-devel <= %{version}

%description -n libSDLmm-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
%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 -n libSDLmm-0_1-8 -p /sbin/ldconfig

%postun -n libSDLmm-0_1-8 -p /sbin/ldconfig

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

%files -n libSDLmm-devel
%defattr(-,root,root)
%doc docs/html
%{_bindir}/sdlmm-config
%{_includedir}/SDLmm
%{_libdir}/*.so
%{_mandir}/man3/*
%{_datadir}/aclocal/*

%changelog