Browse Source

SDL2 2.0.5-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11031 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 7 years ago
parent
commit
b5b5278bd5
1 changed files with 15 additions and 12 deletions
  1. 15 12
      S/SDL2/SDL2-vl.spec

+ 15 - 12
S/SDL2/SDL2.spec → S/SDL2/SDL2-vl.spec

@@ -1,12 +1,11 @@
-%if 0%{?epel}
+%define ver 2.0.5
+%define rel 1
+
 %bcond_with wayland
-%else
-%bcond_without wayland
-%endif
 
 Name:           SDL2
-Version:        2.0.3
-Release:        9%{?dist}
+Version:        %{ver}
+Release:        %{rel}%{?_dist_release}
 Summary:        A cross-platform multimedia library
 Group:          System Environment/Libraries
 URL:            http://www.libsdl.org/
@@ -14,8 +13,6 @@ License:        zlib and MIT
 Source0:        http://www.libsdl.org/release/%{name}-%{version}.tar.gz
 Source1:        SDL_config.h
 Patch0:         multilib.patch
-# https://hg.libsdl.org/SDL/rev/7e843b8b8301
-Patch1:		SDL2-2.0.3-oldgcc.patch
 
 BuildRequires:  alsa-lib-devel
 BuildRequires:  audiofile-devel
@@ -34,7 +31,6 @@ BuildRequires:  libusb-devel
 BuildRequires:  pulseaudio-libs-devel
 BuildRequires:  libXinerama-devel
 BuildRequires:  libXcursor-devel
-BuildRequires:  systemd-devel
 # Wayland
 %if %{with wayland}
 BuildRequires:  libwayland-client-devel
@@ -64,7 +60,6 @@ Requires:   libXrender-devel
 Requires:   libXScrnSaver-devel
 Requires:   libXinerama-devel
 Requires:   libXcursor-devel
-Requires:   systemd-devel
 %if %{with wayland}
 # Wayland
 Requires:   libwayland-client-devel
@@ -79,10 +74,13 @@ to provide fast access to the graphics frame buffer and audio device. This
 package provides the libraries, include files, and other resources needed for
 developing SDL applications.
 
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: iwaim
+
 %prep
 %setup -q
-%patch0 -p1 -b .multilib
-%patch1 -p1 -b .oldgcc
+#%patch0 -p1 -b .multilib
 # Compilation without ESD
 sed -i -e 's/.*AM_PATH_ESD.*//' configure.in
 sed -i -e 's/\r//g' TODO.txt README.txt WhatsNew.txt BUGS.txt COPYING.txt CREDITS.txt README-SDL.txt
@@ -127,10 +125,15 @@ rm -f %{buildroot}%{_libdir}/*.a
 %{_bindir}/*-config
 %{_libdir}/lib*.so
 %{_libdir}/pkgconfig/sdl2.pc
+%dir %{_libdir}/cmake/SDL2
+%{_libdir}/cmake/SDL2/sdl2-config.cmake
 %{_includedir}/SDL2
 %{_datadir}/aclocal/*
 
 %changelog
+* Sat Apr 15 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.5-1
+- initial build for Vine Linux
+
 * Wed Nov 18 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-9
 - Use bcond instead