2 |
%define major 0 |
%define major 0 |
3 |
%define libname %mklibname sdl %{apiver} %{major} |
%define libname %mklibname sdl %{apiver} %{major} |
4 |
%define develname %mklibname sdl %{apiver} -d |
%define develname %mklibname sdl %{apiver} -d |
5 |
|
%define develsname %mklibname sdl %{apiver} -d -s |
6 |
|
|
7 |
Name: sdl2 |
Name: sdl2 |
8 |
Summary: Simple DirectMedia Layer 2 |
Summary: Simple DirectMedia Layer 2 |
9 |
Version: 2.0.0 |
Version: 2.0.0 |
10 |
Release: %mkrel 7 |
Release: %mkrel 8 |
11 |
License: Zlib |
License: Zlib |
12 |
Group: System/Libraries |
Group: System/Libraries |
13 |
URL: http://wiki.libsdl.org/moin.fcg/FrontPage |
URL: http://wiki.libsdl.org/moin.fcg/FrontPage |
55 |
This package contains the headers that programmers will need to develop |
This package contains the headers that programmers will need to develop |
56 |
applications which will use %{name}. |
applications which will use %{name}. |
57 |
|
|
58 |
|
%package -n %{develsname} |
59 |
|
Summary: Static library for developing static programs that use %{name} |
60 |
|
Group: Development/C |
61 |
|
|
62 |
|
%description -n %{develsname} |
63 |
|
This package contains the static library that programmers will need |
64 |
|
to develop static applications which are using %{name}. |
65 |
|
|
66 |
%package docs |
%package docs |
67 |
Summary: Documentation for Simple DirectMedia Layer 2 (SDL2) |
Summary: Documentation for Simple DirectMedia Layer 2 (SDL2) |
68 |
Group: Documentation |
Group: Documentation |
87 |
--enable-directfb-shared \ |
--enable-directfb-shared \ |
88 |
--enable-fusionsound-shared \ |
--enable-fusionsound-shared \ |
89 |
--disable-rpath \ |
--disable-rpath \ |
90 |
--disable-static |
#End |
|
|
|
|
#from openmandriva |
|
|
sed -i s,"objdir=.libs","objdir=",g libtool |
|
91 |
|
|
92 |
%make |
%make |
93 |
|
|
99 |
popd |
popd |
100 |
|
|
101 |
%install |
%install |
|
#from openmandriva |
|
|
rm -rf build/libSDL2.la |
|
|
cp build/libSDL2.lai build/libSDL2.la |
|
|
|
|
102 |
%makeinstall_std |
%makeinstall_std |
103 |
|
|
|
#we don't want these |
|
|
find %{buildroot} -name "*.la" -delete |
|
|
find %{buildroot} -name "*.a" -delete |
|
|
|
|
104 |
%files -n %{libname} |
%files -n %{libname} |
105 |
%doc README-SDL.txt README.txt |
%doc README-SDL.txt README.txt |
106 |
%doc CREDITS.txt COPYING.txt |
%doc CREDITS.txt COPYING.txt |
115 |
%{_datadir}/aclocal/* |
%{_datadir}/aclocal/* |
116 |
%{_includedir}/SDL2/*.h |
%{_includedir}/SDL2/*.h |
117 |
|
|
118 |
|
%files -n %{develsname} |
119 |
|
%{_libdir}/*.la |
120 |
|
%{_libdir}/*.a |
121 |
|
|
122 |
%files docs |
%files docs |
123 |
%doc include/html |
%doc include/html |