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