source: projects/specs/trunk/S/SDL2/SDL2-vl.spec @ 12382

Revision 12382, 6.3 KB checked in by tomop, 4 years ago (diff)

updated 8 packages

SDL2-2.0.12-1

SDL2_image-2.0.5-1

SDL2_mixer-2.0.4-1

SDL2_ttf-2.0.15-1

babl-0.1.74-1

bubblewrap-0.4.1-1

gegl04-0.4.22-1

libcap-2.33-1

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