[SDL2_image] Initial import
Igor Gnatenko
ignatenkobrain at fedoraproject.org
Fri Sep 6 14:07:28 UTC 2013
commit 90ec374a81b733682e593f6301e8f278dd340d53
Author: Igor Gnatenko <i.gnatenko.brain at gmail.com>
Date: Fri Sep 6 18:07:14 2013 +0400
Initial import
Signed-off-by: Igor Gnatenko <i.gnatenko.brain at gmail.com>
.gitignore | 1 +
SDL2_image.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1970b34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/SDL2_image-2.0.0.tar.gz
diff --git a/SDL2_image.spec b/SDL2_image.spec
new file mode 100644
index 0000000..95b7940
--- /dev/null
+++ b/SDL2_image.spec
@@ -0,0 +1,78 @@
+Name: SDL2_image
+Version: 2.0.0
+Release: 2%{?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: SDL2-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: libwebp-devel
+BuildRequires: chrpath
+
+%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 devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: SDL2-devel
+Requires: pkgconfig
+
+%description devel
+The %{name}-devel 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}
+chrpath -d %{buildroot}%{_bindir}/showimage
+
+rm -f %{buildroot}%{_libdir}/*.la
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc CHANGES.txt COPYING.txt
+%{_bindir}/showimage
+%{_libdir}/lib*.so.*
+
+%files devel
+%doc README.txt
+%{_libdir}/lib*.so
+%{_includedir}/SDL2/*
+%{_libdir}/pkgconfig/%{name}.pc
+
+%changelog
+* Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain at gmail.com> - 2.0.0-2
+- Move README.txt to -devel subpackage
+
+* Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain at gmail.com> - 2.0.0-1
+- Based on SDL_image
diff --git a/sources b/sources
index e69de29..6837a0b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fb399c8386fb3248f1b33cfe81bdf92b SDL2_image-2.0.0.tar.gz
More information about the scm-commits
mailing list