]> git.pld-linux.org Git - packages/DevIL.git/blame - DevIL.spec
- fix libIL linking
[packages/DevIL.git] / DevIL.spec
CommitLineData
b26e6e51 1Summary: Full featured image library
9d1f46ef 2Summary(pl.UTF-8): Biblioteka obsługi obrazów z mnóstwem funkcji
b26e6e51 3Name: DevIL
a11f248c 4Version: 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 8Release: 0.%{_rc}.2
1731a661 9License: LGPL
b26e6e51 10Group: Libraries
1731a661 11Source0: http://dl.sourceforge.net/openil/%{name}-%{version}-%{_rc}.tar.bz2
12# Source0-md5: 444f1290a4688c4530b9d07a521da212
f28788f8 13Source1: http://dl.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip
14# Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe
b9b4afaf
AG
15Source2: http://dl.sourceforge.net/openil/%{name}-docs.tar.gz
16# Source2-md5: eec6ae7a028a3f058bab1a6918428ed5
1731a661 17Patch0: %{name}-typo.patch
00893026 18Patch1: %{name}-c++.patch
b26e6e51 19URL: http://openil.sourceforge.net/
663a085f
JB
20BuildRequires: OpenGL-GLU-devel
21BuildRequires: SDL-devel >= 1.2.5
22BuildRequires: allegro-devel >= 4.1.16
23BuildRequires: autoconf >= 2.52
b26e6e51 24BuildRequires: automake
25BuildRequires: lcms-devel
26BuildRequires: libjpeg-devel
27BuildRequires: libmng-devel
28BuildRequires: libpng-devel
29BuildRequires: libtiff-devel
663a085f 30BuildRequires: libtool >= 2:1.5
5a07b428 31BuildRequires: unzip
663a085f 32Requires: allegro >= 4.1.16
b26e6e51 33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%define _noautoreqdep libGL.so.1 libGLU.so.1
36
37%description
38Developer's Image Library (DevIL) is a programmer's library to develop
39applications with very powerful image loading capabilities, yet is
40easy for a developer to learn and use. Ultimate control of images is
41left to the developer, so unnecessary conversions, etc. are not
42performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can
43load, save, convert, manipulate, filter and display a wide variety of
44image formats.
45
46Currently, 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
50Formats 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
54Developer's Image Library (DevIL) jest biblioteką programisty
55pozwalającą tworzyć aplikacje z potężnymi możliwościami ładowania
56obrazów. Pozostaje przy tym łatwa w użyciu i prosta do nauczenia się.
57Ostateczna kontrola nad obrazami jest zostawiona programiście, nie
58wprowadza się niepotrzebnych konwersji, itp. DevIL używa prostej, lecz
59potężnej składni poleceń, wzorowanej na OpenGL-u. DevIL potrafi
60ładować, zapisywać, konwertować, manipulować, filtrować szeroki
61wachlarz formatów plików graficznych.
b26e6e51 62
63W chwili obecnej DevIL odczytuje pliki z rozszerzeniami bmp, cut, dds,
64doom, gif, ico, jpg, lbm, mdl, mng, pal, pbm, pcd, pcx, pgm, pic, png,
65ppm, psd, psp, raw, sgi, tga i tif.
66
e247203e 67Wspierane jest zapisywanie do plików bmp, dds, h, jpg, pal, pbm, pcx,
b26e6e51 68pgm, png, ppm, raw, sgi, tga i tif.
69
70%package devel
71Summary: DevIL devel files
9d1f46ef 72Summary(pl.UTF-8): Nagłówki DevIL
b26e6e51 73Group: Development/Libraries
51c3e4ff 74Requires: %{name} = %{version}-%{release}
663a085f
JB
75Requires: lcms-devel
76Requires: libjpeg-devel
77Requires: libmng-devel
78Requires: libpng-devel
79Requires: libtiff-devel
80# libILUT additionally: SDL-devel, allegro-devel, OpenGL-GLU-devel
b26e6e51 81
82%description devel
83DevIL devel files.
84
e247203e
JR
85%description devel -l pl.UTF-8
86Nagłówki DevIL.
b26e6e51 87
88%package doc
89Summary: DevIL documentation
9d1f46ef 90Summary(pl.UTF-8): Dokumentacja DevIL
462875c5 91Group: Documentation
b26e6e51 92
93%description doc
94DevIL documentation.
95
e247203e 96%description doc -l pl.UTF-8
b26e6e51 97Dokumentacja 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
105rm -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
117rm -rf $RPM_BUILD_ROOT
118
19d04b2f
PG
119%{__make} install \
120 DESTDIR=$RPM_BUILD_ROOT
b26e6e51 121
122%clean
123rm -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
This page took 0.073626 seconds and 4 git commands to generate.