]>
Commit | Line | Data |
---|---|---|
7e96a0d5 JB |
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 | |
4 | Name: SDL2_image | |
5 | Version: 2.0.0 | |
6 | Release: 1 | |
7 | License: Zlib-like | |
8 | Group: Libraries | |
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 | |
25 | %else | |
26 | Suggests: libpng >= 2:1.5.0 | |
27 | %endif | |
28 | Suggests: libtiff >= 4 | |
29 | Suggests: libwebp >= 0.1.3 | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | # NOTE: libraries dlopened by sonames detected at build time: | |
33 | # libjpeg.so.8 | |
34 | # libpng16.so.16/libpng15.so.15/... | |
35 | # libtiff.so.5 | |
36 | # libwebp.so.5 | |
37 | ||
38 | %description | |
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. | |
42 | ||
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. | |
48 | ||
49 | %description -l pt_BR.UTF-8 | |
50 | Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens. | |
51 | ||
52 | %package devel | |
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 | |
59 | ||
60 | %description devel | |
61 | Header files and more to develop SDL2_image applications. | |
62 | ||
63 | %description devel -l pl.UTF-8 | |
64 | Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image. | |
65 | ||
66 | %description devel -l pt_BR.UTF-8 | |
67 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
68 | SDL2. | |
69 | ||
70 | %package static | |
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} | |
76 | ||
77 | %description static | |
78 | Statis SDL2_image libraries. | |
79 | ||
80 | %description static -l pl.UTF-8 | |
81 | Statyczne biblioteki SDL2_image. | |
82 | ||
83 | %description static -l pt_BR.UTF-8 | |
84 | Bibliotecas estáticas para desenvolvimento de aplicações SDL2. | |
85 | ||
86 | %prep | |
87 | %setup -q | |
88 | ||
89 | %build | |
90 | %{__libtoolize} | |
91 | %{__aclocal} | |
92 | %{__autoconf} | |
93 | %{__automake} | |
94 | %configure \ | |
95 | --enable-bmp \ | |
96 | --enable-gif \ | |
97 | --enable-jpg \ | |
98 | --enable-jpg-shared \ | |
99 | --enable-lbm \ | |
100 | --enable-pcx \ | |
101 | --enable-png \ | |
102 | --enable-png-shared \ | |
103 | --enable-pnm \ | |
104 | --enable-tga \ | |
105 | --enable-tif \ | |
106 | --enable-tif-shared \ | |
107 | --enable-webp \ | |
108 | --enable-webp-shared \ | |
109 | --enable-xcf \ | |
110 | --enable-xpm \ | |
111 | --enable-xv | |
112 | ||
113 | %{__make} | |
114 | ||
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | install -d $RPM_BUILD_ROOT%{_bindir} | |
118 | ||
119 | %{__make} install \ | |
120 | DESTDIR=$RPM_BUILD_ROOT | |
121 | ||
122 | install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdl2show | |
123 | ||
124 | # obsoleted by pkg-config | |
125 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
133 | %files | |
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 | |
139 | ||
140 | %files devel | |
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 | |
145 | ||
146 | %files static | |
147 | %defattr(644,root,root,755) | |
148 | %{_libdir}/libSDL2_image.a |