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: 88b9766d5b64a67f82ba511c57e7ce10
11 Patch0: %{name}-libjpeg.patch
12 URL: http://www.libsdl.org/projects/SDL_image/
13 BuildRequires: SDL2-devel >= 2.0.0
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: libjpeg-devel >= 8
17 BuildRequires: libpng-devel >= 2:1.6.0
18 BuildRequires: libtiff-devel >= 4
19 BuildRequires: libtool >= 2:2
20 BuildRequires: libwebp-devel >= 0.6.0
21 BuildRequires: pkgconfig >= 1:0.9.0
22 Requires: SDL2 >= 2.0.0
23 Suggests: libjpeg >= 8
24 Suggests: libpng >= 2:1.6.0
25 Suggests: libtiff >= 4
26 Suggests: libwebp >= 0.6.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 # NOTE: libraries dlopened by sonames detected at build time:
36 This is a simple library to load images of various formats as SDL2
37 surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX,
38 PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats.
40 %description -l pl.UTF-8
41 Jest to prosta biblioteka służąca do ładowania różnego formatu
42 obrazków jako powierzchni SDL2. W chwili obecnej biblioteka obsługuje
43 następujące formaty: BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM),
44 TGA, TIFF, WebP, XCF oraz XPM.
46 %description -l pt_BR.UTF-8
47 Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens.
50 Summary: Header files and more to develop SDL2_image applications
51 Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image
52 Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL2
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
55 Requires: SDL2-devel >= 2.0.0
58 Header files and more to develop SDL2_image applications.
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image.
63 %description devel -l pt_BR.UTF-8
64 Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações
68 Summary: Static SDL2_image libraries
69 Summary(pl.UTF-8): Statyczne biblioteki SDL2_image
70 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL2
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
75 Statis SDL2_image libraries.
77 %description static -l pl.UTF-8
78 Statyczne biblioteki SDL2_image.
80 %description static -l pt_BR.UTF-8
81 Bibliotecas estáticas para desenvolvimento de aplicações SDL2.
100 --enable-png-shared \
104 --enable-tif-shared \
106 --enable-webp-shared \
114 rm -rf $RPM_BUILD_ROOT
115 install -d $RPM_BUILD_ROOT%{_bindir}
118 DESTDIR=$RPM_BUILD_ROOT
120 install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdl2show
122 # obsoleted by pkg-config
123 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
126 rm -rf $RPM_BUILD_ROOT
128 %post -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
132 %defattr(644,root,root,755)
133 %doc CHANGES.txt COPYING.txt README.txt
134 %attr(755,root,root) %{_bindir}/sdl2show
135 %attr(755,root,root) %{_libdir}/libSDL2_image-2.0.so.*.*.*
136 %attr(755,root,root) %ghost %{_libdir}/libSDL2_image-2.0.so.0
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/libSDL2_image.so
141 %{_includedir}/SDL2/SDL_image.h
142 %{_pkgconfigdir}/SDL2_image.pc
145 %defattr(644,root,root,755)
146 %{_libdir}/libSDL2_image.a