%define name SDLmm %define version 0.1.8 %define release 4mdk %define lib_name_orig libSDLmm %define lib_major 0.1 %define lib_name %{lib_name_orig}%{lib_major} Name: %{name} Summary: C++ interface for popular GUI library gtk+ Version: %{version} Release: %{release} License: LGPL Group: System/Libraries Source: http://download.sourceforge.net/SDLmm/%{name}-%{version}.tar.bz2 URL: http://sdlmm.sourceforge.net/ Packager: Guillaume Cottenceau <gc@mandrakesoft.com> BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: libSDL-devel %description SDLmm is a C++ glue for SDL, or the Simple DirectMedia Layer, which is a generic API that provides low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D framebuffer across multiple platforms. SDLmm aims to stay as close as possible to the C API while taking advantage of native C++ features like object orientation. %package -n %{lib_name} Summary: Main library for SDLmm Group: System/Libraries Provides: %{lib_name_orig} = %{version}-%{release} %{name} = %{version}-%{release} %description -n %{lib_name} This package contains the library needed to run programs dynamically linked with SDLmm. %package -n %{lib_name}-devel Summary: Headers for developing programs that will use SDLmm Group: Development/C++ Requires: %{lib_name} = %{version} Provides: %{lib_name_orig}-devel = %{version}-%{release} %{name}-devel = %{version}-%{release} %description -n %{lib_name}-devel This package contains the headers that programmers will need to develop applications which will use SDLmm, the C++ interface to SDL. %prep %setup -q %build %configure %make %install rm -rf $RPM_BUILD_ROOT %makeinstall %post -n %{lib_name} -p /sbin/ldconfig %postun -n %{lib_name} -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files -n %{lib_name} %defattr(-, root, root) %doc AUTHORS COPYING %{_libdir}/*.so.* %files -n %{lib_name}-devel %defattr(-, root, root) %doc docs/html/*.{html,gif} NEWS README %{_bindir}/* %{_includedir}/* %{_libdir}/*.?a %{_libdir}/*.so %{_datadir}/aclocal/*.m4 %{_mandir}/*/*.bz2 %changelog * Mon Sep 2 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.1.8-4mdk - rebuild * Wed May 29 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.1.8-3mdk - recompile against latest libstdc++ * Mon Apr 29 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.1.8-2mdk - rebuild for new alsa * Wed Mar 6 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 0.1.8-1mdk - first mdk package