]>
Commit | Line | Data |
---|---|---|
dd8fb7b3 | 1 | # TODO: consider -x11 subpackages |
c1e066f3 MB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without apidocs # do not build and package API docs | |
2a444766 | 5 | |
c1e066f3 | 6 | %define abiver 2.10.0 |
88367156 JB |
7 | Summary: An image loading and scaling library |
8 | Summary(pl.UTF-8): Biblioteka ładująca i skalująca obrazki | |
c1e066f3 | 9 | Name: gdk-pixbuf2 |
1756601e MB |
10 | Version: 2.36.6 |
11 | Release: 1 | |
54f6e39e | 12 | License: LGPL v2+ |
c1e066f3 | 13 | Group: X11/Libraries |
8a6f58ac | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.36/gdk-pixbuf-%{version}.tar.xz |
1756601e | 15 | # Source0-md5: 5dd53760750670d27c194ff6ace7eb51 |
38a172e0 | 16 | Patch0: %{name}-png-nodep.patch |
c0889a6f | 17 | URL: https://developer.gnome.org/gdk-pixbuf/ |
c1e066f3 | 18 | BuildRequires: autoconf >= 2.63 |
011aa2c5 | 19 | BuildRequires: automake >= 1:1.11 |
8a6f58ac JB |
20 | BuildRequires: docbook-dtd43-xml |
21 | BuildRequires: docbook-style-xsl | |
cdaf86d0 | 22 | BuildRequires: gettext-tools >= 0.19 |
f361a645 | 23 | BuildRequires: glib2-devel >= 1:2.37.6 |
3023a791 | 24 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
2c2cbfcf | 25 | BuildRequires: gtk-doc >= 1.20 |
c1e066f3 MB |
26 | BuildRequires: jasper-devel |
27 | BuildRequires: libjpeg-devel | |
28 | BuildRequires: libpng-devel | |
29 | BuildRequires: libtiff-devel | |
30 | BuildRequires: libtool >= 2:2.2.6 | |
31 | BuildRequires: libxslt-progs | |
ebabf38d | 32 | BuildRequires: perl-devel |
c1e066f3 | 33 | BuildRequires: pkgconfig |
58fa43f3 | 34 | BuildRequires: rpmbuild(macros) >= 1.527 |
53b35dfe | 35 | BuildRequires: tar >= 1:1.22 |
c1e066f3 | 36 | BuildRequires: xorg-lib-libX11-devel |
53b35dfe | 37 | BuildRequires: xz |
f361a645 | 38 | Requires: glib2 >= 1:2.37.6 |
677d7e9e | 39 | Suggests: librsvg >= 2.31 |
c1e066f3 MB |
40 | Conflicts: gtk+2 < 2:2.21.3-1 |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %if "%{_lib}" != "lib" | |
44 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) | |
45 | %define pqext -%{libext} | |
46 | %else | |
47 | %define pqext %{nil} | |
48 | %endif | |
49 | ||
50 | %description | |
88367156 JB |
51 | gdk-pixbuf is an image loading and scaling library that can be |
52 | extended by loadable modules for new image formats. | |
c1e066f3 MB |
53 | |
54 | It is used by toolkits such as GTK+ or Clutter. | |
55 | ||
56 | %description -l pl.UTF-8 | |
88367156 JB |
57 | gdk-pixbuf to biblioteka ładująca i skalująca obrazki, której |
58 | funkcjonalność może być rozszerzana o obsługę nowych formatów poprzez | |
59 | ładowane moduły. | |
c1e066f3 MB |
60 | |
61 | Używana jest przez biblioteki takie jak GTK+ czy Clutter. | |
62 | ||
63 | %package devel | |
64 | Summary: Header files for gdk-pixbuf library | |
65 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gdk-pixbuf | |
66 | Group: X11/Development/Libraries | |
67 | Requires: %{name} = %{version}-%{release} | |
f361a645 | 68 | Requires: glib2-devel >= 1:2.37.6 |
c1e066f3 MB |
69 | Conflicts: gtk+2-devel < 2:2.21.3-1 |
70 | ||
71 | %description devel | |
72 | Header files for gdk-pixbuf library. | |
73 | ||
74 | %description devel -l pl.UTF-8 | |
75 | Pliki nagłówkowe biblioteki gdk-pixbuf. | |
76 | ||
77 | %package apidocs | |
78 | Summary: gdk-pixbuf API documentation | |
79 | Summary(pl.UTF-8): Dokumentacja API biblioteki gdk-pixbuf | |
80 | Group: Documentation | |
81 | Conflicts: gtk+2-apidocs < 2:2.21.3-1 | |
2a444766 ER |
82 | %if "%{_rpmversion}" >= "5" |
83 | BuildArch: noarch | |
84 | %endif | |
c1e066f3 MB |
85 | |
86 | %description apidocs | |
87 | API documentation for gdk-pixbuf library. | |
88 | ||
89 | %description apidocs -l pl.UTF-8 | |
90 | Dokumentacja API biblioteki gdk-pixbuf. | |
91 | ||
92 | %prep | |
93 | %setup -q -n gdk-pixbuf-%{version} | |
38a172e0 JB |
94 | %patch0 -p1 |
95 | ||
c1e066f3 | 96 | %build |
88367156 | 97 | %{__gettextize} |
c1e066f3 | 98 | %{__libtoolize} |
8a6f58ac | 99 | %{__aclocal} -I m4 |
c1e066f3 MB |
100 | %{__autoconf} |
101 | %{__autoheader} | |
102 | %{__automake} | |
103 | %configure \ | |
8473b236 | 104 | --disable-silent-rules \ |
c1e066f3 MB |
105 | --enable-man \ |
106 | %{__enable_disable apidocs gtk-doc} \ | |
107 | --with-html-dir=%{_gtkdocdir} \ | |
d5771b42 ŁK |
108 | --with-libjasper \ |
109 | --with-x11 | |
c1e066f3 MB |
110 | %{__make} |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %{__make} install \ | |
116 | DESTDIR=$RPM_BUILD_ROOT | |
117 | ||
118 | %if "%{_lib}" != "lib" | |
119 | # We need to have 32-bit and 64-bit binaries as they have hardcoded LIBDIR. | |
120 | # (needed when multilib is used) | |
36650217 | 121 | mv -f $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders{,%{pqext}} |
c1e066f3 MB |
122 | %endif |
123 | ||
124 | touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache | |
125 | ||
73cec6ae TP |
126 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/*.la \ |
127 | $RPM_BUILD_ROOT%{_libdir}/libgdk_pixbuf{,_xlib}-2.0.la | |
c1e066f3 | 128 | |
73cec6ae | 129 | %{!?with_apidocs:%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}} |
c1e066f3 | 130 | |
f361a645 | 131 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} |
ce56c90e | 132 | # not supported by glibc |
f361a645 | 133 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/io |
ce56c90e | 134 | |
6822717d | 135 | %find_lang gdk-pixbuf %{name}.lang |
c1e066f3 MB |
136 | |
137 | %clean | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
140 | %post | |
141 | /sbin/ldconfig | |
c1e066f3 | 142 | umask 022 |
36650217 | 143 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || : |
c1e066f3 MB |
144 | |
145 | %postun | |
146 | /sbin/ldconfig | |
c1e066f3 | 147 | if [ "$1" != "0" ]; then |
36650217 | 148 | umask 022 |
3854407a ER |
149 | # the $1 check does not match for multilib installs, check also that the binary still exists |
150 | [ ! -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ] || \ | |
36650217 | 151 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || : |
c1e066f3 | 152 | fi |
c1e066f3 | 153 | |
36650217 | 154 | %files -f %{name}.lang |
c1e066f3 | 155 | %defattr(644,root,root,755) |
e0ed300b | 156 | %doc AUTHORS NEWS |
c1e066f3 | 157 | %attr(755,root,root) %{_bindir}/gdk-pixbuf-query-loaders%{pqext} |
13b94238 | 158 | %attr(755,root,root) %{_bindir}/gdk-pixbuf-thumbnailer |
c1e066f3 MB |
159 | %attr(755,root,root) %{_libdir}/libgdk_pixbuf-2.0.so.*.*.* |
160 | %attr(755,root,root) %ghost %{_libdir}/libgdk_pixbuf-2.0.so.0 | |
161 | %attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-2.0.so.*.*.* | |
162 | %attr(755,root,root) %ghost %{_libdir}/libgdk_pixbuf_xlib-2.0.so.0 | |
163 | %dir %{_libdir}/gdk-pixbuf-2.0 | |
164 | %dir %{_libdir}/gdk-pixbuf-2.0/%{abiver} | |
165 | %ghost %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache | |
166 | %dir %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders | |
36650217 | 167 | %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-*.so |
13b94238 | 168 | %{_datadir}/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer |
9d5ca6f5 | 169 | %{_libdir}/girepository-1.0/GdkPixbuf-2.0.typelib |
c1e066f3 MB |
170 | %{_mandir}/man1/gdk-pixbuf-query-loaders.1* |
171 | ||
172 | %files devel | |
173 | %defattr(644,root,root,755) | |
174 | %attr(755,root,root) %{_bindir}/gdk-pixbuf-csource | |
8473b236 | 175 | %attr(755,root,root) %{_bindir}/gdk-pixbuf-pixdata |
c1e066f3 MB |
176 | %attr(755,root,root) %{_libdir}/libgdk_pixbuf-2.0.so |
177 | %attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-2.0.so | |
9d5ca6f5 | 178 | %{_datadir}/gir-1.0/GdkPixbuf-2.0.gir |
c1e066f3 MB |
179 | %{_mandir}/man1/gdk-pixbuf-csource.1* |
180 | %{_includedir}/gdk-pixbuf-2.0 | |
181 | %{_pkgconfigdir}/gdk-pixbuf-2.0.pc | |
182 | %{_pkgconfigdir}/gdk-pixbuf-xlib-2.0.pc | |
183 | ||
184 | %if %{with apidocs} | |
185 | %files apidocs | |
186 | %defattr(644,root,root,755) | |
187 | %{_gtkdocdir}/gdk-pixbuf | |
188 | %endif |