File agatelib.spec of Package agatelib

Name:           agatelib
BuildRequires:  mono >= 2.0 , mono-devel >= 2.0

Version:        0.3.1+svn.903
Release:        1
License:        MPL v1.1
Source:         agatelib.svn.903.tar.bz2
Group:          Development/Libraries/Mono
Summary:        Awesome game and tool engine library

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
AgateLib - the Awesome Game And Tool Engine Library - is a free, open
source, cross platform .NET library for 2D game development.
It supports multiple backends for hardware accelerated rendering and
playing audio through a plug-in architecture. Best of all it's easy to
use! 
Warning this is the SVN ("unstable") version!
Package currently in developing.

%package -n %{name}-devel
Summary:        Awesome game and tool engine library
Group:          Development/Libraries/Mono
Requires:	%{name} = %{version}

%description -n %{name}-devel
Devel package of AgateLib.
Contains pkgconfig files.
# TODO: should contain test applications, too

%package -n %{name}-SDL
Summary:        SDL drivers for AgateLib
Group:          Development/Libraries/Mono
Requires:	%{name} = %{version}
#BuildRequires:	taoframework-sdl
# TODO: should require taoframework-sdl

%description -n %{name}-SDL
SDL driver package for AgateLib.
This driver is for keyboard/joystick input
and audio supoort.

%package -n %{name}-OpenTK
Summary:        OpenTK drivers for AgateLib
Group:          Development/Libraries/Mono
Requires:	%{name} = %{version}

%description -n %{name}-OpenTK
OpenTK driver package for AgateLib.
This driver is for rendering through OpenGL.

%package -n %{name}-FMOD
Summary:        FMOD driver for AgateLib
Group:          Development/Libraries/Mono
Requires:	%{name} = %{version}

%description -n %{name}-FMOD
FMOD driver package for AgateLib.
This driver is for audio support.

%prep
%setup -q -n agate-0.1

%build
./configure --prefix=/usr

make %{?jobs:-j%jobs}

%install
%makeinstall

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
/usr/lib/agate/
/usr/lib/agate/AgateLib.dll
/usr/lib/agate/AgateDrawing.dll
/usr/lib/agate/AgateLib.WinForms.dll

# TODO: remove none AgateLib files
# NOTE: files below should be removed
   /usr/lib/agate/libogg-0.dll
   /usr/lib/agate/libvorbis-0.dll
   /usr/lib/agate/libvorbisfile-3.dll

%files -n %{name}-FMOD
%defattr(-,root,root)
/usr/lib/agate/AgateFMOD.dll

%files -n %{name}-OpenTK
%defattr(-,root,root)
/usr/lib/agate/AgateOTK.dll

# NOTE: files below should be removed
# Creating an extra package for OpenTK
/usr/lib/agate/OpenTK.Utilities.dll
/usr/lib/agate/OpenTK.Utilities.dll.config
/usr/lib/agate/OpenTK.dll
/usr/lib/agate/OpenTK.dll.config

%files -n %{name}-SDL
%defattr(-,root,root)
/usr/lib/agate/AgateSDL.dll

# NOTE: files below should be removed
/usr/lib/agate/SDL.dll
/usr/lib/agate/SDL_mixer.dll
/usr/lib/agate/Readme-SDL.txt
/usr/lib/agate/Tao.Sdl.dll
/usr/lib/agate/Tao.Sdl.dll.config

%files -n %{name}-devel
%defattr(-,root,root)
/usr/lib/pkgconfig/agatedrawing.pc
/usr/lib/pkgconfig/agatefmod.pc
/usr/lib/pkgconfig/agatelib.pc
/usr/lib/pkgconfig/agatelib.winforms.pc
/usr/lib/pkgconfig/agateotk.pc
/usr/lib/pkgconfig/agatesdl.pc

%changelog
* Sun Apr 26 2009 - Marcel Hauf - <marcel.hauf@googlemail.com> 0.3.1+svn.903
- Changed group to Development/Libraries/Mono
- added stable version beforce svn version
* Sat Apr 25 2009 - Marcel Hauf - <marcel.hauf@googlemail.com> svn.903
- packaged agatelib version svn.903 using the buildservice spec file wizard
openSUSE Build Service is sponsored by