/[packages]/cauldron/gdk-pixbuf/current/SPECS/gdk-pixbuf.spec
ViewVC logotype

Contents of /cauldron/gdk-pixbuf/current/SPECS/gdk-pixbuf.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 425498 - (show annotations) (download)
Thu May 23 21:24:51 2013 UTC (11 years ago) by tv
File size: 6150 byte(s)
fix URL
1 %define major 2
2 %define major_gnomecanvas 1
3 %define lib_name %mklibname %{name} %{major}
4 %define lib_canvas %mklibname %{name}-gnomecanvas %{major_gnomecanvas}
5 %define lib_xlib %mklibname %{name}-xlib %{major}
6
7 # define to use Xvfb
8 %define build_xvfb 0
9
10 # Allow --with[out] <feature> at rpm command line build
11 %{?_without_XVFB: %{expand: %%define build_xvfb 0}}
12 %{?_with_XVFB: %{expand: %%define build_xvfb 1}}
13
14 Summary: An image loading and rendering library for Gdk
15 Name: gdk-pixbuf
16 Version: 0.22.0
17 Release: %mkrel 17
18 License: LGPLv2+
19 Group: System/Libraries
20 URL: http://www.gnome.org/
21 Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
22 Patch0: gdk-pixbuf-demolink.patch
23 # (fc) 0.18.0-1mdk don't add -Llibdir to gdk-pixbuf-config --libs
24 Patch1: gdk-pixbuf-0.18.0-libdir.patch
25 # (fc) 0.22.0-4mdk security update for CAN-2004-0782, CAN-2004-0783, CAN-2004-0788, and CAN-2004-0753
26 Patch2: gdk-pixbuf-0.22.0-CAN-2004-0753.patch
27 Patch3: gdk-pixbuf-0.22.0-loaders.patch
28 # (gb) 0.22.0-7mdk this applies to aclocal.m4 directly, don't bother with older aclocal
29 Patch4: gdk-pixbuf-0.22.0-libtool.patch
30 # (fc) 0.22.0-8mdk fix BMP vulnerability (CVS) (CAN-2005-0891)
31 Patch5: gdk-pixbuf-0.22.0-bmpcrash.patch
32 # (fc) 0.22.0-8mdk fix ICO width (Fedora)
33 Patch6: gdk-pixbuf-0.22.0-ico-width.patch
34 Patch7: gdk-pixbuf-0.22.0-fix-underquoted-calls.patch
35 Patch8: gdk-pixbuf-0.22.0-rgb.txt_fix.diff
36 Patch9: gdk-pixbuf-0.22.0-linkage_fix.diff
37 Patch10: gdk-pixbuf-0.22.0-remove-gmodule-configure-check.patch
38 Requires: %{name}-loaders = %{version}
39 BuildRequires: db1-devel
40 BuildRequires: gnome-libs-devel
41 BuildRequires: libjpeg-devel
42 BuildRequires: libpng-devel
43 BuildRequires: libtiff-devel
44 BuildRequires: automake1.4
45 BuildRequires: libxt-devel
46 BuildRequires: rgb
47 %if %{build_xvfb}
48 BuildRequires: XFree86-Xvfb
49 %endif
50 BuildRoot: %{_tmppath}//%{name}-%{version}-%{release}-buildroot
51
52 %description
53 The GdkPixBuf library provides a number of features:
54 - Image loading facilities.
55 - Rendering of a GdkPixBuf into various formats:
56 drawables (windows, pixmaps), GdkRGB buffers.
57
58 %package -n %{lib_name}
59 Summary: An image loading and rendering library for Gdk
60 Group: System/Libraries
61 Requires: %{name}-loaders = %{version}
62 Obsoletes: gdk-pixbuf
63 Provides: gdk-pixbuf = %{version}
64
65 %description -n %{lib_name}
66 The GdkPixBuf library provides a number of features:
67 - Image loading facilities.
68 - Rendering of a GdkPixBuf into various formats:
69 drawables (windows, pixmaps), GdkRGB buffers.
70
71 This package provides GTK+ version of gdk-pixbuf
72
73 %package -n %{lib_canvas}
74 Summary: An image loading and rendering library for Gdk
75 Group: System/Libraries
76 Requires: gnome-libs %{name}-loaders = %{version}
77 Obsoletes: %{name}-gnomecanvas
78 Provides: %{name}-gnomecanvas = %{version}
79 Obsoletes: lib%{name}-gnomecanvas2 <= 0.13.0-1mdk
80 Provides: lib%{name}-gnomecanvas2 = %{version}
81
82 %description -n %{lib_canvas}
83 The GdkPixBuf library provides a number of features:
84 - Image loading facilities.
85 - Rendering of a GdkPixBuf into various formats:
86 drawables (windows, pixmaps), GdkRGB buffers.
87
88 This package provides GNOME version of gdk-pixbuf
89
90 %package -n %{lib_xlib}
91 Summary: An image loading and rendering library for Gdk
92 Group: System/Libraries
93 Requires: %{name}-loaders = %{version}
94 Obsoletes: %{name}-xlib
95 Provides: %{name}-xlib = %{version}
96
97 %description -n %{lib_xlib}
98 The GdkPixBuf library provides a number of features:
99 - Image loading facilities.
100 - Rendering of a GdkPixBuf into various formats:
101 drawables (windows, pixmaps), GdkRGB buffers.
102
103 This package provides Xlib version of gdk-pixbuf
104
105 %package loaders
106 Summary: An image loading and rendering library for Gdk
107 Group: System/Libraries
108
109 %description loaders
110 The GdkPixBuf library provides a number of features:
111 - Image loading facilities.
112 - Rendering of a GdkPixBuf into various formats:
113 drawables (windows, pixmaps), GdkRGB buffers.
114
115 This package provides image loaders used by all versions
116 of GdkPixBuf
117
118 %package -n %{lib_name}-devel
119 Summary: Development tools for GdkPixBuf applications
120 Group: Development/GNOME and GTK+
121 Requires: %{lib_canvas} = %{version}
122 Requires: %{lib_xlib} = %{version}
123 Requires: %{lib_name} = %{version}
124 Obsoletes: %{name}-devel
125 Provides: %{name}-devel = %{version}
126 Provides: lib%{name}-devel = %{version}
127
128 %description -n %{lib_name}-devel
129 The header files, static libraries and documentation needed for
130 deeveloping GdkPixBuf applications. GdkPixBuf is an image loading and rendering
131 library for Gdk.
132
133 Install the imlib-devel package if you want to develop Imlib applications.
134 You'll also need to install the gdk-pixbuf package.
135
136 %prep
137
138 %setup -q
139 %patch0 -p1 -b .demolink
140 %patch1 -p1 -b .libdir
141 %patch2 -p1 -b .can-2004-0753
142 %patch3 -p1 -b .can-2004-0782_0783_0788
143 %patch4 -p1 -b .libtool
144 %patch5 -p1 -b .bmpcrash
145 %patch6 -p1 -b .ico-width
146 %patch7 -p1 -b .underquoted
147 %patch8 -p0
148 %patch9 -p1
149 %patch10 -p0
150 # needed by patches 1 & 4
151 libtoolize --install --force
152 aclocal-1.4
153 autoconf
154 automake-1.4 -a -c
155
156 %build
157
158 %define _disable_ld_no_undefined 1
159 %configure2_5x --disable-gtk-doc
160
161 %if %{build_xvfb}
162 XDISPLAY=$(i=0; while [ -f /tmp/.X$i-lock ]; do i=$(($i+1)); done; echo $i)
163 Xvfb :$XDISPLAY >& /dev/null &
164 DISPLAY=:$XDISPLAY make
165 kill $(cat /tmp/.X$XDISPLAY-lock)
166 %else
167 make
168 %endif
169
170
171 %install
172 rm -rf $RPM_BUILD_ROOT
173
174 %makeinstall_std
175
176 %multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-config
177
178 %clean
179 rm -rf $RPM_BUILD_ROOT
180
181 %files -n %{lib_name}
182 %defattr(-,root,root)
183 %doc AUTHORS COPYING COPYING.LIB NEWS README TODO
184 %{_libdir}/libgdk_pixbuf.so.*
185
186 %files loaders
187 %defattr(-,root,root)
188 %dir %{_libdir}/gdk-pixbuf
189 %dir %{_libdir}/gdk-pixbuf/loaders
190 %{_libdir}/gdk-pixbuf/loaders/*.so*
191
192 %files -n %{lib_xlib}
193 %defattr(-,root,root)
194 %{_libdir}/*xlib.so.*
195
196 %files -n %{lib_canvas}
197 %defattr(-,root,root)
198 %{_libdir}/*gnomecanvas*.so.*
199
200 %files -n %{lib_name}-devel
201 %defattr(-,root,root)
202 %{_bindir}/*-config
203 %multiarch %{multiarch_bindir}/*-config
204 %{_libdir}/*.a
205 %{_libdir}/*.la
206 %{_libdir}/libgdk*.so
207 %{_libdir}/libgnome*.so
208 %{_libdir}/gdk-pixbuf/loaders/*a
209 %{_includedir}/*
210 %{_datadir}/aclocal/*
211 %{_libdir}/*.sh
212 %{_datadir}/gnome/html/*
213
214

  ViewVC Help
Powered by ViewVC 1.1.30