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