]>
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 |
a11f248c | 4 | Version: 1.6.8 |
1731a661 | 5 | %define _rc rc2 |
f28788f8 | 6 | %define manual_version 1.5.5 |
b9b4afaf | 7 | %define docs_version 1.6.5 |
00893026 | 8 | Release: 0.%{_rc}.2 |
1731a661 | 9 | License: LGPL |
b26e6e51 | 10 | Group: Libraries |
1731a661 | 11 | Source0: http://dl.sourceforge.net/openil/%{name}-%{version}-%{_rc}.tar.bz2 |
12 | # Source0-md5: 444f1290a4688c4530b9d07a521da212 | |
f28788f8 | 13 | Source1: http://dl.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip |
14 | # Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe | |
b9b4afaf AG |
15 | Source2: http://dl.sourceforge.net/openil/%{name}-docs.tar.gz |
16 | # Source2-md5: eec6ae7a028a3f058bab1a6918428ed5 | |
1731a661 | 17 | Patch0: %{name}-typo.patch |
00893026 | 18 | Patch1: %{name}-c++.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 |
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 | ||
46 | Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .jpg, | |
47 | .lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, .png, .ppm, | |
48 | .psd, .psp, .raw, .sgi, .tga and .tif files. | |
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, | |
64 | doom, gif, ico, jpg, lbm, mdl, mng, pal, pbm, pcd, pcx, pgm, pic, png, | |
65 | ppm, psd, psp, raw, sgi, tga i tif. | |
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} |
663a085f JB |
75 | Requires: lcms-devel |
76 | Requires: libjpeg-devel | |
77 | Requires: libmng-devel | |
78 | Requires: libpng-devel | |
79 | Requires: libtiff-devel | |
80 | # libILUT additionally: SDL-devel, allegro-devel, OpenGL-GLU-devel | |
b26e6e51 | 81 | |
82 | %description devel | |
83 | DevIL devel files. | |
84 | ||
e247203e JR |
85 | %description devel -l pl.UTF-8 |
86 | Nagłówki DevIL. | |
b26e6e51 | 87 | |
88 | %package doc | |
89 | Summary: DevIL documentation | |
9d1f46ef | 90 | Summary(pl.UTF-8): Dokumentacja DevIL |
462875c5 | 91 | Group: Documentation |
b26e6e51 | 92 | |
93 | %description doc | |
94 | DevIL documentation. | |
95 | ||
e247203e | 96 | %description doc -l pl.UTF-8 |
b26e6e51 | 97 | Dokumentacja DevIL. |
98 | ||
99 | %prep | |
1731a661 | 100 | %setup -q -a1 -a2 |
663a085f | 101 | %patch0 -p1 |
00893026 | 102 | %patch1 -p1 |
663a085f JB |
103 | |
104 | # just SDL and messing libtool macros | |
105 | rm -f acinclude.m4 | |
b26e6e51 | 106 | |
b26e6e51 | 107 | %build |
663a085f JB |
108 | %{__libtoolize} |
109 | %{__aclocal} | |
110 | %{__autoconf} | |
111 | %{__automake} | |
b26e6e51 | 112 | %configure \ |
113 | %{?debug:--disable-release} | |
114 | %{__make} | |
115 | ||
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
19d04b2f PG |
119 | %{__make} install \ |
120 | DESTDIR=$RPM_BUILD_ROOT | |
b26e6e51 | 121 | |
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
b388cc31 AG |
125 | %post -p /sbin/ldconfig |
126 | %postun -p /sbin/ldconfig | |
127 | ||
b26e6e51 | 128 | %files |
129 | %defattr(644,root,root,755) | |
1731a661 | 130 | %doc AUTHORS CREDITS ChangeLog README.unix |
663a085f JB |
131 | %attr(755,root,root) %{_libdir}/libIL.so.*.*.* |
132 | %attr(755,root,root) %{_libdir}/libILU.so.*.*.* | |
133 | %attr(755,root,root) %{_libdir}/libILUT.so.*.*.* | |
b26e6e51 | 134 | |
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
663a085f JB |
137 | %attr(755,root,root) %{_libdir}/libIL.so |
138 | %attr(755,root,root) %{_libdir}/libILU.so | |
139 | %attr(755,root,root) %{_libdir}/libILUT.so | |
140 | %{_libdir}/libIL.la | |
141 | %{_libdir}/libILU.la | |
142 | %{_libdir}/libILUT.la | |
143 | %{_includedir}/IL | |
b26e6e51 | 144 | |
145 | %files doc | |
146 | %defattr(644,root,root,755) | |
f28788f8 | 147 | %doc DevIL*.pdf |