1 | %define ver 2.0.1 |
---|
2 | %define rel 1 |
---|
3 | |
---|
4 | Name: SDL2_image |
---|
5 | Version: %{ver} |
---|
6 | Release: %{rel}%{?_dist_release} |
---|
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 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | Packager: iwaim |
---|
24 | |
---|
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 |
---|
82 | * Sun Apr 16 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.0.1-1 |
---|
83 | - initial build for Vine Linux |
---|
84 | |
---|
85 | * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2 |
---|
86 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
87 | |
---|
88 | * Sun Jan 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.1-1 |
---|
89 | - Update to 2.0.1 (RHBZ #1296751) |
---|
90 | |
---|
91 | * Mon Dec 28 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-9 |
---|
92 | - Rebuilt for libwebp soname bump |
---|
93 | |
---|
94 | * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-8 |
---|
95 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
96 | |
---|
97 | * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-7 |
---|
98 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
99 | |
---|
100 | * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-6 |
---|
101 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
102 | |
---|
103 | * Tue Apr 15 2014 Dan Horák <dan[at]danny.cz> - 2.0.0-5 |
---|
104 | - fix FTBFS on big endian arches |
---|
105 | |
---|
106 | * Fri Jan 03 2014 Kalev Lember <kalevlember@gmail.com> - 2.0.0-4 |
---|
107 | - Rebuilt for libwebp soname bump |
---|
108 | |
---|
109 | * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-3 |
---|
110 | - showimage -> showimage2 (rhbz 1005324) |
---|
111 | |
---|
112 | * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-2 |
---|
113 | - Move README.txt to -devel subpackage |
---|
114 | |
---|
115 | * Fri Sep 6 2013 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.0.0-1 |
---|
116 | - Based on SDL_image |
---|