]>
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 | |
bba13cd2 | 5 | Version: 2.6.0 |
c2e294a4 | 6 | Release: 1 |
7e96a0d5 JB |
7 | License: Zlib-like |
8 | Group: Libraries | |
bba13cd2 JP |
9 | Source0: https://github.com/libsdl-org/SDL_image/releases/download/release-%{version}/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 8e9c23d60d21aa3907737d6fcd8186bf | |
bf31c657 | 11 | Patch0: %{name}-libjpeg.patch |
bba13cd2 JP |
12 | Patch1: relax-soname-pattern.patch |
13 | URL: https://github.com/libsdl-org/SDL_image | |
14 | BuildRequires: SDL2-devel >= 2.0.9 | |
7e96a0d5 JB |
15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
bba13cd2 | 17 | BuildRequires: libavif-devel |
7e96a0d5 | 18 | BuildRequires: libjpeg-devel >= 8 |
bba13cd2 | 19 | BuildRequires: libjxl-devel |
bf31c657 | 20 | BuildRequires: libpng-devel >= 2:1.6.0 |
7e96a0d5 JB |
21 | BuildRequires: libtiff-devel >= 4 |
22 | BuildRequires: libtool >= 2:2 | |
bf31c657 | 23 | BuildRequires: libwebp-devel >= 0.6.0 |
7e96a0d5 | 24 | BuildRequires: pkgconfig >= 1:0.9.0 |
bba13cd2 JP |
25 | Requires: SDL2 >= 2.0.9 |
26 | Suggests: libavif | |
7e96a0d5 | 27 | Suggests: libjpeg >= 8 |
bba13cd2 | 28 | Suggests: libjxl |
7e96a0d5 | 29 | Suggests: libpng >= 2:1.6.0 |
7e96a0d5 | 30 | Suggests: libtiff >= 4 |
bf31c657 | 31 | Suggests: libwebp >= 0.6.0 |
7e96a0d5 JB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | # NOTE: libraries dlopened by sonames detected at build time: | |
bba13cd2 | 35 | # libavif.so.14 |
7e96a0d5 | 36 | # libjpeg.so.8 |
bba13cd2 | 37 | # libjxl.so.0.6 |
bf31c657 | 38 | # libpng16.so.16 |
7e96a0d5 | 39 | # libtiff.so.5 |
bf31c657 | 40 | # libwebp.so.7 |
7e96a0d5 JB |
41 | |
42 | %description | |
43 | This is a simple library to load images of various formats as SDL2 | |
44 | surfaces. This library currently supports BMP, GIF, JPEG, LBM, PCX, | |
45 | PNG, PNM (PBM/PGM/PPM), TGA, TIFF, WebP, XCF and XPM formats. | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | Jest to prosta biblioteka służąca do ładowania różnego formatu | |
49 | obrazków jako powierzchni SDL2. W chwili obecnej biblioteka obsługuje | |
50 | następujące formaty: BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PBM/PGM/PPM), | |
51 | TGA, TIFF, WebP, XCF oraz XPM. | |
52 | ||
53 | %description -l pt_BR.UTF-8 | |
54 | Simple DirectMedia Layer 2 - Biblioteca exemplo para carga de Imagens. | |
55 | ||
56 | %package devel | |
57 | Summary: Header files and more to develop SDL2_image applications | |
58 | Summary(pl.UTF-8): Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image | |
59 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações SDL2 | |
60 | Group: Development/Libraries | |
61 | Requires: %{name} = %{version}-%{release} | |
bba13cd2 | 62 | Requires: SDL2-devel >= 2.0.9 |
7e96a0d5 JB |
63 | |
64 | %description devel | |
65 | Header files and more to develop SDL2_image applications. | |
66 | ||
67 | %description devel -l pl.UTF-8 | |
68 | Pliki nagłówkowe do rozwijania aplikacji używających SDL2_image. | |
69 | ||
70 | %description devel -l pt_BR.UTF-8 | |
71 | Bibliotecas e arquivos de inclusão para desenvolvimento de aplicações | |
72 | SDL2. | |
73 | ||
74 | %package static | |
75 | Summary: Static SDL2_image libraries | |
76 | Summary(pl.UTF-8): Statyczne biblioteki SDL2_image | |
77 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento de aplicações SDL2 | |
78 | Group: Development/Libraries | |
79 | Requires: %{name}-devel = %{version}-%{release} | |
80 | ||
81 | %description static | |
82 | Statis SDL2_image libraries. | |
83 | ||
84 | %description static -l pl.UTF-8 | |
85 | Statyczne biblioteki SDL2_image. | |
86 | ||
87 | %description static -l pt_BR.UTF-8 | |
88 | Bibliotecas estáticas para desenvolvimento de aplicações SDL2. | |
89 | ||
90 | %prep | |
91 | %setup -q | |
bf31c657 | 92 | %patch0 -p1 |
bba13cd2 | 93 | %patch1 -p1 |
7e96a0d5 JB |
94 | |
95 | %build | |
96 | %{__libtoolize} | |
97 | %{__aclocal} | |
98 | %{__autoconf} | |
99 | %{__automake} | |
100 | %configure \ | |
bba13cd2 JP |
101 | --disable-stb-image \ |
102 | --enable-avif \ | |
103 | --enable-avif-shared \ | |
7e96a0d5 JB |
104 | --enable-bmp \ |
105 | --enable-gif \ | |
106 | --enable-jpg \ | |
107 | --enable-jpg-shared \ | |
bba13cd2 JP |
108 | --enable-jxl \ |
109 | --enable-jxl-shared \ | |
7e96a0d5 JB |
110 | --enable-lbm \ |
111 | --enable-pcx \ | |
112 | --enable-png \ | |
113 | --enable-png-shared \ | |
114 | --enable-pnm \ | |
bba13cd2 JP |
115 | --enable-qoi \ |
116 | --enable-svg \ | |
7e96a0d5 JB |
117 | --enable-tga \ |
118 | --enable-tif \ | |
119 | --enable-tif-shared \ | |
120 | --enable-webp \ | |
121 | --enable-webp-shared \ | |
122 | --enable-xcf \ | |
123 | --enable-xpm \ | |
124 | --enable-xv | |
125 | ||
126 | %{__make} | |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | install -d $RPM_BUILD_ROOT%{_bindir} | |
131 | ||
132 | %{__make} install \ | |
133 | DESTDIR=$RPM_BUILD_ROOT | |
134 | ||
135 | install .libs/showimage $RPM_BUILD_ROOT%{_bindir}/sdl2show | |
136 | ||
137 | # obsoleted by pkg-config | |
138 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
139 | ||
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %post -p /sbin/ldconfig | |
144 | %postun -p /sbin/ldconfig | |
145 | ||
146 | %files | |
147 | %defattr(644,root,root,755) | |
bba13cd2 | 148 | %doc CHANGES.txt LICENSE.txt README.txt |
7e96a0d5 JB |
149 | %attr(755,root,root) %{_bindir}/sdl2show |
150 | %attr(755,root,root) %{_libdir}/libSDL2_image-2.0.so.*.*.* | |
151 | %attr(755,root,root) %ghost %{_libdir}/libSDL2_image-2.0.so.0 | |
152 | ||
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
155 | %attr(755,root,root) %{_libdir}/libSDL2_image.so | |
bba13cd2 | 156 | %{_libdir}/cmake/SDL2_image |
7e96a0d5 JB |
157 | %{_includedir}/SDL2/SDL_image.h |
158 | %{_pkgconfigdir}/SDL2_image.pc | |
159 | ||
160 | %files static | |
161 | %defattr(644,root,root,755) | |
162 | %{_libdir}/libSDL2_image.a |