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