1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | # biarch support |
---|
4 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
5 | %define _query_suffix %{nil} |
---|
6 | %if %{build_compat32} |
---|
7 | %define _query_suffix -32 |
---|
8 | %endif |
---|
9 | |
---|
10 | Name: gdk-pixbuf2 |
---|
11 | Version: 2.28.2 |
---|
12 | Release: 1%{?_dist_release} |
---|
13 | Summary: An image loading library |
---|
14 | |
---|
15 | Group: System Environment/Libraries |
---|
16 | License: LGPLv2+ |
---|
17 | URL: http://www.gt.org |
---|
18 | Source0: http://download.gnome.org/sources/gdk-pixbuf/2.28/gdk-pixbuf-%{version}.tar.xz |
---|
19 | |
---|
20 | BuildRequires: glib2-devel >= 2.36.0 |
---|
21 | BuildRequires: libpng-devel |
---|
22 | BuildRequires: libjpeg-turbo-devel |
---|
23 | BuildRequires: libtiff-devel |
---|
24 | BuildRequires: jasper-devel |
---|
25 | BuildRequires: libX11-devel |
---|
26 | BuildRequires: gobject-introspection-devel |
---|
27 | |
---|
28 | # gdk-pixbuf does a configure time check which uses the GIO mime |
---|
29 | # layer; we need to actually have the mime type database. |
---|
30 | BuildRequires: shared-mime-info |
---|
31 | |
---|
32 | BuildRequires: gtk-doc |
---|
33 | ## BuildRequires: libtool >= 2.2.10 |
---|
34 | BuildRequires: libtool |
---|
35 | BuildRequires: gettext |
---|
36 | |
---|
37 | # We also need MIME information at runtime |
---|
38 | Requires: shared-mime-info |
---|
39 | |
---|
40 | # gdk-pixbuf was included in gtk2 until 2.21.2 |
---|
41 | Conflicts: gtk2 <= 2.21.2 |
---|
42 | |
---|
43 | # https://bugzilla.gnome.org/show_bug.cgi?id=624712 |
---|
44 | Patch0: 0001-Fix-linking-when-libpng-loader-is-builtin.patch |
---|
45 | |
---|
46 | Vendor: Project Vine |
---|
47 | Distribution: Vine Linux |
---|
48 | Packager: Takemikaduchi |
---|
49 | |
---|
50 | %description |
---|
51 | gdk-pixbuf is an image loading library that can be extended by loadable |
---|
52 | modules for new image formats. It is used by toolkits such as GTK+ or |
---|
53 | clutter. |
---|
54 | |
---|
55 | %package devel |
---|
56 | Summary: Development files for gdk-pixbuf |
---|
57 | Group: Development/Libraries |
---|
58 | Requires: %{name} = %{version}-%{release} |
---|
59 | Requires: glib2-devel |
---|
60 | Requires: gobject-introspection-devel |
---|
61 | Requires: libpng-devel |
---|
62 | |
---|
63 | # gdk-pixbuf was included in gtk2 until 2.21.2 |
---|
64 | Conflicts: gtk2-devel <= 2.21.2 |
---|
65 | |
---|
66 | %description devel |
---|
67 | This package contains the libraries and header files that are needed |
---|
68 | for writing applications that are using gdk-pixbuf. |
---|
69 | |
---|
70 | %if %{build_compat32} |
---|
71 | ####################################################################### |
---|
72 | # compat32 |
---|
73 | %package -n compat32-%{name} |
---|
74 | Summary: An image loading library |
---|
75 | Group: System Environment/Libraries |
---|
76 | Requires(post): compat32-glib2 >= %{glib2_version} |
---|
77 | # gdk-pixbuf was included in gtk2 until 2.21.2 |
---|
78 | Conflicts: compat32-gtk2 <= 2.21.2 |
---|
79 | |
---|
80 | %description -n compat32-%{name} |
---|
81 | gdk-pixbuf is an image loading library that can be extended by loadable |
---|
82 | modules for new image formats. It is used by toolkits such as GTK+ or |
---|
83 | clutter. |
---|
84 | |
---|
85 | %package -n compat32-%{name}-devel |
---|
86 | Summary: Development files for gdk-pixbuf |
---|
87 | Group: Development/Libraries |
---|
88 | Requires: compat32-%{name} = %{version}-%{release} |
---|
89 | Requires: %{name} = %{version}-%{release} |
---|
90 | Requires: compat32-libpng-devel |
---|
91 | |
---|
92 | # gdk-pixbuf was included in gtk2 until 2.21.2 |
---|
93 | Conflicts: compat32-gtk2-devel <= 2.21.2 |
---|
94 | |
---|
95 | %description -n compat32-%{name}-devel |
---|
96 | This package contains the libraries and header files that are needed |
---|
97 | for writing applications that are using gdk-pixbuf. |
---|
98 | |
---|
99 | %endif |
---|
100 | |
---|
101 | |
---|
102 | %prep |
---|
103 | %setup -q -n gdk-pixbuf-%{version} |
---|
104 | ## %patch0 -p1 -b .libpng-linking |
---|
105 | |
---|
106 | %build |
---|
107 | libtoolize --copy --force |
---|
108 | autoreconf |
---|
109 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi; |
---|
110 | %configure $CONFIGFLAGS \ |
---|
111 | --with-libjasper \ |
---|
112 | --with-x11 \ |
---|
113 | --with-included-loaders=png \ |
---|
114 | --enable-introspection=yes ) |
---|
115 | make %{?_smp_mflags} |
---|
116 | |
---|
117 | |
---|
118 | %install |
---|
119 | make install DESTDIR=$RPM_BUILD_ROOT \ |
---|
120 | RUN_QUERY_LOADER_TEST=false |
---|
121 | |
---|
122 | # Remove unpackaged files |
---|
123 | rm $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
124 | rm $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.la |
---|
125 | |
---|
126 | touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache |
---|
127 | |
---|
128 | %if %{build_compat32} |
---|
129 | cp $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders \ |
---|
130 | $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders%{_query_suffix} |
---|
131 | %endif |
---|
132 | |
---|
133 | %find_lang gdk-pixbuf |
---|
134 | |
---|
135 | %post |
---|
136 | /sbin/ldconfig |
---|
137 | gdk-pixbuf-query-loaders --update-cache || : > /dev/null 2>&1 |
---|
138 | |
---|
139 | %postun |
---|
140 | /sbin/ldconfig |
---|
141 | if [ $1 -gt 0 ]; then |
---|
142 | gdk-pixbuf-query-loaders --update-cache || : > /dev/null 2>&1 |
---|
143 | fi |
---|
144 | |
---|
145 | %if %{build_compat32} |
---|
146 | %post -n compat32-%{name} |
---|
147 | /sbin/ldconfig |
---|
148 | gdk-pixbuf-query-loaders%{_query_suffix} --update-cache || : > /dev/null 2>&1 |
---|
149 | |
---|
150 | %postun -n compat32-%{name} |
---|
151 | /sbin/ldconfig |
---|
152 | if [ $1 -gt 0 ]; then |
---|
153 | gdk-pixbuf-query-loaders%{_query_suffix} --update-cache || : > /dev/null 2>&1 |
---|
154 | fi |
---|
155 | %endif |
---|
156 | |
---|
157 | |
---|
158 | %files -f gdk-pixbuf.lang |
---|
159 | %defattr(-,root,root,-) |
---|
160 | %doc AUTHORS COPYING NEWS |
---|
161 | %{_bindir}/gdk-pixbuf-pixdata |
---|
162 | %{_libdir}/libgdk_pixbuf-2.0.so.* |
---|
163 | %{_libdir}/libgdk_pixbuf_xlib-2.0.so.* |
---|
164 | %{_libdir}/girepository-1.0 |
---|
165 | %dir %{_libdir}/gdk-pixbuf-2.0 |
---|
166 | %dir %{_libdir}/gdk-pixbuf-2.0/2.10.0 |
---|
167 | %dir %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders |
---|
168 | %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so |
---|
169 | %ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache |
---|
170 | %{_bindir}/gdk-pixbuf-query-loaders |
---|
171 | %{_mandir}/man1/gdk-pixbuf-query-loaders.1.gz |
---|
172 | |
---|
173 | %files devel |
---|
174 | %defattr(-,root,root,-) |
---|
175 | %{_includedir}/gdk-pixbuf-2.0 |
---|
176 | %{_libdir}/libgdk_pixbuf-2.0.so |
---|
177 | %{_libdir}/libgdk_pixbuf_xlib-2.0.so |
---|
178 | %{_libdir}/pkgconfig/gdk-pixbuf-2.0.pc |
---|
179 | %{_libdir}/pkgconfig/gdk-pixbuf-xlib-2.0.pc |
---|
180 | %{_bindir}/gdk-pixbuf-csource |
---|
181 | %{_datadir}/gtk-doc/html/* |
---|
182 | %{_datadir}/gir-1.0 |
---|
183 | %{_mandir}/man1/gdk-pixbuf-csource.1.gz |
---|
184 | |
---|
185 | %if %{build_compat32} |
---|
186 | %files -n compat32-%{name} |
---|
187 | %defattr(-,root,root,-) |
---|
188 | %{_libdir}/libgdk_pixbuf-2.0.so.* |
---|
189 | %{_libdir}/libgdk_pixbuf_xlib-2.0.so.* |
---|
190 | %dir %{_libdir}/gdk-pixbuf-2.0 |
---|
191 | %dir %{_libdir}/gdk-pixbuf-2.0/2.10.0 |
---|
192 | %dir %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders |
---|
193 | %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.so |
---|
194 | %ghost %{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache |
---|
195 | %{_bindir}/gdk-pixbuf-query-loaders%{_query_suffix} |
---|
196 | |
---|
197 | %files -n compat32-%{name}-devel |
---|
198 | %defattr(-,root,root,-) |
---|
199 | %{_libdir}/libgdk_pixbuf-2.0.so |
---|
200 | %{_libdir}/libgdk_pixbuf_xlib-2.0.so |
---|
201 | %endif |
---|
202 | |
---|
203 | %changelog |
---|
204 | * Sun Jun 09 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.2-1 |
---|
205 | - new upstream release |
---|
206 | |
---|
207 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.1-1 |
---|
208 | - new upstream release |
---|
209 | |
---|
210 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.5-1 |
---|
211 | - new upstream release |
---|
212 | |
---|
213 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.4-1 |
---|
214 | - new upstream release |
---|
215 | |
---|
216 | * Fri Aug 17 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.2-1 |
---|
217 | - new upstream release |
---|
218 | |
---|
219 | * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26.1-1 |
---|
220 | - new upstream release |
---|
221 | |
---|
222 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.24.1-1 |
---|
223 | - new upstream release |
---|
224 | - add configure option (--with-x11) |
---|
225 | |
---|
226 | * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.24.0-1 |
---|
227 | - new upstream release |
---|
228 | |
---|
229 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.23.5-1 |
---|
230 | - new upstream release |
---|
231 | |
---|
232 | * Sat Nov 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.1-1 |
---|
233 | - new upstream release |
---|
234 | |
---|
235 | * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.0-1 |
---|
236 | - new upstream release |
---|
237 | - add configure option (--enable-introspection=yes) |
---|
238 | - drop Patch0 |
---|
239 | |
---|
240 | * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.21.3-1 |
---|
241 | - initial build for Vine Linux |
---|
242 | |
---|
243 | |
---|
244 | * Mon Jul 19 2010 Bastien Nocera <bnocera@redhat.com> 2.21.6-3 |
---|
245 | - Require libpng for linking |
---|
246 | |
---|
247 | * Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 2.21.6-2 |
---|
248 | - Rebuild with new gobject-introspection |
---|
249 | |
---|
250 | * Mon Jul 12 2010 Matthias Clasen <mclasen@redhat.com> - 2.21.6-1 |
---|
251 | - Update to 2.21.6 |
---|
252 | |
---|
253 | * Fri Jul 2 2010 Colin Walters <walters@verbum.org> - 2.21.5-4 |
---|
254 | - Also Require shared-mime-info for same reason |
---|
255 | |
---|
256 | * Fri Jul 2 2010 Colin Walters <walters@verbum.org> - 2.21.5-3 |
---|
257 | - BR shared-mime-info; see comment above it |
---|
258 | |
---|
259 | * Tue Jun 29 2010 Colin Walters <walters@pocket> - 2.21.5-2 |
---|
260 | - Changes to support snapshot builds |
---|
261 | |
---|
262 | * Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> 2.21.5-1 |
---|
263 | - Update to 2.21.5 |
---|
264 | |
---|
265 | * Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.4-2 |
---|
266 | - Rename to gdk-pixbuf2 to avoid conflict with the |
---|
267 | existing gdk-pixbuf package |
---|
268 | |
---|
269 | * Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.4-1 |
---|
270 | - Update to 2.21.4 |
---|
271 | - Incorporate package review feedback |
---|
272 | |
---|
273 | * Sat Jun 26 2010 Matthias Clasen <mclasen@redhat.com> 2.21.3-1 |
---|
274 | - Initial packaging |
---|