]> git.pld-linux.org Git - packages/DevIL.git/blame - DevIL.spec
- release 16 (by relup.sh)
[packages/DevIL.git] / DevIL.spec
CommitLineData
e74167f1
JB
1#
2# Conditional build:
3%bcond_with sse # use SSE extension
4%bcond_with sse2 # use SSE2 extension
5%bcond_with sse3 # use SSE3 extension
6#
7%ifarch pentium3 pentium4 %{x8664}
8%define with_sse 1
9%endif
10%ifarch pentium4 %{x8664}
11%define with_sse2 1
12%endif
549f5ea9 13%define manual_version 1.5.5
b26e6e51 14Summary: Full featured image library
9d1f46ef 15Summary(pl.UTF-8): Biblioteka obsługi obrazów z mnóstwem funkcji
b26e6e51 16Name: DevIL
549f5ea9 17Version: 1.7.8
ed2d028e 18Release: 16
16a5e177 19License: LGPL v2.1
b26e6e51 20Group: Libraries
549f5ea9 21Source0: http://downloads.sourceforge.net/openil/%{name}-%{version}.tar.gz
22# Source0-md5: 7918f215524589435e5ec2e8736d5e1d
23Source1: http://downloads.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip
f28788f8 24# Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe
549f5ea9 25Source2: http://downloads.sourceforge.net/openil/%{name}-docs.tar.gz
b9b4afaf 26# Source2-md5: eec6ae7a028a3f058bab1a6918428ed5
6a2717dc 27Patch0: libpng14.patch
e74167f1
JB
28Patch1: %{name}-squish.patch
29Patch2: %{name}-as-needed.patch
6de980dc 30Patch3: gcc5.patch
b26e6e51 31URL: http://openil.sourceforge.net/
6a2717dc 32BuildRequires: OpenEXR-devel
663a085f
JB
33BuildRequires: OpenGL-GLU-devel
34BuildRequires: SDL-devel >= 1.2.5
35BuildRequires: allegro-devel >= 4.1.16
36BuildRequires: autoconf >= 2.52
b26e6e51 37BuildRequires: automake
16a5e177 38BuildRequires: jasper-devel
b26e6e51 39BuildRequires: lcms-devel
40BuildRequires: libjpeg-devel
41BuildRequires: libmng-devel
42BuildRequires: libpng-devel
43BuildRequires: libtiff-devel
663a085f 44BuildRequires: libtool >= 2:1.5
9731601b 45BuildRequires: pkgconfig
5921fce3 46BuildRequires: rpmbuild(macros) >= 1.533
e74167f1 47BuildRequires: squish-devel
5921fce3 48BuildRequires: sed >= 4.0
5a07b428 49BuildRequires: unzip
6a2717dc 50BuildRequires: xorg-lib-libXext-devel
b26e6e51 51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53%define _noautoreqdep libGL.so.1 libGLU.so.1
54
55%description
56Developer's Image Library (DevIL) is a programmer's library to develop
57applications with very powerful image loading capabilities, yet is
58easy for a developer to learn and use. Ultimate control of images is
59left to the developer, so unnecessary conversions, etc. are not
60performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can
61load, save, convert, manipulate, filter and display a wide variety of
62image formats.
63
16a5e177
JB
64Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .icns,
65.jp2, .jpg, .lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic,
66.png, .ppm, .psd, .psp, .raw, .sgi, .tga and .tif files.
b26e6e51 67
68Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm,
69.pcx, .pgm, .png, .ppm, .raw, .sgi, .tga and .tif.
70
e247203e
JR
71%description -l pl.UTF-8
72Developer's Image Library (DevIL) jest biblioteką programisty
73pozwalającą tworzyć aplikacje z potężnymi możliwościami ładowania
74obrazów. Pozostaje przy tym łatwa w użyciu i prosta do nauczenia się.
75Ostateczna kontrola nad obrazami jest zostawiona programiście, nie
76wprowadza się niepotrzebnych konwersji, itp. DevIL używa prostej, lecz
77potężnej składni poleceń, wzorowanej na OpenGL-u. DevIL potrafi
78ładować, zapisywać, konwertować, manipulować, filtrować szeroki
79wachlarz formatów plików graficznych.
b26e6e51 80
81W chwili obecnej DevIL odczytuje pliki z rozszerzeniami bmp, cut, dds,
16a5e177
JB
82doom, gif, icns, ico, jp2, jpg, lbm, mdl, mng, pal, pbm, pcd, pcx,
83pgm, pic, png, ppm, psd, psp, raw, sgi, tga i tif.
b26e6e51 84
6a2717dc
JB
85Obsługiwane jest zapisywanie do plików bmp, dds, h, jpg, pal, pbm,
86pcx, pgm, png, ppm, raw, sgi, tga i tif.
b26e6e51 87
88%package devel
6a2717dc
JB
89Summary: DevIL development files
90Summary(pl.UTF-8): Pliki nagłówkowe bibliotek DevIL
b26e6e51 91Group: Development/Libraries
51c3e4ff 92Requires: %{name} = %{version}-%{release}
6a2717dc 93Requires: OpenEXR-devel
16a5e177 94Requires: jasper-devel
663a085f
JB
95Requires: lcms-devel
96Requires: libjpeg-devel
97Requires: libmng-devel
98Requires: libpng-devel
99Requires: libtiff-devel
e74167f1 100Requires: squish-devel
b26e6e51 101
102%description devel
6a2717dc 103DevIL development files (for IL and ILU libraries).
b26e6e51 104
e247203e 105%description devel -l pl.UTF-8
6a2717dc
JB
106Pliki nagłówkowe bibliotek DevIL (IL i ILU).
107
108%package static
109Summary: Static DevIL libraries
110Summary(pl.UTF-8): Statyczne biblioteki DevIL
111Group: Development/Libraries
112Requires: %{name}-devel = %{version}-%{release}
113
114%description static
115Static DevIL libraries (IL and ILU).
116
117%description static -l pl.UTF-8
118Statyczne biblioteki DevIL (IL i ILU).
119
120%package ILUT
121Summary: DevIL ILUT library
122Summary(pl.UTF-8): Biblioteka DevIL ILUT
123Group: Libraries
124Requires: %{name} = %{version}-%{release}
125Requires: SDL >= 1.2.5
126Requires: allegro >= 4.1.16
127
128%description ILUT
129DevIL ILUT library - connection to higher level libraries.
130
739f9dbd 131%description ILUT -l pl.UTF-8
6a2717dc
JB
132Biblioteka DevIL ILUT - łącznik z bibliotekami wyższego poziomu.
133
134%package ILUT-devel
135Summary: Development files for DevIL ILUT library
136Summary(pl.UTF-8): Pliki programistyczne biblioteki DevIL ILUT
137Group: Development/Libraries
138Requires: %{name}-ILUT = %{version}-%{release}
139Requires: %{name}-devel = %{version}-%{release}
140Requires: OpenGL-GLU-devel
141Requires: SDL-devel >= 1.2.5
142Requires: allegro-devel >= 4.1.16
143Requires: xorg-lib-libXext-devel
144
145%description ILUT-devel
146Development files for DevIL ILUT library.
147
148%description ILUT-devel -l pl.UTF-8
149Pliki programistyczne biblioteki DevIL ILUT.
150
151%package ILUT-static
152Summary: Static DevIL ILUT library
153Summary(pl.UTF-8): Statyczna biblioteka DevIL ILUT
154Group: Development/Libraries
155Requires: %{name}-ILUT-devel = %{version}-%{release}
156
157%description ILUT-static
158Static DevIL ILUT library.
159
160%description ILUT-static -l pl.UTF-8
161Statyczna biblioteka DevIL ILUT.
b26e6e51 162
163%package doc
164Summary: DevIL documentation
9d1f46ef 165Summary(pl.UTF-8): Dokumentacja DevIL
462875c5 166Group: Documentation
b26e6e51 167
168%description doc
169DevIL documentation.
170
e247203e 171%description doc -l pl.UTF-8
b26e6e51 172Dokumentacja DevIL.
173
174%prep
16a5e177 175%setup -q -c -a1 -a2
c7956080 176%patch0 -p1
e74167f1
JB
177%patch1 -p1
178%patch2 -p1
6de980dc 179%patch3 -p1
b26e6e51 180
b26e6e51 181%build
549f5ea9 182cd devil-%{version}
663a085f 183%{__libtoolize}
549f5ea9 184%{__aclocal} -I m4
663a085f 185%{__autoconf}
16a5e177 186%{__autoheader}
663a085f 187%{__automake}
b26e6e51 188%configure \
6a2717dc
JB
189 --enable-ILU \
190 --enable-ILUT \
e74167f1
JB
191 %{?debug:--disable-release} \
192 %{!?with_sse:--disable-sse} \
193 %{!?with_sse2:--disable-sse2} \
194 %{!?with_sse3:--disable-sse3}
b26e6e51 195%{__make}
196
197%install
198rm -rf $RPM_BUILD_ROOT
199
549f5ea9 200%{__make} -C devil-%{version} install \
19d04b2f 201 DESTDIR=$RPM_BUILD_ROOT
b26e6e51 202
203%clean
204rm -rf $RPM_BUILD_ROOT
205
b388cc31
AG
206%post -p /sbin/ldconfig
207%postun -p /sbin/ldconfig
208
6a2717dc
JB
209%post devel -p /sbin/postshell
210-/usr/sbin/fix-info-dir -c %{_infodir}
211
212%postun devel -p /sbin/postshell
213-/usr/sbin/fix-info-dir -c %{_infodir}
214
b26e6e51 215%files
216%defattr(644,root,root,755)
549f5ea9 217%doc devil-%{version}/{AUTHORS,CREDITS,ChangeLog,README.unix}
6a2717dc 218%attr(755,root,root) %{_bindir}/ilur
663a085f 219%attr(755,root,root) %{_libdir}/libIL.so.*.*.*
16a5e177 220%attr(755,root,root) %ghost %{_libdir}/libIL.so.1
663a085f 221%attr(755,root,root) %{_libdir}/libILU.so.*.*.*
16a5e177 222%attr(755,root,root) %ghost %{_libdir}/libILU.so.1
b26e6e51 223
224%files devel
225%defattr(644,root,root,755)
663a085f
JB
226%attr(755,root,root) %{_libdir}/libIL.so
227%attr(755,root,root) %{_libdir}/libILU.so
663a085f
JB
228%{_libdir}/libIL.la
229%{_libdir}/libILU.la
6a2717dc
JB
230%dir %{_includedir}/IL
231%{_includedir}/IL/il.h
232%{_includedir}/IL/ilu.h
233%{_includedir}/IL/ilu_region.h
234%{_pkgconfigdir}/IL.pc
235%{_pkgconfigdir}/ILU.pc
236%{_infodir}/DevIL_manual.info*
237
238%files static
239%defattr(644,root,root,755)
240%{_libdir}/libIL.a
241%{_libdir}/libILU.a
242
243%files ILUT
244%defattr(644,root,root,755)
245%attr(755,root,root) %{_libdir}/libILUT.so.*.*.*
246%attr(755,root,root) %ghost %{_libdir}/libILUT.so.1
247
248%files ILUT-devel
249%defattr(644,root,root,755)
250%attr(755,root,root) %{_libdir}/libILUT.so
251%{_includedir}/IL/devil_cpp_wrapper.hpp
252%{_includedir}/IL/ilut.h
663a085f 253%{_libdir}/libILUT.la
6a2717dc
JB
254%{_pkgconfigdir}/ILUT.pc
255
256%files ILUT-static
257%defattr(644,root,root,755)
258%{_libdir}/libILUT.a
b26e6e51 259
260%files doc
261%defattr(644,root,root,755)
f28788f8 262%doc DevIL*.pdf
This page took 0.106853 seconds and 4 git commands to generate.