]>
Commit | Line | Data |
---|---|---|
1 | Summary: Full featured image library | |
2 | Summary(pl.UTF-8): Biblioteka obsługi obrazów z mnóstwem funkcji | |
3 | Name: DevIL | |
4 | Version: 1.6.8 | |
5 | %define _rc rc2 | |
6 | %define manual_version 1.5.5 | |
7 | %define docs_version 1.6.5 | |
8 | Release: 0.%{_rc}.2 | |
9 | License: LGPL | |
10 | Group: Libraries | |
11 | Source0: http://dl.sourceforge.net/openil/%{name}-%{version}-%{_rc}.tar.bz2 | |
12 | # Source0-md5: 444f1290a4688c4530b9d07a521da212 | |
13 | Source1: http://dl.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip | |
14 | # Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe | |
15 | Source2: http://dl.sourceforge.net/openil/%{name}-docs.tar.gz | |
16 | # Source2-md5: eec6ae7a028a3f058bab1a6918428ed5 | |
17 | Patch0: %{name}-typo.patch | |
18 | Patch1: %{name}-c++.patch | |
19 | URL: http://openil.sourceforge.net/ | |
20 | BuildRequires: OpenGL-GLU-devel | |
21 | BuildRequires: SDL-devel >= 1.2.5 | |
22 | BuildRequires: allegro-devel >= 4.1.16 | |
23 | BuildRequires: autoconf >= 2.52 | |
24 | BuildRequires: automake | |
25 | BuildRequires: lcms-devel | |
26 | BuildRequires: libjpeg-devel | |
27 | BuildRequires: libmng-devel | |
28 | BuildRequires: libpng-devel | |
29 | BuildRequires: libtiff-devel | |
30 | BuildRequires: libtool >= 2:1.5 | |
31 | BuildRequires: unzip | |
32 | Requires: allegro >= 4.1.16 | |
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 | ||
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. | |
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 | ||
67 | Wspierane jest zapisywanie do plików bmp, dds, h, jpg, pal, pbm, pcx, | |
68 | pgm, png, ppm, raw, sgi, tga i tif. | |
69 | ||
70 | %package devel | |
71 | Summary: DevIL devel files | |
72 | Summary(pl.UTF-8): Nagłówki DevIL | |
73 | Group: Development/Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
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 | |
81 | ||
82 | %description devel | |
83 | DevIL devel files. | |
84 | ||
85 | %description devel -l pl.UTF-8 | |
86 | Nagłówki DevIL. | |
87 | ||
88 | %package doc | |
89 | Summary: DevIL documentation | |
90 | Summary(pl.UTF-8): Dokumentacja DevIL | |
91 | Group: Documentation | |
92 | ||
93 | %description doc | |
94 | DevIL documentation. | |
95 | ||
96 | %description doc -l pl.UTF-8 | |
97 | Dokumentacja DevIL. | |
98 | ||
99 | %prep | |
100 | %setup -q -a1 -a2 | |
101 | %patch0 -p1 | |
102 | %patch1 -p1 | |
103 | ||
104 | # just SDL and messing libtool macros | |
105 | rm -f acinclude.m4 | |
106 | ||
107 | %build | |
108 | %{__libtoolize} | |
109 | %{__aclocal} | |
110 | %{__autoconf} | |
111 | %{__automake} | |
112 | %configure \ | |
113 | %{?debug:--disable-release} | |
114 | %{__make} | |
115 | ||
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %{__make} install \ | |
120 | DESTDIR=$RPM_BUILD_ROOT | |
121 | ||
122 | %clean | |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
125 | %post -p /sbin/ldconfig | |
126 | %postun -p /sbin/ldconfig | |
127 | ||
128 | %files | |
129 | %defattr(644,root,root,755) | |
130 | %doc AUTHORS CREDITS ChangeLog README.unix | |
131 | %attr(755,root,root) %{_libdir}/libIL.so.*.*.* | |
132 | %attr(755,root,root) %{_libdir}/libILU.so.*.*.* | |
133 | %attr(755,root,root) %{_libdir}/libILUT.so.*.*.* | |
134 | ||
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
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 | |
144 | ||
145 | %files doc | |
146 | %defattr(644,root,root,755) | |
147 | %doc DevIL*.pdf |