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