]>
Commit | Line | Data |
---|---|---|
b26e6e51 | 1 | Summary: Full featured image library |
e247203e | 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 |
a11f248c | 8 | Release: 0.%{_rc}.1 |
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 |
18 | # no longer needed ? - check | |
19 | #Patch0: %{name}-link.patch | |
b26e6e51 | 20 | URL: http://openil.sourceforge.net/ |
663a085f JB |
21 | BuildRequires: OpenGL-GLU-devel |
22 | BuildRequires: SDL-devel >= 1.2.5 | |
23 | BuildRequires: allegro-devel >= 4.1.16 | |
24 | BuildRequires: autoconf >= 2.52 | |
b26e6e51 | 25 | BuildRequires: automake |
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 |
663a085f | 33 | Requires: allegro >= 4.1.16 |
b26e6e51 | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
37 | ||
38 | %description | |
39 | Developer's Image Library (DevIL) is a programmer's library to develop | |
40 | applications with very powerful image loading capabilities, yet is | |
41 | easy for a developer to learn and use. Ultimate control of images is | |
42 | left to the developer, so unnecessary conversions, etc. are not | |
43 | performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can | |
44 | load, save, convert, manipulate, filter and display a wide variety of | |
45 | image formats. | |
46 | ||
47 | Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .jpg, | |
48 | .lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, .png, .ppm, | |
49 | .psd, .psp, .raw, .sgi, .tga and .tif files. | |
50 | ||
51 | Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm, | |
52 | .pcx, .pgm, .png, .ppm, .raw, .sgi, .tga and .tif. | |
53 | ||
e247203e JR |
54 | %description -l pl.UTF-8 |
55 | Developer's Image Library (DevIL) jest biblioteką programisty | |
56 | pozwalającą tworzyć aplikacje z potężnymi możliwościami ładowania | |
57 | obrazów. Pozostaje przy tym łatwa w użyciu i prosta do nauczenia się. | |
58 | Ostateczna kontrola nad obrazami jest zostawiona programiście, nie | |
59 | wprowadza się niepotrzebnych konwersji, itp. DevIL używa prostej, lecz | |
60 | potężnej składni poleceń, wzorowanej na OpenGL-u. DevIL potrafi | |
61 | ładować, zapisywać, konwertować, manipulować, filtrować szeroki | |
62 | wachlarz formatów plików graficznych. | |
b26e6e51 | 63 | |
64 | W chwili obecnej DevIL odczytuje pliki z rozszerzeniami bmp, cut, dds, | |
65 | doom, gif, ico, jpg, lbm, mdl, mng, pal, pbm, pcd, pcx, pgm, pic, png, | |
66 | ppm, psd, psp, raw, sgi, tga i tif. | |
67 | ||
e247203e | 68 | Wspierane jest zapisywanie do plików bmp, dds, h, jpg, pal, pbm, pcx, |
b26e6e51 | 69 | pgm, png, ppm, raw, sgi, tga i tif. |
70 | ||
71 | %package devel | |
72 | Summary: DevIL devel files | |
e247203e | 73 | Summary(pl.UTF-8): Nagłówki DevIL |
b26e6e51 | 74 | Group: Development/Libraries |
51c3e4ff | 75 | Requires: %{name} = %{version}-%{release} |
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 | |
e247203e | 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 | |
1731a661 | 101 | %setup -q -a1 -a2 |
663a085f JB |
102 | %patch0 -p1 |
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 |