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