]>
Commit | Line | Data |
---|---|---|
e74167f1 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with sse # use SSE extension | |
4 | %bcond_with sse2 # use SSE2 extension | |
5 | %bcond_with sse3 # use SSE3 extension | |
6 | # | |
7 | %ifarch pentium3 pentium4 %{x8664} | |
8 | %define with_sse 1 | |
9 | %endif | |
10 | %ifarch pentium4 %{x8664} | |
11 | %define with_sse2 1 | |
12 | %endif | |
549f5ea9 | 13 | %define manual_version 1.5.5 |
b26e6e51 | 14 | Summary: Full featured image library |
9d1f46ef | 15 | Summary(pl.UTF-8): Biblioteka obsługi obrazów z mnóstwem funkcji |
b26e6e51 | 16 | Name: DevIL |
549f5ea9 | 17 | Version: 1.7.8 |
94819df6 | 18 | Release: 5 |
16a5e177 | 19 | License: LGPL v2.1 |
b26e6e51 | 20 | Group: Libraries |
549f5ea9 | 21 | Source0: http://downloads.sourceforge.net/openil/%{name}-%{version}.tar.gz |
22 | # Source0-md5: 7918f215524589435e5ec2e8736d5e1d | |
23 | Source1: http://downloads.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip | |
f28788f8 | 24 | # Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe |
549f5ea9 | 25 | Source2: http://downloads.sourceforge.net/openil/%{name}-docs.tar.gz |
b9b4afaf | 26 | # Source2-md5: eec6ae7a028a3f058bab1a6918428ed5 |
6a2717dc | 27 | Patch0: libpng14.patch |
e74167f1 JB |
28 | Patch1: %{name}-squish.patch |
29 | Patch2: %{name}-as-needed.patch | |
b26e6e51 | 30 | URL: http://openil.sourceforge.net/ |
6a2717dc | 31 | BuildRequires: OpenEXR-devel |
663a085f JB |
32 | BuildRequires: OpenGL-GLU-devel |
33 | BuildRequires: SDL-devel >= 1.2.5 | |
34 | BuildRequires: allegro-devel >= 4.1.16 | |
35 | BuildRequires: autoconf >= 2.52 | |
b26e6e51 | 36 | BuildRequires: automake |
16a5e177 | 37 | BuildRequires: jasper-devel |
b26e6e51 | 38 | BuildRequires: lcms-devel |
39 | BuildRequires: libjpeg-devel | |
40 | BuildRequires: libmng-devel | |
41 | BuildRequires: libpng-devel | |
42 | BuildRequires: libtiff-devel | |
663a085f | 43 | BuildRequires: libtool >= 2:1.5 |
9731601b | 44 | BuildRequires: pkgconfig |
5921fce3 | 45 | BuildRequires: rpmbuild(macros) >= 1.533 |
e74167f1 | 46 | BuildRequires: squish-devel |
5921fce3 | 47 | BuildRequires: sed >= 4.0 |
5a07b428 | 48 | BuildRequires: unzip |
6a2717dc | 49 | BuildRequires: xorg-lib-libXext-devel |
b26e6e51 | 50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
52 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
53 | ||
54 | %description | |
55 | Developer's Image Library (DevIL) is a programmer's library to develop | |
56 | applications with very powerful image loading capabilities, yet is | |
57 | easy for a developer to learn and use. Ultimate control of images is | |
58 | left to the developer, so unnecessary conversions, etc. are not | |
59 | performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can | |
60 | load, save, convert, manipulate, filter and display a wide variety of | |
61 | image formats. | |
62 | ||
16a5e177 JB |
63 | Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .icns, |
64 | .jp2, .jpg, .lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, | |
65 | .png, .ppm, .psd, .psp, .raw, .sgi, .tga and .tif files. | |
b26e6e51 | 66 | |
67 | Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm, | |
68 | .pcx, .pgm, .png, .ppm, .raw, .sgi, .tga and .tif. | |
69 | ||
e247203e JR |
70 | %description -l pl.UTF-8 |
71 | Developer's Image Library (DevIL) jest biblioteką programisty | |
72 | pozwalającą tworzyć aplikacje z potężnymi możliwościami ładowania | |
73 | obrazów. Pozostaje przy tym łatwa w użyciu i prosta do nauczenia się. | |
74 | Ostateczna kontrola nad obrazami jest zostawiona programiście, nie | |
75 | wprowadza się niepotrzebnych konwersji, itp. DevIL używa prostej, lecz | |
76 | potężnej składni poleceń, wzorowanej na OpenGL-u. DevIL potrafi | |
77 | ładować, zapisywać, konwertować, manipulować, filtrować szeroki | |
78 | wachlarz formatów plików graficznych. | |
b26e6e51 | 79 | |
80 | W chwili obecnej DevIL odczytuje pliki z rozszerzeniami bmp, cut, dds, | |
16a5e177 JB |
81 | doom, gif, icns, ico, jp2, jpg, lbm, mdl, mng, pal, pbm, pcd, pcx, |
82 | pgm, pic, png, ppm, psd, psp, raw, sgi, tga i tif. | |
b26e6e51 | 83 | |
6a2717dc JB |
84 | Obsługiwane jest zapisywanie do plików bmp, dds, h, jpg, pal, pbm, |
85 | pcx, pgm, png, ppm, raw, sgi, tga i tif. | |
b26e6e51 | 86 | |
87 | %package devel | |
6a2717dc JB |
88 | Summary: DevIL development files |
89 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek DevIL | |
b26e6e51 | 90 | Group: Development/Libraries |
51c3e4ff | 91 | Requires: %{name} = %{version}-%{release} |
6a2717dc | 92 | Requires: OpenEXR-devel |
16a5e177 | 93 | Requires: jasper-devel |
663a085f JB |
94 | Requires: lcms-devel |
95 | Requires: libjpeg-devel | |
96 | Requires: libmng-devel | |
97 | Requires: libpng-devel | |
98 | Requires: libtiff-devel | |
e74167f1 | 99 | Requires: squish-devel |
b26e6e51 | 100 | |
101 | %description devel | |
6a2717dc | 102 | DevIL development files (for IL and ILU libraries). |
b26e6e51 | 103 | |
e247203e | 104 | %description devel -l pl.UTF-8 |
6a2717dc JB |
105 | Pliki nagłówkowe bibliotek DevIL (IL i ILU). |
106 | ||
107 | %package static | |
108 | Summary: Static DevIL libraries | |
109 | Summary(pl.UTF-8): Statyczne biblioteki DevIL | |
110 | Group: Development/Libraries | |
111 | Requires: %{name}-devel = %{version}-%{release} | |
112 | ||
113 | %description static | |
114 | Static DevIL libraries (IL and ILU). | |
115 | ||
116 | %description static -l pl.UTF-8 | |
117 | Statyczne biblioteki DevIL (IL i ILU). | |
118 | ||
119 | %package ILUT | |
120 | Summary: DevIL ILUT library | |
121 | Summary(pl.UTF-8): Biblioteka DevIL ILUT | |
122 | Group: Libraries | |
123 | Requires: %{name} = %{version}-%{release} | |
124 | Requires: SDL >= 1.2.5 | |
125 | Requires: allegro >= 4.1.16 | |
126 | ||
127 | %description ILUT | |
128 | DevIL ILUT library - connection to higher level libraries. | |
129 | ||
739f9dbd | 130 | %description ILUT -l pl.UTF-8 |
6a2717dc JB |
131 | Biblioteka DevIL ILUT - łącznik z bibliotekami wyższego poziomu. |
132 | ||
133 | %package ILUT-devel | |
134 | Summary: Development files for DevIL ILUT library | |
135 | Summary(pl.UTF-8): Pliki programistyczne biblioteki DevIL ILUT | |
136 | Group: Development/Libraries | |
137 | Requires: %{name}-ILUT = %{version}-%{release} | |
138 | Requires: %{name}-devel = %{version}-%{release} | |
139 | Requires: OpenGL-GLU-devel | |
140 | Requires: SDL-devel >= 1.2.5 | |
141 | Requires: allegro-devel >= 4.1.16 | |
142 | Requires: xorg-lib-libXext-devel | |
143 | ||
144 | %description ILUT-devel | |
145 | Development files for DevIL ILUT library. | |
146 | ||
147 | %description ILUT-devel -l pl.UTF-8 | |
148 | Pliki programistyczne biblioteki DevIL ILUT. | |
149 | ||
150 | %package ILUT-static | |
151 | Summary: Static DevIL ILUT library | |
152 | Summary(pl.UTF-8): Statyczna biblioteka DevIL ILUT | |
153 | Group: Development/Libraries | |
154 | Requires: %{name}-ILUT-devel = %{version}-%{release} | |
155 | ||
156 | %description ILUT-static | |
157 | Static DevIL ILUT library. | |
158 | ||
159 | %description ILUT-static -l pl.UTF-8 | |
160 | Statyczna biblioteka DevIL ILUT. | |
b26e6e51 | 161 | |
162 | %package doc | |
163 | Summary: DevIL documentation | |
9d1f46ef | 164 | Summary(pl.UTF-8): Dokumentacja DevIL |
462875c5 | 165 | Group: Documentation |
b26e6e51 | 166 | |
167 | %description doc | |
168 | DevIL documentation. | |
169 | ||
e247203e | 170 | %description doc -l pl.UTF-8 |
b26e6e51 | 171 | Dokumentacja DevIL. |
172 | ||
173 | %prep | |
16a5e177 | 174 | %setup -q -c -a1 -a2 |
c7956080 | 175 | %patch0 -p1 |
e74167f1 JB |
176 | %patch1 -p1 |
177 | %patch2 -p1 | |
b26e6e51 | 178 | |
b26e6e51 | 179 | %build |
549f5ea9 | 180 | cd devil-%{version} |
663a085f | 181 | %{__libtoolize} |
549f5ea9 | 182 | %{__aclocal} -I m4 |
663a085f | 183 | %{__autoconf} |
16a5e177 | 184 | %{__autoheader} |
663a085f | 185 | %{__automake} |
b26e6e51 | 186 | %configure \ |
6a2717dc JB |
187 | --enable-ILU \ |
188 | --enable-ILUT \ | |
e74167f1 JB |
189 | %{?debug:--disable-release} \ |
190 | %{!?with_sse:--disable-sse} \ | |
191 | %{!?with_sse2:--disable-sse2} \ | |
192 | %{!?with_sse3:--disable-sse3} | |
b26e6e51 | 193 | %{__make} |
194 | ||
195 | %install | |
196 | rm -rf $RPM_BUILD_ROOT | |
197 | ||
549f5ea9 | 198 | %{__make} -C devil-%{version} install \ |
19d04b2f | 199 | DESTDIR=$RPM_BUILD_ROOT |
b26e6e51 | 200 | |
201 | %clean | |
202 | rm -rf $RPM_BUILD_ROOT | |
203 | ||
b388cc31 AG |
204 | %post -p /sbin/ldconfig |
205 | %postun -p /sbin/ldconfig | |
206 | ||
6a2717dc JB |
207 | %post devel -p /sbin/postshell |
208 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
209 | ||
210 | %postun devel -p /sbin/postshell | |
211 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
212 | ||
b26e6e51 | 213 | %files |
214 | %defattr(644,root,root,755) | |
549f5ea9 | 215 | %doc devil-%{version}/{AUTHORS,CREDITS,ChangeLog,README.unix} |
6a2717dc | 216 | %attr(755,root,root) %{_bindir}/ilur |
663a085f | 217 | %attr(755,root,root) %{_libdir}/libIL.so.*.*.* |
16a5e177 | 218 | %attr(755,root,root) %ghost %{_libdir}/libIL.so.1 |
663a085f | 219 | %attr(755,root,root) %{_libdir}/libILU.so.*.*.* |
16a5e177 | 220 | %attr(755,root,root) %ghost %{_libdir}/libILU.so.1 |
b26e6e51 | 221 | |
222 | %files devel | |
223 | %defattr(644,root,root,755) | |
663a085f JB |
224 | %attr(755,root,root) %{_libdir}/libIL.so |
225 | %attr(755,root,root) %{_libdir}/libILU.so | |
663a085f JB |
226 | %{_libdir}/libIL.la |
227 | %{_libdir}/libILU.la | |
6a2717dc JB |
228 | %dir %{_includedir}/IL |
229 | %{_includedir}/IL/il.h | |
230 | %{_includedir}/IL/ilu.h | |
231 | %{_includedir}/IL/ilu_region.h | |
232 | %{_pkgconfigdir}/IL.pc | |
233 | %{_pkgconfigdir}/ILU.pc | |
234 | %{_infodir}/DevIL_manual.info* | |
235 | ||
236 | %files static | |
237 | %defattr(644,root,root,755) | |
238 | %{_libdir}/libIL.a | |
239 | %{_libdir}/libILU.a | |
240 | ||
241 | %files ILUT | |
242 | %defattr(644,root,root,755) | |
243 | %attr(755,root,root) %{_libdir}/libILUT.so.*.*.* | |
244 | %attr(755,root,root) %ghost %{_libdir}/libILUT.so.1 | |
245 | ||
246 | %files ILUT-devel | |
247 | %defattr(644,root,root,755) | |
248 | %attr(755,root,root) %{_libdir}/libILUT.so | |
249 | %{_includedir}/IL/devil_cpp_wrapper.hpp | |
250 | %{_includedir}/IL/ilut.h | |
663a085f | 251 | %{_libdir}/libILUT.la |
6a2717dc JB |
252 | %{_pkgconfigdir}/ILUT.pc |
253 | ||
254 | %files ILUT-static | |
255 | %defattr(644,root,root,755) | |
256 | %{_libdir}/libILUT.a | |
b26e6e51 | 257 | |
258 | %files doc | |
259 | %defattr(644,root,root,755) | |
f28788f8 | 260 | %doc DevIL*.pdf |