[11031] | 1 | %define ver 2.0.5 |
---|
| 2 | %define rel 1 |
---|
| 3 | |
---|
[11030] | 4 | %bcond_with wayland |
---|
| 5 | |
---|
| 6 | Name: SDL2 |
---|
[11031] | 7 | Version: %{ver} |
---|
| 8 | Release: %{rel}%{?_dist_release} |
---|
[11030] | 9 | Summary: A cross-platform multimedia library |
---|
| 10 | Group: System Environment/Libraries |
---|
| 11 | URL: http://www.libsdl.org/ |
---|
| 12 | License: zlib and MIT |
---|
| 13 | Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz |
---|
| 14 | Source1: SDL_config.h |
---|
| 15 | Patch0: multilib.patch |
---|
| 16 | |
---|
| 17 | BuildRequires: alsa-lib-devel |
---|
| 18 | BuildRequires: audiofile-devel |
---|
| 19 | BuildRequires: mesa-libGL-devel |
---|
| 20 | BuildRequires: mesa-libGLU-devel |
---|
| 21 | BuildRequires: mesa-libEGL-devel |
---|
| 22 | BuildRequires: mesa-libGLES-devel |
---|
| 23 | BuildRequires: libXext-devel |
---|
| 24 | BuildRequires: libX11-devel |
---|
| 25 | BuildRequires: libXi-devel |
---|
| 26 | BuildRequires: libXrandr-devel |
---|
| 27 | BuildRequires: libXrender-devel |
---|
| 28 | BuildRequires: dbus-devel |
---|
| 29 | BuildRequires: libXScrnSaver-devel |
---|
| 30 | BuildRequires: libusb-devel |
---|
| 31 | BuildRequires: pulseaudio-libs-devel |
---|
| 32 | BuildRequires: libXinerama-devel |
---|
| 33 | BuildRequires: libXcursor-devel |
---|
| 34 | # Wayland |
---|
| 35 | %if %{with wayland} |
---|
| 36 | BuildRequires: libwayland-client-devel |
---|
| 37 | BuildRequires: libwayland-egl-devel |
---|
| 38 | BuildRequires: libwayland-cursor-devel |
---|
| 39 | %endif |
---|
| 40 | BuildRequires: libxkbcommon-devel |
---|
| 41 | |
---|
| 42 | %description |
---|
| 43 | Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed |
---|
| 44 | to provide fast access to the graphics frame buffer and audio device. |
---|
| 45 | |
---|
| 46 | %package devel |
---|
| 47 | Summary: Files needed to develop Simple DirectMedia Layer applications |
---|
| 48 | Group: Development/Libraries |
---|
| 49 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 50 | Requires: alsa-lib-devel |
---|
| 51 | Requires: mesa-libGL-devel |
---|
| 52 | Requires: mesa-libGLU-devel |
---|
| 53 | Requires: mesa-libEGL-devel |
---|
| 54 | Requires: mesa-libGLES-devel |
---|
| 55 | Requires: libX11-devel |
---|
| 56 | Requires: libXi-devel |
---|
| 57 | Requires: libXext-devel |
---|
| 58 | Requires: libXrandr-devel |
---|
| 59 | Requires: libXrender-devel |
---|
| 60 | Requires: libXScrnSaver-devel |
---|
| 61 | Requires: libXinerama-devel |
---|
| 62 | Requires: libXcursor-devel |
---|
| 63 | %if %{with wayland} |
---|
| 64 | # Wayland |
---|
| 65 | Requires: libwayland-client-devel |
---|
| 66 | Requires: libwayland-egl-devel |
---|
| 67 | Requires: libwayland-cursor-devel |
---|
| 68 | %endif |
---|
| 69 | Requires: libxkbcommon-devel |
---|
| 70 | |
---|
| 71 | %description devel |
---|
| 72 | Simple DirectMedia Layer (SDL) is a cross-platform multimedia library designed |
---|
| 73 | to provide fast access to the graphics frame buffer and audio device. This |
---|
| 74 | package provides the libraries, include files, and other resources needed for |
---|
| 75 | developing SDL applications. |
---|
| 76 | |
---|
[11031] | 77 | Vendor: Project Vine |
---|
| 78 | Distribution: Vine Linux |
---|
| 79 | Packager: iwaim |
---|
| 80 | |
---|
[11030] | 81 | %prep |
---|
| 82 | %setup -q |
---|
[11031] | 83 | #%patch0 -p1 -b .multilib |
---|
[11030] | 84 | # Compilation without ESD |
---|
| 85 | sed -i -e 's/.*AM_PATH_ESD.*//' configure.in |
---|
| 86 | sed -i -e 's/\r//g' TODO.txt README.txt WhatsNew.txt BUGS.txt COPYING.txt CREDITS.txt README-SDL.txt |
---|
| 87 | |
---|
| 88 | %build |
---|
| 89 | %configure \ |
---|
| 90 | --enable-sdl-dlopen \ |
---|
| 91 | --disable-arts \ |
---|
| 92 | --disable-esd \ |
---|
| 93 | --disable-nas \ |
---|
| 94 | --enable-pulseaudio-shared \ |
---|
| 95 | --enable-alsa \ |
---|
| 96 | %if %{with wayland} |
---|
| 97 | --enable-video-wayland \ |
---|
| 98 | %endif |
---|
| 99 | --disable-rpath |
---|
| 100 | make %{?_smp_mflags} |
---|
| 101 | |
---|
| 102 | %install |
---|
| 103 | %make_install |
---|
| 104 | |
---|
| 105 | # Rename SDL_config.h to SDL_config-<arch>.h to avoid file conflicts on |
---|
| 106 | # multilib systems and install SDL_config.h wrapper |
---|
| 107 | mv %{buildroot}%{_includedir}/SDL2/SDL_config.h %{buildroot}%{_includedir}/SDL2/SDL_config-%{_arch}.h |
---|
| 108 | install -p -m 644 %{SOURCE1} %{buildroot}%{_includedir}/SDL2/SDL_config.h |
---|
| 109 | |
---|
| 110 | # remove libtool .la file |
---|
| 111 | rm -f %{buildroot}%{_libdir}/*.la |
---|
| 112 | # remove static .a file |
---|
| 113 | rm -f %{buildroot}%{_libdir}/*.a |
---|
| 114 | |
---|
| 115 | %post -p /sbin/ldconfig |
---|
| 116 | |
---|
| 117 | %postun -p /sbin/ldconfig |
---|
| 118 | |
---|
| 119 | %files |
---|
| 120 | %doc BUGS.txt CREDITS.txt COPYING.txt README-SDL.txt |
---|
| 121 | %{_libdir}/lib*.so.* |
---|
| 122 | |
---|
| 123 | %files devel |
---|
| 124 | %doc README.txt TODO.txt WhatsNew.txt |
---|
| 125 | %{_bindir}/*-config |
---|
| 126 | %{_libdir}/lib*.so |
---|
| 127 | %{_libdir}/pkgconfig/sdl2.pc |
---|
[11031] | 128 | %dir %{_libdir}/cmake/SDL2 |
---|
| 129 | %{_libdir}/cmake/SDL2/sdl2-config.cmake |
---|
[11030] | 130 | %{_includedir}/SDL2 |
---|
| 131 | %{_datadir}/aclocal/* |
---|
| 132 | |
---|
| 133 | %changelog |
---|
[11031] | 134 | * Sat Apr 15 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.5-1 |
---|
| 135 | - initial build for Vine Linux |
---|
| 136 | |
---|
[11030] | 137 | * Wed Nov 18 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-9 |
---|
| 138 | - Use bcond instead |
---|
| 139 | |
---|
| 140 | * Tue Aug 11 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-8 |
---|
| 141 | - Remove wayland support for Requires. |
---|
| 142 | |
---|
| 143 | * Thu Aug 06 2015 Ding-Yi Chen <dchen@redhat.com> - 2.0.3-7 |
---|
| 144 | - Remove wayland support. |
---|
| 145 | |
---|
| 146 | * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-6 |
---|
| 147 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
| 148 | |
---|
| 149 | * Tue Jun 2 2015 Tom Callaway <spot@fedoraproject.org> - 2.0.3-5 |
---|
| 150 | - remove code preventing builds with ancient gcc |
---|
| 151 | |
---|
| 152 | * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-4 |
---|
| 153 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
| 154 | |
---|
| 155 | * Wed Jun 11 2014 Karsten Hopp <karsten@redhat.com> 2.0.3-3 |
---|
| 156 | - fix filename of SDL_config.h for ppc64le |
---|
| 157 | |
---|
| 158 | * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2 |
---|
| 159 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 160 | |
---|
| 161 | * Wed Mar 19 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.3-1 |
---|
| 162 | - 2.0.3 upstream release |
---|
| 163 | |
---|
| 164 | * Sat Mar 08 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.2-1 |
---|
| 165 | - 2.0.2 upstream release |
---|
| 166 | - Enable wayland backend |
---|
| 167 | |
---|
| 168 | * Tue Dec 10 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-2 |
---|
| 169 | - Add libXinerama, libudev, libXcursor support (RHBZ #1039702) |
---|
| 170 | |
---|
| 171 | * Thu Oct 24 2013 Tom Callaway <spot@fedoraproject.org> - 2.0.1-1 |
---|
| 172 | - update to 2.0.1 |
---|
| 173 | |
---|
| 174 | * Sat Aug 24 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3 |
---|
| 175 | - Fix multilib issues |
---|
| 176 | |
---|
| 177 | * Tue Aug 13 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2 |
---|
| 178 | - SDL2 is released. Announce: |
---|
| 179 | - http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-August/089854.html |
---|
| 180 | |
---|
| 181 | * Sat Aug 10 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc4 |
---|
| 182 | - Update to latest SDL2 (08.08.2013) |
---|
| 183 | |
---|
| 184 | * Tue Jul 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc3 |
---|
| 185 | - Fix Licenses |
---|
| 186 | - some cleanups in spec |
---|
| 187 | |
---|
| 188 | * Tue Jul 30 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc2 |
---|
| 189 | - Delete -static package |
---|
| 190 | - Fix License tag |
---|
| 191 | - Fix end-of-line in documents |
---|
| 192 | - Remove all spike-nails EL-specify (if someone will want to do - 'patches are welcome') |
---|
| 193 | - Change Release tag to .rcX%%{?dist} (maintainer has changed released tarballs) |
---|
| 194 | |
---|
| 195 | * Mon Jul 29 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1.rc1 |
---|
| 196 | - Some fixes in spec and cleanup |
---|
| 197 | |
---|
| 198 | * Mon Jul 29 2013 Jon Ciesla <limburgher@gmail.com> - 2.0.0-1 |
---|
| 199 | - Ported from SDL 1.2.15-10 |
---|