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