Switched the RPM spec file to SDL 2.0
authorSam Lantinga <slouken@libsdl.org>
Sun, 22 Jan 2012 17:50:35 -0500
changeset 625525bfc0f21c56
parent 6254 4aa9714c1983
child 6256 1d905b13b102
Switched the RPM spec file to SDL 2.0
SDL.spec.in
SDL2.spec.in
     1.1 --- a/SDL.spec.in	Sun Jan 22 17:41:33 2012 -0500
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,113 +0,0 @@
     1.4 -Summary: Simple DirectMedia Layer
     1.5 -Name: SDL
     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
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/SDL2.spec.in	Sun Jan 22 17:50:35 2012 -0500
     2.3 @@ -0,0 +1,113 @@
     2.4 +Summary: Simple DirectMedia Layer
     2.5 +Name: SDL2
     2.6 +Version: @SDL_VERSION@
     2.7 +Release: 1
     2.8 +Source: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
     2.9 +URL: http://www.libsdl.org/
    2.10 +License: zlib
    2.11 +Group: System Environment/Libraries
    2.12 +BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
    2.13 +Prefix: %{_prefix}
    2.14 +%ifos linux
    2.15 +Provides: libSDL-1.2.so.0
    2.16 +%endif
    2.17 +
    2.18 +%define __defattr %defattr(-,root,root)
    2.19 +%define __soext so
    2.20 +
    2.21 +%description
    2.22 +This is the Simple DirectMedia Layer, a generic API that provides low
    2.23 +level access to audio, keyboard, mouse, and display framebuffer across
    2.24 +multiple platforms.
    2.25 +
    2.26 +%package devel
    2.27 +Summary: Libraries, includes and more to develop SDL applications.
    2.28 +Group: Development/Libraries
    2.29 +Requires: %{name} = %{version}
    2.30 +
    2.31 +%description devel
    2.32 +This is the Simple DirectMedia Layer, a generic API that provides low
    2.33 +level access to audio, keyboard, mouse, and display framebuffer across
    2.34 +multiple platforms.
    2.35 +
    2.36 +This is the libraries, include files and other resources you can use
    2.37 +to develop SDL applications.
    2.38 +
    2.39 +
    2.40 +%prep
    2.41 +%setup -q 
    2.42 +
    2.43 +%build
    2.44 +%ifos linux
    2.45 +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --disable-video-directfb
    2.46 +%else
    2.47 +%configure
    2.48 +%endif
    2.49 +make
    2.50 +
    2.51 +%install
    2.52 +rm -rf $RPM_BUILD_ROOT
    2.53 +%ifos linux
    2.54 +make install prefix=$RPM_BUILD_ROOT%{prefix} \
    2.55 +             bindir=$RPM_BUILD_ROOT%{_bindir} \
    2.56 +             libdir=$RPM_BUILD_ROOT%{_libdir} \
    2.57 +             includedir=$RPM_BUILD_ROOT%{_includedir} \
    2.58 +             datadir=$RPM_BUILD_ROOT%{_datadir} \
    2.59 +             mandir=$RPM_BUILD_ROOT%{_mandir}
    2.60 +ln -s libSDL-1.2.so.0 $RPM_BUILD_ROOT%{_libdir}/libSDL-1.1.so.0
    2.61 +%else
    2.62 +%makeinstall
    2.63 +%endif
    2.64 +
    2.65 +%clean
    2.66 +rm -rf $RPM_BUILD_ROOT
    2.67 +
    2.68 +%files
    2.69 +%{__defattr}
    2.70 +%doc README-SDL.txt COPYING CREDITS BUGS
    2.71 +%{_libdir}/lib*.%{__soext}.*
    2.72 +
    2.73 +%files devel
    2.74 +%{__defattr}
    2.75 +%doc README README-SDL.txt COPYING CREDITS BUGS WhatsNew
    2.76 +%doc docs/index.html docs/html
    2.77 +%{_bindir}/*-config
    2.78 +%{_libdir}/lib*.a
    2.79 +%{_libdir}/lib*.la
    2.80 +%{_libdir}/lib*.%{__soext}
    2.81 +%dir %{_includedir}/SDL
    2.82 +%{_includedir}/SDL/*.h
    2.83 +%{_libdir}/pkgconfig/sdl.pc
    2.84 +%{_datadir}/aclocal/*
    2.85 +%{_mandir}/man3/*
    2.86 +
    2.87 +%changelog
    2.88 +* Tue May 16 2006 Sam Lantinga <slouken@libsdl.org>
    2.89 +- Removed support for Darwin, due to build problems on ps2linux
    2.90 +
    2.91 +* Mon Jan 03 2004 Anders Bjorklund <afb@algonet.se>
    2.92 +- Added support for Darwin, updated spec file
    2.93 +
    2.94 +* Wed Jan 19 2000 Sam Lantinga <slouken@libsdl.org>
    2.95 +- Re-integrated spec file into SDL distribution
    2.96 +- 'name' and 'version' come from configure 
    2.97 +- Some of the documentation is devel specific
    2.98 +- Removed SMP support from %build - it doesn't work with libtool anyway
    2.99 +
   2.100 +* Tue Jan 18 2000 Hakan Tandogan <hakan@iconsult.com>
   2.101 +- Hacked Mandrake sdl spec to build 1.1
   2.102 +
   2.103 +* Sun Dec 19 1999 John Buswell <johnb@mandrakesoft.com>
   2.104 +- Build Release
   2.105 +
   2.106 +* Sat Dec 18 1999 John Buswell <johnb@mandrakesoft.com>
   2.107 +- Add symlink for libSDL-1.0.so.0 required by sdlbomber
   2.108 +- Added docs
   2.109 +
   2.110 +* Thu Dec 09 1999 Lenny Cartier <lenny@mandrakesoft.com>
   2.111 +- v 1.0.0
   2.112 +
   2.113 +* Mon Nov  1 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
   2.114 +- First spec file for Mandrake distribution.
   2.115 +
   2.116 +# end of file