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