SDL2.spec.in
changeset 6255 25bfc0f21c56
parent 5537 8a66741be632
child 6265 01bf72bcad1e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/SDL2.spec.in	Sun Jan 22 17:50:35 2012 -0500
     1.3 @@ -0,0 +1,113 @@
     1.4 +Summary: Simple DirectMedia Layer
     1.5 +Name: SDL2
     1.6 +Version: @SDL_VERSION@
     1.7 +Release: 1
     1.8 +Source: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
     1.9 +URL: http://www.libsdl.org/
    1.10 +License: zlib
    1.11 +Group: System Environment/Libraries
    1.12 +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
    1.13 +Prefix: %{_prefix}
    1.14 +%ifos linux
    1.15 +Provides: libSDL-1.2.so.0
    1.16 +%endif
    1.17 +
    1.18 +%define __defattr %defattr(-,root,root)
    1.19 +%define __soext so
    1.20 +
    1.21 +%description
    1.22 +This is the Simple DirectMedia Layer, a generic API that provides low
    1.23 +level access to audio, keyboard, mouse, and display framebuffer across
    1.24 +multiple platforms.
    1.25 +
    1.26 +%package devel
    1.27 +Summary: Libraries, includes and more to develop SDL applications.
    1.28 +Group: Development/Libraries
    1.29 +Requires: %{name} = %{version}
    1.30 +
    1.31 +%description devel
    1.32 +This is the Simple DirectMedia Layer, a generic API that provides low
    1.33 +level access to audio, keyboard, mouse, and display framebuffer across
    1.34 +multiple platforms.
    1.35 +
    1.36 +This is the libraries, include files and other resources you can use
    1.37 +to develop SDL applications.
    1.38 +
    1.39 +
    1.40 +%prep
    1.41 +%setup -q 
    1.42 +
    1.43 +%build
    1.44 +%ifos linux
    1.45 +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --disable-video-directfb
    1.46 +%else
    1.47 +%configure
    1.48 +%endif
    1.49 +make
    1.50 +
    1.51 +%install
    1.52 +rm -rf $RPM_BUILD_ROOT
    1.53 +%ifos linux
    1.54 +make install prefix=$RPM_BUILD_ROOT%{prefix} \
    1.55 +             bindir=$RPM_BUILD_ROOT%{_bindir} \
    1.56 +             libdir=$RPM_BUILD_ROOT%{_libdir} \
    1.57 +             includedir=$RPM_BUILD_ROOT%{_includedir} \
    1.58 +             datadir=$RPM_BUILD_ROOT%{_datadir} \
    1.59 +             mandir=$RPM_BUILD_ROOT%{_mandir}
    1.60 +ln -s libSDL-1.2.so.0 $RPM_BUILD_ROOT%{_libdir}/libSDL-1.1.so.0
    1.61 +%else
    1.62 +%makeinstall
    1.63 +%endif
    1.64 +
    1.65 +%clean
    1.66 +rm -rf $RPM_BUILD_ROOT
    1.67 +
    1.68 +%files
    1.69 +%{__defattr}
    1.70 +%doc README-SDL.txt COPYING CREDITS BUGS
    1.71 +%{_libdir}/lib*.%{__soext}.*
    1.72 +
    1.73 +%files devel
    1.74 +%{__defattr}
    1.75 +%doc README README-SDL.txt COPYING CREDITS BUGS WhatsNew
    1.76 +%doc docs/index.html docs/html
    1.77 +%{_bindir}/*-config
    1.78 +%{_libdir}/lib*.a
    1.79 +%{_libdir}/lib*.la
    1.80 +%{_libdir}/lib*.%{__soext}
    1.81 +%dir %{_includedir}/SDL
    1.82 +%{_includedir}/SDL/*.h
    1.83 +%{_libdir}/pkgconfig/sdl.pc
    1.84 +%{_datadir}/aclocal/*
    1.85 +%{_mandir}/man3/*
    1.86 +
    1.87 +%changelog
    1.88 +* Tue May 16 2006 Sam Lantinga <slouken@libsdl.org>
    1.89 +- Removed support for Darwin, due to build problems on ps2linux
    1.90 +
    1.91 +* Mon Jan 03 2004 Anders Bjorklund <afb@algonet.se>
    1.92 +- Added support for Darwin, updated spec file
    1.93 +
    1.94 +* Wed Jan 19 2000 Sam Lantinga <slouken@libsdl.org>
    1.95 +- Re-integrated spec file into SDL distribution
    1.96 +- 'name' and 'version' come from configure 
    1.97 +- Some of the documentation is devel specific
    1.98 +- Removed SMP support from %build - it doesn't work with libtool anyway
    1.99 +
   1.100 +* Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
   1.101 +- Hacked Mandrake sdl spec to build 1.1
   1.102 +
   1.103 +* Sun Dec 19 1999 John Buswell <johnb@mandrakesoft.com>
   1.104 +- Build Release
   1.105 +
   1.106 +* Sat Dec 18 1999 John Buswell <johnb@mandrakesoft.com>
   1.107 +- Add symlink for libSDL-1.0.so.0 required by sdlbomber
   1.108 +- Added docs
   1.109 +
   1.110 +* Thu Dec 09 1999 Lenny Cartier <lenny@mandrakesoft.com>
   1.111 +- v 1.0.0
   1.112 +
   1.113 +* Mon Nov  1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
   1.114 +- First spec file for Mandrake distribution.
   1.115 +
   1.116 +# end of file