]>
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 | |
c2e294a4 AG |
5 | Version: 2.0.3 |
6 | Release: 1 | |
7e96a0d5 JB |
7 | License: Zlib-like |
8 | Group: Libraries | |
9 | Source0: http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz | |
c2e294a4 | 10 | # Source0-md5: c6baf6dfa80fa8a66853661a36a6034e |
bf31c657 | 11 | Patch0: %{name}-libjpeg.patch |
7e96a0d5 JB |
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 | |
bf31c657 | 17 | BuildRequires: libpng-devel >= 2:1.6.0 |
7e96a0d5 JB |
18 | BuildRequires: libtiff-devel >= 4 |
19 | BuildRequires: libtool >= 2:2 | |
bf31c657 | 20 | BuildRequires: libwebp-devel >= 0.6.0 |
7e96a0d5 JB |
21 | BuildRequires: pkgconfig >= 1:0.9.0 |
22 | Requires: SDL2 >= 2.0.0 | |
23 | Suggests: libjpeg >= 8 | |
7e96a0d5 | 24 | Suggests: libpng >= 2:1.6.0 |
7e96a0d5 | 25 | Suggests: libtiff >= 4 |
bf31c657 | 26 | Suggests: libwebp >= 0.6.0 |
7e96a0d5 JB |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | # NOTE: libraries dlopened by sonames detected at build time: | |
30 | # libjpeg.so.8 | |
bf31c657 | 31 | # libpng16.so.16 |
7e96a0d5 | 32 | # libtiff.so.5 |
bf31c657 | 33 | # libwebp.so.7 |
7e96a0d5 JB |
34 | |
35 | %description | |
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. | |
39 | ||
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. | |
45 | ||
46 | %description -l pt_BR.UTF-8 | |
47 | Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens. | |
48 | ||
49 | %package devel | |
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 | |
56 | ||
57 | %description devel | |
58 | Header files and more to develop SDL2_image applications. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image. | |
62 | ||
63 | %description devel -l pt_BR.UTF-8 | |
64 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
65 | SDL2. | |
66 | ||
67 | %package static | |
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} | |
73 | ||
74 | %description static | |
75 | Statis SDL2_image libraries. | |
76 | ||
77 | %description static -l pl.UTF-8 | |
78 | Statyczne biblioteki SDL2_image. | |
79 | ||
80 | %description static -l pt_BR.UTF-8 | |
81 | Bibliotecas estáticas para desenvolvimento de aplicações SDL2. | |
82 | ||
83 | %prep | |
84 | %setup -q | |
bf31c657 | 85 | %patch0 -p1 |
7e96a0d5 JB |
86 | |
87 | %build | |
88 | %{__libtoolize} | |
89 | %{__aclocal} | |
90 | %{__autoconf} | |
91 | %{__automake} | |
92 | %configure \ | |
93 | --enable-bmp \ | |
94 | --enable-gif \ | |
95 | --enable-jpg \ | |
96 | --enable-jpg-shared \ | |
97 | --enable-lbm \ | |
98 | --enable-pcx \ | |
99 | --enable-png \ | |
100 | --enable-png-shared \ | |
101 | --enable-pnm \ | |
102 | --enable-tga \ | |
103 | --enable-tif \ | |
104 | --enable-tif-shared \ | |
105 | --enable-webp \ | |
106 | --enable-webp-shared \ | |
107 | --enable-xcf \ | |
108 | --enable-xpm \ | |
109 | --enable-xv | |
110 | ||
111 | %{__make} | |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | install -d $RPM_BUILD_ROOT%{_bindir} | |
116 | ||
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
120 | install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdl2show | |
121 | ||
122 | # obsoleted by pkg-config | |
123 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post -p /sbin/ldconfig | |
129 | %postun -p /sbin/ldconfig | |
130 | ||
131 | %files | |
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 | |
137 | ||
138 | %files devel | |
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 | |
143 | ||
144 | %files static | |
145 | %defattr(644,root,root,755) | |
146 | %{_libdir}/libSDL2_image.a |