123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- %define ver 2.0.1
- %define rel 1
- Name: SDL2_image
- Version: %{ver}
- Release: %{rel}%{?_dist_release}
- 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
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: iwaim
- %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
- %autosetup
- 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}/showimage2
- chrpath -d %{buildroot}%{_bindir}/showimage2
- rm -f %{buildroot}%{_libdir}/*.la
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %files
- %license COPYING.txt
- %doc CHANGES.txt
- %{_bindir}/showimage2
- %{_libdir}/lib*.so.*
- %files devel
- %doc README.txt
- %{_libdir}/lib*.so
- %{_includedir}/SDL2/*
- %{_libdir}/pkgconfig/%{name}.pc
- %changelog
- * Sun Apr 16 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.1-1
- - initial build for Vine Linux
- * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
- * Sun Jan 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-1
- - Update to 2.0.1 (RHBZ #1296751)
- * Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-9
- - Rebuilt for libwebp soname bump
- * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-8
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
- * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-7
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
- * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-6
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
- * Tue Apr 15 2014 Dan Horák <dan[at]danny.cz> - 2.0.0-5
- - fix FTBFS on big endian arches
- * Fri Jan 03 2014 Kalev Lember <kalevlember@gmail.com> - 2.0.0-4
- - Rebuilt for libwebp soname bump
- * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3
- - showimage -> showimage2 (rhbz 1005324)
- * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2
- - Move README.txt to -devel subpackage
- * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1
- - Based on SDL_image
|