]> git.pld-linux.org Git - packages/DevIL.git/blame - DevIL.spec
- -link.patch obsoleted
[packages/DevIL.git] / DevIL.spec
CommitLineData
549f5ea9 1#
2# TODO: - check and fix patches if possible
3#
4%define manual_version 1.5.5
b26e6e51 5Summary: Full featured image library
9d1f46ef 6Summary(pl.UTF-8): Biblioteka obsługi obrazów z mnóstwem funkcji
b26e6e51 7Name: DevIL
549f5ea9 8Version: 1.7.8
9Release: 0.1
16a5e177 10License: LGPL v2.1
b26e6e51 11Group: Libraries
549f5ea9 12Source0: http://downloads.sourceforge.net/openil/%{name}-%{version}.tar.gz
13# Source0-md5: 7918f215524589435e5ec2e8736d5e1d
14Source1: http://downloads.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip
f28788f8 15# Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe
549f5ea9 16Source2: http://downloads.sourceforge.net/openil/%{name}-docs.tar.gz
b9b4afaf 17# Source2-md5: eec6ae7a028a3f058bab1a6918428ed5
b52f8947 18Patch0: %{name}-gnu-inline.patch
19Patch1: 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
549f5ea9 107#%%patch0 -p1
b52f8947 108%patch1 -p1
663a085f 109
549f5ea9 110# lpng12 -> lpng
111%{__sed} -i 's,png12,png,' devil-%{version}/m4/devil-definitions.m4
112
663a085f
JB
113# just SDL and messing libtool macros
114rm -f acinclude.m4
b26e6e51 115
b26e6e51 116%build
549f5ea9 117cd devil-%{version}
663a085f 118%{__libtoolize}
549f5ea9 119%{__aclocal} -I m4
663a085f 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 \
549f5ea9 126 --enable-ILU=yes \
127 --enable-ILUT=yes \
b26e6e51 128 %{?debug:--disable-release}
129%{__make}
130
131%install
132rm -rf $RPM_BUILD_ROOT
133
549f5ea9 134%{__make} -C devil-%{version} install \
19d04b2f 135 DESTDIR=$RPM_BUILD_ROOT
b26e6e51 136
137%clean
138rm -rf $RPM_BUILD_ROOT
139
b388cc31
AG
140%post -p /sbin/ldconfig
141%postun -p /sbin/ldconfig
142
b26e6e51 143%files
144%defattr(644,root,root,755)
549f5ea9 145%doc devil-%{version}/{AUTHORS,CREDITS,ChangeLog,README.unix}
663a085f 146%attr(755,root,root) %{_libdir}/libIL.so.*.*.*
16a5e177 147%attr(755,root,root) %ghost %{_libdir}/libIL.so.1
663a085f 148%attr(755,root,root) %{_libdir}/libILU.so.*.*.*
16a5e177 149%attr(755,root,root) %ghost %{_libdir}/libILU.so.1
663a085f 150%attr(755,root,root) %{_libdir}/libILUT.so.*.*.*
16a5e177 151%attr(755,root,root) %ghost %{_libdir}/libILUT.so.1
b26e6e51 152
153%files devel
154%defattr(644,root,root,755)
663a085f
JB
155%attr(755,root,root) %{_libdir}/libIL.so
156%attr(755,root,root) %{_libdir}/libILU.so
157%attr(755,root,root) %{_libdir}/libILUT.so
158%{_libdir}/libIL.la
159%{_libdir}/libILU.la
160%{_libdir}/libILUT.la
161%{_includedir}/IL
b26e6e51 162
163%files doc
164%defattr(644,root,root,755)
f28788f8 165%doc DevIL*.pdf
This page took 0.333923 seconds and 4 git commands to generate.