# ToDo: # - fix %%build - one of the lib/auto* calls breaks build - # libraries are named libfoo.1.2.3 instead of libfoo.so.1.2.3 Summary: Full featured image library Summary(pl): Biblioteka obsługi obrazów z mnóstwem funkcji Name: DevIL Version: 1.6.7 %define manual_version 1.5.5 %define docs_version 1.6.5 Release: 0.1 License: GPL Group: Libraries Source0: http://dl.sourceforge.net/openil/%{name}-%{version}.tar.gz # Source0-md5: 0d0c3842196d85c4e24bedabcd84f626 Source1: http://dl.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip # Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe Source2: http://dl.sourceforge.net/openil/%{name}-docs.tar.gz # Source2-md5: eec6ae7a028a3f058bab1a6918428ed5 URL: http://openil.sourceforge.net/ BuildRequires: OpenGL-devel BuildRequires: SDL-devel BuildRequires: allegro-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: lcms-devel BuildRequires: libjpeg-devel BuildRequires: libmng-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel BuildRequires: libtool BuildRequires: unzip Requires: OpenGL BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreqdep libGL.so.1 libGLU.so.1 %description Developer's Image Library (DevIL) is a programmer's library to develop applications with very powerful image loading capabilities, yet is easy for a developer to learn and use. Ultimate control of images is left to the developer, so unnecessary conversions, etc. are not performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can load, save, convert, manipulate, filter and display a wide variety of image formats. Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .jpg, .lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic, .png, .ppm, .psd, .psp, .raw, .sgi, .tga and .tif files. Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm, .pcx, .pgm, .png, .ppm, .raw, .sgi, .tga and .tif. %description -l pl Developer's Image Library (DevIL) jest biblioteką programisty pozwalającą tworzyć aplikacje z potężnymi możliwościami ładowania obrazów. Pozostaje przy tym łatwa w użyciu i prosta do nauczenia się. Ostateczna kontrola nad obrazami jest zostawiona programiście, nie wprowadza się niepotrzebnych konwersji, itp. DevIL używa prostej, lecz potężnej składni poleceń, wzorowanej na OpenGL-u. DevIL potrafi ładować, zapisywać, konwertować, manipulować, filtrować szeroki wachlarz formatów plików graficznych. W chwili obecnej DevIL odczytuje pliki z rozszerzeniami bmp, cut, dds, doom, gif, ico, jpg, lbm, mdl, mng, pal, pbm, pcd, pcx, pgm, pic, png, ppm, psd, psp, raw, sgi, tga i tif. Wspierane jest zapisywanie do plików bmp, dds, h, jpg, pal, pbm, pcx, pgm, png, ppm, raw, sgi, tga i tif. %package devel Summary: DevIL devel files Summary(pl): Nagłówki DevIL Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel DevIL devel files. %description devel -l pl Nagłówki DevIL. %package doc Summary: DevIL documentation Summary(pl): Dokumentacja DevIL Group: Development/Libraries %description doc DevIL documentation. %description doc -l pl Dokumentacja DevIL. %prep %setup -q -a1 -a2 %build cp -f /usr/share/automake/config.sub . #%%{__libtoolize} #%%{__aclocal} #%%{__automake} #%%{__autoconf} %configure \ %{?debug:--disable-release} %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS BUGS CREDITS ChangeLog README.unix %attr(755,root,root) %{_libdir}/lib*.so.*.* %files devel %defattr(644,root,root,755) %{_libdir}/lib*.so %{_includedir}/* %files doc %defattr(644,root,root,755) %doc DevIL*.pdf