]> git.pld-linux.org Git - packages/DevIL.git/blame - DevIL.spec
- rediffed patches, added jasper3 patch to adjust to jasper 3.0.x API; release 2
[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
550c3aa5 4Version: 1.8.0
68f7077d 5Release: 2
16a5e177 6License: LGPL v2.1
b26e6e51 7Group: Libraries
549f5ea9 8Source0: http://downloads.sourceforge.net/openil/%{name}-%{version}.tar.gz
550c3aa5
JB
9# Source0-md5: 4d8c21aa4822ac86d77e44f8d7c9becd
10Patch0: %{name}-cmake.patch
11Patch1: %{name}-info.patch
12Patch2: %{name}-ILUT.patch
68f7077d 13Patch3: %{name}-jasper3.patch
b26e6e51 14URL: http://openil.sourceforge.net/
6a2717dc 15BuildRequires: OpenEXR-devel
663a085f
JB
16BuildRequires: OpenGL-GLU-devel
17BuildRequires: SDL-devel >= 1.2.5
18BuildRequires: allegro-devel >= 4.1.16
550c3aa5 19BuildRequires: cmake >= 2.6
68f7077d 20BuildRequires: jasper-devel >= 3
550c3aa5 21BuildRequires: lcms2-devel >= 2
b26e6e51 22BuildRequires: libjpeg-devel
23BuildRequires: libmng-devel
24BuildRequires: libpng-devel
25BuildRequires: libtiff-devel
9731601b 26BuildRequires: pkgconfig
68f7077d 27BuildRequires: rpm-build >= 4.6
550c3aa5 28BuildRequires: rpmbuild(macros) >= 1.605
e74167f1 29BuildRequires: squish-devel
5921fce3 30BuildRequires: sed >= 4.0
5a07b428 31BuildRequires: unzip
6a2717dc 32BuildRequires: xorg-lib-libXext-devel
b26e6e51 33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
b26e6e51 35%description
36Developer's Image Library (DevIL) is a programmer's library to develop
37applications with very powerful image loading capabilities, yet is
38easy for a developer to learn and use. Ultimate control of images is
39left to the developer, so unnecessary conversions, etc. are not
40performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can
41load, save, convert, manipulate, filter and display a wide variety of
42image formats.
43
16a5e177
JB
44Currently, DevIL can load .bmp, .cut, .dds, .doom, .gif, .ico, .icns,
45.jp2, .jpg, .lbm, .mdl, .mng, .pal, .pbm, .pcd, .pcx, .pgm, .pic,
46.png, .ppm, .psd, .psp, .raw, .sgi, .tga and .tif files.
b26e6e51 47
48Formats supported for saving include .bmp, .dds, .h, .jpg, .pal, .pbm,
49.pcx, .pgm, .png, .ppm, .raw, .sgi, .tga and .tif.
50
e247203e
JR
51%description -l pl.UTF-8
52Developer's Image Library (DevIL) jest biblioteką programisty
53pozwalającą tworzyć aplikacje z potężnymi możliwościami ładowania
54obrazów. Pozostaje przy tym łatwa w użyciu i prosta do nauczenia się.
55Ostateczna kontrola nad obrazami jest zostawiona programiście, nie
56wprowadza się niepotrzebnych konwersji, itp. DevIL używa prostej, lecz
57potężnej składni poleceń, wzorowanej na OpenGL-u. DevIL potrafi
58ładować, zapisywać, konwertować, manipulować, filtrować szeroki
59wachlarz formatów plików graficznych.
b26e6e51 60
61W chwili obecnej DevIL odczytuje pliki z rozszerzeniami bmp, cut, dds,
16a5e177
JB
62doom, gif, icns, ico, jp2, jpg, lbm, mdl, mng, pal, pbm, pcd, pcx,
63pgm, pic, png, ppm, psd, psp, raw, sgi, tga i tif.
b26e6e51 64
6a2717dc
JB
65Obsługiwane jest zapisywanie do plików bmp, dds, h, jpg, pal, pbm,
66pcx, pgm, png, ppm, raw, sgi, tga i tif.
b26e6e51 67
68%package devel
6a2717dc
JB
69Summary: DevIL development files
70Summary(pl.UTF-8): Pliki nagłówkowe bibliotek DevIL
b26e6e51 71Group: Development/Libraries
51c3e4ff 72Requires: %{name} = %{version}-%{release}
6a2717dc 73Requires: OpenEXR-devel
68f7077d 74Requires: jasper-devel >= 3
663a085f
JB
75Requires: lcms-devel
76Requires: libjpeg-devel
77Requires: libmng-devel
78Requires: libpng-devel
79Requires: libtiff-devel
e74167f1 80Requires: squish-devel
68f7077d 81Obsoletes: DevIL-static < 1.8
b26e6e51 82
83%description devel
6a2717dc 84DevIL development files (for IL and ILU libraries).
b26e6e51 85
e247203e 86%description devel -l pl.UTF-8
6a2717dc
JB
87Pliki nagłówkowe bibliotek DevIL (IL i ILU).
88
6a2717dc
JB
89%package ILUT
90Summary: DevIL ILUT library
91Summary(pl.UTF-8): Biblioteka DevIL ILUT
92Group: Libraries
93Requires: %{name} = %{version}-%{release}
94Requires: SDL >= 1.2.5
95Requires: allegro >= 4.1.16
96
97%description ILUT
98DevIL ILUT library - connection to higher level libraries.
99
739f9dbd 100%description ILUT -l pl.UTF-8
6a2717dc
JB
101Biblioteka DevIL ILUT - łącznik z bibliotekami wyższego poziomu.
102
103%package ILUT-devel
104Summary: Development files for DevIL ILUT library
105Summary(pl.UTF-8): Pliki programistyczne biblioteki DevIL ILUT
106Group: Development/Libraries
107Requires: %{name}-ILUT = %{version}-%{release}
108Requires: %{name}-devel = %{version}-%{release}
109Requires: OpenGL-GLU-devel
110Requires: SDL-devel >= 1.2.5
111Requires: allegro-devel >= 4.1.16
112Requires: xorg-lib-libXext-devel
68f7077d 113Obsoletes: DevIL-ILUT-static < 1.8
6a2717dc
JB
114
115%description ILUT-devel
116Development files for DevIL ILUT library.
117
118%description ILUT-devel -l pl.UTF-8
119Pliki programistyczne biblioteki DevIL ILUT.
120
b26e6e51 121%package doc
122Summary: DevIL documentation
9d1f46ef 123Summary(pl.UTF-8): Dokumentacja DevIL
462875c5 124Group: Documentation
68f7077d 125BuildArch: noarch
b26e6e51 126
127%description doc
128DevIL documentation.
129
e247203e 130%description doc -l pl.UTF-8
b26e6e51 131Dokumentacja DevIL.
132
133%prep
550c3aa5 134%setup -q -n DevIL
c7956080 135%patch0 -p1
e74167f1
JB
136%patch1 -p1
137%patch2 -p1
68f7077d 138%patch3 -p1
b26e6e51 139
b26e6e51 140%build
550c3aa5
JB
141# although there is configure.ac, but it misses some auxiliary files (m4/*)
142# and Makefile.am files are outdated (refer to no longer existing *.c files)
143install -d DevIL/build
144cd DevIL/build
145%cmake ..
146
147# info is not covered by CMakeLists
148cd ../docs
149# missing file
150cat >version.texi <<EOF
151@set UPDATED 8 March 2009
152@set UPDATED-MONTH March 2009
153@set EDITION %{version}
154@set VERSION %{version}
155EOF
156makeinfo DevIL_manual.texi
b26e6e51 157
158%install
159rm -rf $RPM_BUILD_ROOT
160
550c3aa5 161%{__make} -C DevIL/build install \
19d04b2f 162 DESTDIR=$RPM_BUILD_ROOT
b26e6e51 163
550c3aa5
JB
164install -Dp DevIL/docs/DevIL_manual.info $RPM_BUILD_ROOT%{_infodir}/DevIL_manual.info
165
b26e6e51 166%clean
167rm -rf $RPM_BUILD_ROOT
168
b388cc31
AG
169%post -p /sbin/ldconfig
170%postun -p /sbin/ldconfig
171
6a2717dc
JB
172%post devel -p /sbin/postshell
173-/usr/sbin/fix-info-dir -c %{_infodir}
174
175%postun devel -p /sbin/postshell
176-/usr/sbin/fix-info-dir -c %{_infodir}
177
b26e6e51 178%files
179%defattr(644,root,root,755)
550c3aa5 180%doc DevIL/{AUTHORS,CREDITS,ChangeLog,NEWS,README.md,TODO}
6a2717dc 181%attr(755,root,root) %{_bindir}/ilur
663a085f 182%attr(755,root,root) %{_libdir}/libIL.so.*.*.*
16a5e177 183%attr(755,root,root) %ghost %{_libdir}/libIL.so.1
663a085f 184%attr(755,root,root) %{_libdir}/libILU.so.*.*.*
16a5e177 185%attr(755,root,root) %ghost %{_libdir}/libILU.so.1
b26e6e51 186
187%files devel
188%defattr(644,root,root,755)
663a085f
JB
189%attr(755,root,root) %{_libdir}/libIL.so
190%attr(755,root,root) %{_libdir}/libILU.so
6a2717dc
JB
191%dir %{_includedir}/IL
192%{_includedir}/IL/il.h
193%{_includedir}/IL/ilu.h
194%{_includedir}/IL/ilu_region.h
195%{_pkgconfigdir}/IL.pc
196%{_pkgconfigdir}/ILU.pc
197%{_infodir}/DevIL_manual.info*
198
6a2717dc
JB
199%files ILUT
200%defattr(644,root,root,755)
201%attr(755,root,root) %{_libdir}/libILUT.so.*.*.*
202%attr(755,root,root) %ghost %{_libdir}/libILUT.so.1
203
204%files ILUT-devel
205%defattr(644,root,root,755)
206%attr(755,root,root) %{_libdir}/libILUT.so
207%{_includedir}/IL/devil_cpp_wrapper.hpp
208%{_includedir}/IL/ilut.h
6a2717dc
JB
209%{_pkgconfigdir}/ILUT.pc
210
b26e6e51 211%files doc
212%defattr(644,root,root,755)
550c3aa5 213%doc DevIL-docs/DevIL*.pdf
This page took 0.101207 seconds and 5 git commands to generate.