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

Revision 12522, 6.4 KB checked in by tomop, 16 months ago (diff)

updated 16 packages

SDL2-2.0.14-1

gmp-6.2.1-1

gnupg2-2.2.27-1

gnutls-3.7.0-1

golang-1.15.7-1

iputils-20210202-1

libassuan-2.5.4-1

libgcrypt-1.9.1-1

libgpg-error-1.41-1

libksba-1.5.0-1

libusb1-1.0.24-1

nettle-3.7-1

npth-1.6-2

pcsc-lite-1.9.0-1

python3-3.8.7-1

tcpdump-4.9.3-2

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