]> git.pld-linux.org Git - packages/DevIL.git/blame - DevIL.spec
- release 3
[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
16a5e177 4Version: 1.7.2
f28788f8 5%define manual_version 1.5.5
b9b4afaf 6%define docs_version 1.6.5
07f9156e 7Release: 3
16a5e177 8License: LGPL v2.1
b26e6e51 9Group: Libraries
16a5e177
JB
10Source0: http://dl.sourceforge.net/openil/%{name}-%{version}.tar.gz
11# Source0-md5: 67d669df245c846ec9f54dfc086a00b6
f28788f8 12Source1: http://dl.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip
13# Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe
b9b4afaf
AG
14Source2: http://dl.sourceforge.net/openil/%{name}-docs.tar.gz
15# Source2-md5: eec6ae7a028a3f058bab1a6918428ed5
16a5e177
JB
16Patch0: %{name}-c++.patch
17Patch1: %{name}-link.patch
0d0e13f8 18Patch2: %{name}-gnu-inline.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
16a5e177 25BuildRequires: jasper-devel
b26e6e51 26BuildRequires: lcms-devel
27BuildRequires: libjpeg-devel
28BuildRequires: libmng-devel
29BuildRequires: libpng-devel
30BuildRequires: libtiff-devel
663a085f 31BuildRequires: libtool >= 2:1.5
5a07b428 32BuildRequires: unzip
a93e8881 33BuildRequires: which
663a085f 34Requires: allegro >= 4.1.16
b26e6e51 35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%define _noautoreqdep libGL.so.1 libGLU.so.1
38
39%description
40Developer's Image Library (DevIL) is a programmer's library to develop
41applications with very powerful image loading capabilities, yet is
42easy for a developer to learn and use. Ultimate control of images is
43left to the developer, so unnecessary conversions, etc. are not
44performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can
45load, save, convert, manipulate, filter and display a wide variety of
46image formats.
47
16a5e177
JB
48Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .icns,
49.jp2, .jpg, .lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic,
50.png, .ppm, .psd, .psp, .raw, .sgi, .tga and .tif files.
b26e6e51 51
52Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm,
53.pcx, .pgm, .png, .ppm, .raw, .sgi, .tga and .tif.
54
e247203e
JR
55%description -l pl.UTF-8
56Developer's Image Library (DevIL) jest biblioteką programisty
57pozwalającą tworzyć aplikacje z potężnymi możliwościami ładowania
58obrazów. Pozostaje przy tym łatwa w użyciu i prosta do nauczenia się.
59Ostateczna kontrola nad obrazami jest zostawiona programiście, nie
60wprowadza się niepotrzebnych konwersji, itp. DevIL używa prostej, lecz
61potężnej składni poleceń, wzorowanej na OpenGL-u. DevIL potrafi
62ładować, zapisywać, konwertować, manipulować, filtrować szeroki
63wachlarz formatów plików graficznych.
b26e6e51 64
65W chwili obecnej DevIL odczytuje pliki z rozszerzeniami bmp, cut, dds,
16a5e177
JB
66doom, gif, icns, ico, jp2, jpg, lbm, mdl, mng, pal, pbm, pcd, pcx,
67pgm, pic, png, ppm, psd, psp, raw, sgi, tga i tif.
b26e6e51 68
e247203e 69Wspierane jest zapisywanie do plików bmp, dds, h, jpg, pal, pbm, pcx,
b26e6e51 70pgm, png, ppm, raw, sgi, tga i tif.
71
72%package devel
73Summary: DevIL devel files
9d1f46ef 74Summary(pl.UTF-8): Nagłówki DevIL
b26e6e51 75Group: Development/Libraries
51c3e4ff 76Requires: %{name} = %{version}-%{release}
16a5e177 77Requires: jasper-devel
663a085f
JB
78Requires: lcms-devel
79Requires: libjpeg-devel
80Requires: libmng-devel
81Requires: libpng-devel
82Requires: libtiff-devel
83# libILUT additionally: SDL-devel, allegro-devel, OpenGL-GLU-devel
b26e6e51 84
85%description devel
86DevIL devel files.
87
e247203e
JR
88%description devel -l pl.UTF-8
89Nagłówki DevIL.
b26e6e51 90
91%package doc
92Summary: DevIL documentation
9d1f46ef 93Summary(pl.UTF-8): Dokumentacja DevIL
462875c5 94Group: Documentation
b26e6e51 95
96%description doc
97DevIL documentation.
98
e247203e 99%description doc -l pl.UTF-8
b26e6e51 100Dokumentacja DevIL.
101
102%prep
16a5e177 103%setup -q -c -a1 -a2
663a085f 104%patch0 -p1
00893026 105%patch1 -p1
0d0e13f8 106%patch2 -p1
663a085f
JB
107
108# just SDL and messing libtool macros
109rm -f acinclude.m4
b26e6e51 110
b26e6e51 111%build
663a085f
JB
112%{__libtoolize}
113%{__aclocal}
114%{__autoconf}
16a5e177 115%{__autoheader}
663a085f 116%{__automake}
16a5e177
JB
117# actual exr support missing in sources, only adds undefined symbol
118CPPFLAGS="%{rpmcppflags} -DIL_NO_EXR"
b26e6e51 119%configure \
120 %{?debug:--disable-release}
121%{__make}
122
123%install
124rm -rf $RPM_BUILD_ROOT
125
19d04b2f
PG
126%{__make} install \
127 DESTDIR=$RPM_BUILD_ROOT
b26e6e51 128
129%clean
130rm -rf $RPM_BUILD_ROOT
131
b388cc31
AG
132%post -p /sbin/ldconfig
133%postun -p /sbin/ldconfig
134
b26e6e51 135%files
136%defattr(644,root,root,755)
1731a661 137%doc AUTHORS CREDITS ChangeLog README.unix
663a085f 138%attr(755,root,root) %{_libdir}/libIL.so.*.*.*
16a5e177 139%attr(755,root,root) %ghost %{_libdir}/libIL.so.1
663a085f 140%attr(755,root,root) %{_libdir}/libILU.so.*.*.*
16a5e177 141%attr(755,root,root) %ghost %{_libdir}/libILU.so.1
663a085f 142%attr(755,root,root) %{_libdir}/libILUT.so.*.*.*
16a5e177 143%attr(755,root,root) %ghost %{_libdir}/libILUT.so.1
b26e6e51 144
145%files devel
146%defattr(644,root,root,755)
663a085f
JB
147%attr(755,root,root) %{_libdir}/libIL.so
148%attr(755,root,root) %{_libdir}/libILU.so
149%attr(755,root,root) %{_libdir}/libILUT.so
150%{_libdir}/libIL.la
151%{_libdir}/libILU.la
152%{_libdir}/libILUT.la
153%{_includedir}/IL
b26e6e51 154
155%files doc
156%defattr(644,root,root,755)
f28788f8 157%doc DevIL*.pdf
This page took 0.057214 seconds and 4 git commands to generate.