Commit ebafc89c authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add standard SDL2_* sub-libraries

parent a196c3d1
......@@ -37,7 +37,7 @@ PACKAGES = \
libXfixes libXext libXft libXi libXinerama libICE libSM libXpm libXrandr libXtst libXt libXScrnSaver libXpm \
libXv libXvMC libXxf86vm libXdamage libXcursor libXcomposite libxkbfile libxshmfence \
xkeyboard-config libxkbcommon \
SDL2 \
SDL2 SDL2_image SDL2_net SDL2_ttf SDL2_mixer \
dbus cairo dbus-glib \
libpciaccess libdrm llvm mesa libepoxy wayland \
pulseaudio \
......
Name: SDL2_image
Version: 2.0.0
Release: 1%{?dist}
Summary: Image loading library for SDL
Group: System Environment/Libraries
License: LGPLv2+
URL: http://www.libsdl.org/projects/SDL_image/
Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
BuildRequires: freedesktop-sdk-base
BuildRequires: SDL2-dev
%description
Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
designed to provide fast access to the graphics frame buffer and audio
device. This package contains a simple library for loading images of
various formats (BMP, PPM, PCX, GIF, JPEG, PNG) as SDL surfaces.
%package dev
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: SDL2-dev
%description dev
The %{name}-dev package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
rm -rf external/
sed -i -e 's/\r//g' README.txt CHANGES.txt COPYING.txt
%build
%configure --disable-dependency-tracking \
--disable-jpg-shared \
--disable-png-shared \
--disable-tif-shared \
--disable-webp-shared \
--disable-static
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
make %{?_smp_mflags}
%install
%make_install
mkdir -p %{buildroot}%{_bindir}
./libtool --mode=install /usr/bin/install showimage %{buildroot}%{_bindir}/showimage
rm -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc CHANGES.txt COPYING.txt
%{_libdir}/lib*.so.*
%files dev
%doc README.txt
%{_bindir}/showimage
%{_libdir}/lib*.so
%{_includedir}/SDL2/*
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Fri Feb 13 2015 Alexander Larsson <alexl@redhat.com> - 2.0.0-1
- Initial version
Name: SDL2_mixer
Version: 2.0.0
Release: 1%{?dist}
Summary: Simple DirectMedia Layer - Sample Mixer Library
Group: System Environment/Libraries
License: zlib
URL: http://www.libsdl.org/projects/SDL_mixer/
Source0: http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
BuildRequires: freedesktop-sdk-base
BuildRequires: SDL2-dev
%description
SDL_mixer is a sample multi-channel audio mixer library.
It supports any number of simultaneously playing channels of 16 bit stereo
audio, plus a single channel of music, mixed by the popular FLAC,
MikMod MOD, Timidity MIDI, Ogg Vorbis, and SMPEG MP3 libraries.
%package dev
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: SDL2-dev
%description dev
The %{name}-dev package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
sed -i -e 's/\r//g' README.txt CHANGES.txt COPYING.txt
rm -rf external/
%build
%configure --disable-dependency-tracking \
--disable-static
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
make %{?_smp_mflags}
%install
%make_install install-bin
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc CHANGES.txt COPYING.txt
%{_libdir}/lib*.so.*
%files dev
%doc README.txt
%{_bindir}/playmus
%{_bindir}/playwave
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/SDL2/*
%changelog
* Fri Feb 13 2015 Alexander Larsson <alexl@redhat.com> - 2.0.0-1
- Initial version
Name: SDL2_net
Version: 2.0.0
Release: 1%{?dist}
Summary: SDL portable network library
License: zlib
URL: http://www.libsdl.org/projects/SDL_net/
Source0: http://www.libsdl.org/projects/SDL_net/release/%{name}-%{version}.tar.gz
BuildRequires: freedesktop-sdk-base
BuildRequires: SDL2-dev
%description
This is a portable network library for use with SDL.
%package dev
Summary: Libraries and includes to develop SDL networked applications
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: SDL2-dev%{?_isa}
%description dev
This is a portable network library for use with SDL.
This is the libraries and include files you can use to develop SDL
networked applications.
%prep
%setup -q
# Fix end-of-line encoding
sed -i 's/\r//' README.txt CHANGES.txt COPYING.txt
%build
%configure --disable-static --disable-gui
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc README.txt CHANGES.txt COPYING.txt
%{_libdir}/lib*.so.*
%files dev
%{_libdir}/lib*.so
%{_includedir}/SDL2/*
%{_libdir}/pkgconfig/*.pc
%changelog
* Fri Feb 13 2015 Alexander Larsson <alexl@redhat.com> - 2.0.0-1
- Initial version
Name: SDL2_ttf
Version: 2.0.12
Release: 1%{?dist}
Summary: TrueType font rendering library for SDL2
Group: System Environment/Libraries
License: zlib
URL: http://www.libsdl.org/projects/SDL_ttf/
Source0: http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz
BuildRequires: freedesktop-sdk-base
BuildRequires: SDL2-dev
BuildRequires: freetype-dev
%description
This library allows you to use TrueType fonts to render text in SDL2
applications.
%package dev
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: SDL2-dev%{?_isa}
%description dev
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
rm -rf external
# Fix end-of-line encoding
sed -i 's/\r//' README.txt CHANGES.txt COPYING.txt
%build
%configure --disable-dependency-tracking --disable-static
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc README.txt CHANGES.txt COPYING.txt
%{_libdir}/lib*.so.*
%files dev
%{_libdir}/lib*.so
%{_includedir}/SDL2/*
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Fri Feb 13 2015 Alexander Larsson <alexl@redhat.com> - 2.0.12-1
- Initial version
......@@ -26,6 +26,10 @@ BuildRequires: pulseaudio-libs-dev
BuildRequires: xkeyboard-config-dev
BuildRequires: gobject-introspection
BuildRequires: SDL2
BuildRequires: SDL2_image
BuildRequires: SDL2_net
BuildRequires: SDL2_ttf
BuildRequires: SDL2_mixer
Requires: freedesktop-platform-base
......@@ -84,6 +88,10 @@ Requires: pulseaudio-libs-glib2
Requires: shared-mime-info
Requires: xkeyboard-config
Requires: SDL2
Requires: SDL2_image
Requires: SDL2_net
Requires: SDL2_ttf
Requires: SDL2_mixer
%description
Meta package for Freedesktop platform dependencies
......
......@@ -62,6 +62,10 @@ Requires: pulseaudio-libs-dev
Requires: xkeyboard-config-dev
Requires: xorg-x11-util-macros
Requires: SDL2-dev
Requires: SDL2_image-dev
Requires: SDL2_net-dev
Requires: SDL2_ttf-dev
Requires: SDL2_mixer-dev
%description
Meta package for Gnome SDK dependencies
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment