1 Summary: Simple DirectMedia Layer 2 - Sample Image Loading Library
2 Summary(pl.UTF-8): Przykładowa biblioteka do ładowania obrazków dla SDL2
3 Summary(pt_BR.UTF-8): Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens
9 Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
10 # Source0-md5: fb399c8386fb3248f1b33cfe81bdf92b
11 URL: http://www.libsdl.org/projects/SDL_image/
12 BuildRequires: SDL2-devel >= 2.0.0
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: libjpeg-devel >= 8
16 BuildRequires: libpng-devel >= 2:1.5.0
17 BuildRequires: libtiff-devel >= 4
18 BuildRequires: libtool >= 2:2
19 BuildRequires: libwebp-devel >= 0.1.3
20 BuildRequires: pkgconfig >= 1:0.9.0
21 Requires: SDL2 >= 2.0.0
22 Suggests: libjpeg >= 8
23 %if "%(pkg-config --exists libpng16 2>/dev/null ; echo $?)" == "0"
24 Suggests: libpng >= 2:1.6.0
26 Suggests: libpng >= 2:1.5.0
28 Suggests: libtiff >= 4
29 Suggests: libwebp >= 0.1.3
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 # NOTE: libraries dlopened by sonames detected at build time:
34 # libpng16.so.16/libpng15.so.15/...
39 This is a simple library to load images of various formats as SDL2
40 surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX,
41 PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats.
43 %description -l pl.UTF-8
44 Jest to prosta biblioteka służąca do ładowania różnego formatu
45 obrazków jako powierzchni SDL2. W chwili obecnej biblioteka obsługuje
46 następujące formaty: BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM),
47 TGA, TIFF, WebP, XCF oraz XPM.
49 %description -l pt_BR.UTF-8
50 Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens.
53 Summary: Header files and more to develop SDL2_image applications
54 Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image
55 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL2
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
58 Requires: SDL2-devel >= 2.0.0
61 Header files and more to develop SDL2_image applications.
63 %description devel -l pl.UTF-8
64 Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image.
66 %description devel -l pt_BR.UTF-8
67 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
71 Summary: Static SDL2_image libraries
72 Summary(pl.UTF-8): Statyczne biblioteki SDL2_image
73 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL2
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{version}-%{release}
78 Statis SDL2_image libraries.
80 %description static -l pl.UTF-8
81 Statyczne biblioteki SDL2_image.
83 %description static -l pt_BR.UTF-8
84 Bibliotecas estáticas para desenvolvimento de aplicações SDL2.
102 --enable-png-shared \
106 --enable-tif-shared \
108 --enable-webp-shared \
116 rm -rf $RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT%{_bindir}
120 DESTDIR=$RPM_BUILD_ROOT
122 install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdl2show
124 # obsoleted by pkg-config
125 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
128 rm -rf $RPM_BUILD_ROOT
130 %post -p /sbin/ldconfig
131 %postun -p /sbin/ldconfig
134 %defattr(644,root,root,755)
135 %doc CHANGES.txt COPYING.txt README.txt
136 %attr(755,root,root) %{_bindir}/sdl2show
137 %attr(755,root,root) %{_libdir}/libSDL2_image-2.0.so.*.*.*
138 %attr(755,root,root) %ghost %{_libdir}/libSDL2_image-2.0.so.0
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libSDL2_image.so
143 %{_includedir}/SDL2/SDL_image.h
144 %{_pkgconfigdir}/SDL2_image.pc
147 %defattr(644,root,root,755)
148 %{_libdir}/libSDL2_image.a