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