]>
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 |
16a5e177 | 4 | Version: 1.7.2 |
f28788f8 | 5 | %define manual_version 1.5.5 |
b9b4afaf | 6 | %define docs_version 1.6.5 |
07f9156e | 7 | Release: 3 |
16a5e177 | 8 | License: LGPL v2.1 |
b26e6e51 | 9 | Group: Libraries |
16a5e177 JB |
10 | Source0: http://dl.sourceforge.net/openil/%{name}-%{version}.tar.gz |
11 | # Source0-md5: 67d669df245c846ec9f54dfc086a00b6 | |
f28788f8 | 12 | Source1: http://dl.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip |
13 | # Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe | |
b9b4afaf AG |
14 | Source2: http://dl.sourceforge.net/openil/%{name}-docs.tar.gz |
15 | # Source2-md5: eec6ae7a028a3f058bab1a6918428ed5 | |
16a5e177 JB |
16 | Patch0: %{name}-c++.patch |
17 | Patch1: %{name}-link.patch | |
0d0e13f8 | 18 | Patch2: %{name}-gnu-inline.patch |
b26e6e51 | 19 | URL: http://openil.sourceforge.net/ |
663a085f JB |
20 | BuildRequires: OpenGL-GLU-devel |
21 | BuildRequires: SDL-devel >= 1.2.5 | |
22 | BuildRequires: allegro-devel >= 4.1.16 | |
23 | BuildRequires: autoconf >= 2.52 | |
b26e6e51 | 24 | BuildRequires: automake |
16a5e177 | 25 | BuildRequires: jasper-devel |
b26e6e51 | 26 | BuildRequires: lcms-devel |
27 | BuildRequires: libjpeg-devel | |
28 | BuildRequires: libmng-devel | |
29 | BuildRequires: libpng-devel | |
30 | BuildRequires: libtiff-devel | |
663a085f | 31 | BuildRequires: libtool >= 2:1.5 |
5a07b428 | 32 | BuildRequires: unzip |
a93e8881 | 33 | BuildRequires: which |
663a085f | 34 | Requires: allegro >= 4.1.16 |
b26e6e51 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
38 | ||
39 | %description | |
40 | Developer's Image Library (DevIL) is a programmer's library to develop | |
41 | applications with very powerful image loading capabilities, yet is | |
42 | easy for a developer to learn and use. Ultimate control of images is | |
43 | left to the developer, so unnecessary conversions, etc. are not | |
44 | performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can | |
45 | load, save, convert, manipulate, filter and display a wide variety of | |
46 | image formats. | |
47 | ||
16a5e177 JB |
48 | Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .icns, |
49 | .jp2, .jpg, .lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, | |
50 | .png, .ppm, .psd, .psp, .raw, .sgi, .tga and .tif files. | |
b26e6e51 | 51 | |
52 | Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm, | |
53 | .pcx, .pgm, .png, .ppm, .raw, .sgi, .tga and .tif. | |
54 | ||
e247203e JR |
55 | %description -l pl.UTF-8 |
56 | Developer's Image Library (DevIL) jest biblioteką programisty | |
57 | pozwalającą tworzyć aplikacje z potężnymi możliwościami ładowania | |
58 | obrazów. Pozostaje przy tym łatwa w użyciu i prosta do nauczenia się. | |
59 | Ostateczna kontrola nad obrazami jest zostawiona programiście, nie | |
60 | wprowadza się niepotrzebnych konwersji, itp. DevIL używa prostej, lecz | |
61 | potężnej składni poleceń, wzorowanej na OpenGL-u. DevIL potrafi | |
62 | ładować, zapisywać, konwertować, manipulować, filtrować szeroki | |
63 | wachlarz formatów plików graficznych. | |
b26e6e51 | 64 | |
65 | W chwili obecnej DevIL odczytuje pliki z rozszerzeniami bmp, cut, dds, | |
16a5e177 JB |
66 | doom, gif, icns, ico, jp2, jpg, lbm, mdl, mng, pal, pbm, pcd, pcx, |
67 | pgm, pic, png, ppm, psd, psp, raw, sgi, tga i tif. | |
b26e6e51 | 68 | |
e247203e | 69 | Wspierane jest zapisywanie do plików bmp, dds, h, jpg, pal, pbm, pcx, |
b26e6e51 | 70 | pgm, png, ppm, raw, sgi, tga i tif. |
71 | ||
72 | %package devel | |
73 | Summary: DevIL devel files | |
9d1f46ef | 74 | Summary(pl.UTF-8): Nagłówki DevIL |
b26e6e51 | 75 | Group: Development/Libraries |
51c3e4ff | 76 | Requires: %{name} = %{version}-%{release} |
16a5e177 | 77 | Requires: jasper-devel |
663a085f JB |
78 | Requires: lcms-devel |
79 | Requires: libjpeg-devel | |
80 | Requires: libmng-devel | |
81 | Requires: libpng-devel | |
82 | Requires: libtiff-devel | |
83 | # libILUT additionally: SDL-devel, allegro-devel, OpenGL-GLU-devel | |
b26e6e51 | 84 | |
85 | %description devel | |
86 | DevIL devel files. | |
87 | ||
e247203e JR |
88 | %description devel -l pl.UTF-8 |
89 | Nagłówki DevIL. | |
b26e6e51 | 90 | |
91 | %package doc | |
92 | Summary: DevIL documentation | |
9d1f46ef | 93 | Summary(pl.UTF-8): Dokumentacja DevIL |
462875c5 | 94 | Group: Documentation |
b26e6e51 | 95 | |
96 | %description doc | |
97 | DevIL documentation. | |
98 | ||
e247203e | 99 | %description doc -l pl.UTF-8 |
b26e6e51 | 100 | Dokumentacja DevIL. |
101 | ||
102 | %prep | |
16a5e177 | 103 | %setup -q -c -a1 -a2 |
663a085f | 104 | %patch0 -p1 |
00893026 | 105 | %patch1 -p1 |
0d0e13f8 | 106 | %patch2 -p1 |
663a085f JB |
107 | |
108 | # just SDL and messing libtool macros | |
109 | rm -f acinclude.m4 | |
b26e6e51 | 110 | |
b26e6e51 | 111 | %build |
663a085f JB |
112 | %{__libtoolize} |
113 | %{__aclocal} | |
114 | %{__autoconf} | |
16a5e177 | 115 | %{__autoheader} |
663a085f | 116 | %{__automake} |
16a5e177 JB |
117 | # actual exr support missing in sources, only adds undefined symbol |
118 | CPPFLAGS="%{rpmcppflags} -DIL_NO_EXR" | |
b26e6e51 | 119 | %configure \ |
120 | %{?debug:--disable-release} | |
121 | %{__make} | |
122 | ||
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
19d04b2f PG |
126 | %{__make} install \ |
127 | DESTDIR=$RPM_BUILD_ROOT | |
b26e6e51 | 128 | |
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
b388cc31 AG |
132 | %post -p /sbin/ldconfig |
133 | %postun -p /sbin/ldconfig | |
134 | ||
b26e6e51 | 135 | %files |
136 | %defattr(644,root,root,755) | |
1731a661 | 137 | %doc AUTHORS CREDITS ChangeLog README.unix |
663a085f | 138 | %attr(755,root,root) %{_libdir}/libIL.so.*.*.* |
16a5e177 | 139 | %attr(755,root,root) %ghost %{_libdir}/libIL.so.1 |
663a085f | 140 | %attr(755,root,root) %{_libdir}/libILU.so.*.*.* |
16a5e177 | 141 | %attr(755,root,root) %ghost %{_libdir}/libILU.so.1 |
663a085f | 142 | %attr(755,root,root) %{_libdir}/libILUT.so.*.*.* |
16a5e177 | 143 | %attr(755,root,root) %ghost %{_libdir}/libILUT.so.1 |
b26e6e51 | 144 | |
145 | %files devel | |
146 | %defattr(644,root,root,755) | |
663a085f JB |
147 | %attr(755,root,root) %{_libdir}/libIL.so |
148 | %attr(755,root,root) %{_libdir}/libILU.so | |
149 | %attr(755,root,root) %{_libdir}/libILUT.so | |
150 | %{_libdir}/libIL.la | |
151 | %{_libdir}/libILU.la | |
152 | %{_libdir}/libILUT.la | |
153 | %{_includedir}/IL | |
b26e6e51 | 154 | |
155 | %files doc | |
156 | %defattr(644,root,root,755) | |
f28788f8 | 157 | %doc DevIL*.pdf |