[11682] | 1 | %define ver 2.0.3 |
---|
[11033] | 2 | %define rel 1 |
---|
| 3 | |
---|
[11032] | 4 | Name: SDL2_image |
---|
[11033] | 5 | Version: %{ver} |
---|
| 6 | Release: %{rel}%{?_dist_release} |
---|
[11032] | 7 | Summary: Image loading library for SDL |
---|
| 8 | |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | License: LGPLv2+ |
---|
| 11 | URL: http://www.libsdl.org/projects/SDL_image/ |
---|
| 12 | Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz |
---|
| 13 | |
---|
| 14 | BuildRequires: SDL2-devel |
---|
| 15 | BuildRequires: libjpeg-devel |
---|
| 16 | BuildRequires: libpng-devel |
---|
| 17 | BuildRequires: libtiff-devel |
---|
| 18 | BuildRequires: libwebp-devel |
---|
| 19 | BuildRequires: chrpath |
---|
| 20 | |
---|
[11033] | 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | Packager: iwaim |
---|
| 24 | |
---|
[11032] | 25 | %description |
---|
| 26 | Simple DirectMedia Layer (SDL) is a cross-platform multimedia library |
---|
| 27 | designed to provide fast access to the graphics frame buffer and audio |
---|
| 28 | device. This package contains a simple library for loading images of |
---|
| 29 | various formats (BMP, PPM, PCX, GIF, JPEG, PNG) as SDL surfaces. |
---|
| 30 | |
---|
| 31 | %package devel |
---|
| 32 | Summary: Development files for %{name} |
---|
| 33 | Group: Development/Libraries |
---|
| 34 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 35 | Requires: SDL2-devel |
---|
| 36 | Requires: pkgconfig |
---|
| 37 | |
---|
| 38 | %description devel |
---|
| 39 | The %{name}-devel package contains libraries and header files for |
---|
| 40 | developing applications that use %{name}. |
---|
| 41 | |
---|
| 42 | %prep |
---|
| 43 | %autosetup |
---|
| 44 | rm -rf external/ |
---|
| 45 | sed -i -e 's/\r//g' README.txt CHANGES.txt COPYING.txt |
---|
| 46 | |
---|
| 47 | %build |
---|
| 48 | %configure --disable-dependency-tracking \ |
---|
| 49 | --disable-jpg-shared \ |
---|
| 50 | --disable-png-shared \ |
---|
| 51 | --disable-tif-shared \ |
---|
| 52 | --disable-webp-shared \ |
---|
| 53 | --disable-static |
---|
| 54 | sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool |
---|
| 55 | make %{?_smp_mflags} |
---|
| 56 | |
---|
| 57 | %install |
---|
| 58 | %make_install |
---|
| 59 | mkdir -p %{buildroot}%{_bindir} |
---|
| 60 | ./libtool --mode=install /usr/bin/install showimage %{buildroot}%{_bindir}/showimage2 |
---|
| 61 | chrpath -d %{buildroot}%{_bindir}/showimage2 |
---|
| 62 | |
---|
| 63 | rm -f %{buildroot}%{_libdir}/*.la |
---|
| 64 | |
---|
| 65 | %post -p /sbin/ldconfig |
---|
| 66 | |
---|
| 67 | %postun -p /sbin/ldconfig |
---|
| 68 | |
---|
| 69 | %files |
---|
| 70 | %license COPYING.txt |
---|
| 71 | %doc CHANGES.txt |
---|
| 72 | %{_bindir}/showimage2 |
---|
| 73 | %{_libdir}/lib*.so.* |
---|
| 74 | |
---|
| 75 | %files devel |
---|
| 76 | %doc README.txt |
---|
| 77 | %{_libdir}/lib*.so |
---|
| 78 | %{_includedir}/SDL2/* |
---|
| 79 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 80 | |
---|
| 81 | %changelog |
---|
[11682] | 82 | * Wed May 23 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.3-1 |
---|
| 83 | - update to 2.0.3 |
---|
| 84 | |
---|
[11033] | 85 | * Sun Apr 16 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.1-1 |
---|
| 86 | - initial build for Vine Linux |
---|
| 87 | |
---|
[11032] | 88 | * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2 |
---|
| 89 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 90 | |
---|
| 91 | * Sun Jan 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-1 |
---|
| 92 | - Update to 2.0.1 (RHBZ #1296751) |
---|
| 93 | |
---|
| 94 | * Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-9 |
---|
| 95 | - Rebuilt for libwebp soname bump |
---|
| 96 | |
---|
| 97 | * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-8 |
---|
| 98 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
| 99 | |
---|
| 100 | * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-7 |
---|
| 101 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
| 102 | |
---|
| 103 | * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-6 |
---|
| 104 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 105 | |
---|
| 106 | * Tue Apr 15 2014 Dan Horák <dan[at]danny.cz> - 2.0.0-5 |
---|
| 107 | - fix FTBFS on big endian arches |
---|
| 108 | |
---|
| 109 | * Fri Jan 03 2014 Kalev Lember <kalevlember@gmail.com> - 2.0.0-4 |
---|
| 110 | - Rebuilt for libwebp soname bump |
---|
| 111 | |
---|
| 112 | * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3 |
---|
| 113 | - showimage -> showimage2 (rhbz 1005324) |
---|
| 114 | |
---|
| 115 | * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2 |
---|
| 116 | - Move README.txt to -devel subpackage |
---|
| 117 | |
---|
| 118 | * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1 |
---|
| 119 | - Based on SDL_image |
---|