]>
Commit | Line | Data |
---|---|---|
c1e066f3 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
5 | %define abiver 2.10.0 | |
6 | # | |
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 |
58143953 | 10 | Version: 2.22.1 |
1c27810a | 11 | Release: 2 |
54f6e39e | 12 | License: LGPL v2+ |
c1e066f3 | 13 | Group: X11/Libraries |
9d5ca6f5 | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.22/gdk-pixbuf-%{version}.tar.bz2 |
58143953 | 15 | # Source0-md5: 716c4593ead3f9c8cca63b8b1907a561 |
9d5ca6f5 | 16 | Patch0: gobject-introspection.patch |
1c27810a | 17 | Patch1: %{name}-nopngdep.patch |
c1e066f3 MB |
18 | URL: http://www.gtk.org/ |
19 | BuildRequires: autoconf >= 2.63 | |
20 | BuildRequires: automake >= 1:1.10 | |
21 | BuildRequires: gettext-devel >= 0.17 | |
22 | BuildRequires: glib2-devel >= 1:2.25.9 | |
9d5ca6f5 | 23 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
c1e066f3 MB |
24 | BuildRequires: gtk-doc >= 1.11 |
25 | BuildRequires: jasper-devel | |
26 | BuildRequires: libjpeg-devel | |
27 | BuildRequires: libpng-devel | |
28 | BuildRequires: libtiff-devel | |
29 | BuildRequires: libtool >= 2:2.2.6 | |
30 | BuildRequires: libxslt-progs | |
ebabf38d | 31 | BuildRequires: perl-devel |
c1e066f3 MB |
32 | BuildRequires: pkgconfig |
33 | BuildRequires: xorg-lib-libX11-devel | |
34 | Requires: glib2 >= 1:2.25.9 | |
677d7e9e | 35 | Suggests: librsvg >= 2.31 |
c1e066f3 MB |
36 | Conflicts: gtk+2 < 2:2.21.3-1 |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %if "%{_lib}" != "lib" | |
40 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) | |
41 | %define pqext -%{libext} | |
42 | %else | |
43 | %define pqext %{nil} | |
44 | %endif | |
45 | ||
46 | %description | |
88367156 JB |
47 | gdk-pixbuf is an image loading and scaling library that can be |
48 | extended by loadable modules for new image formats. | |
c1e066f3 MB |
49 | |
50 | It is used by toolkits such as GTK+ or Clutter. | |
51 | ||
52 | %description -l pl.UTF-8 | |
88367156 JB |
53 | gdk-pixbuf to biblioteka ładująca i skalująca obrazki, której |
54 | funkcjonalność może być rozszerzana o obsługę nowych formatów poprzez | |
55 | ładowane moduły. | |
c1e066f3 MB |
56 | |
57 | Używana jest przez biblioteki takie jak GTK+ czy Clutter. | |
58 | ||
59 | %package devel | |
60 | Summary: Header files for gdk-pixbuf library | |
61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gdk-pixbuf | |
62 | Group: X11/Development/Libraries | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | Requires: glib2-devel >= 1:2.25.9 | |
65 | Conflicts: gtk+2-devel < 2:2.21.3-1 | |
66 | ||
67 | %description devel | |
68 | Header files for gdk-pixbuf library. | |
69 | ||
70 | %description devel -l pl.UTF-8 | |
71 | Pliki nagłówkowe biblioteki gdk-pixbuf. | |
72 | ||
73 | %package apidocs | |
74 | Summary: gdk-pixbuf API documentation | |
75 | Summary(pl.UTF-8): Dokumentacja API biblioteki gdk-pixbuf | |
76 | Group: Documentation | |
77 | Conflicts: gtk+2-apidocs < 2:2.21.3-1 | |
78 | ||
79 | %description apidocs | |
80 | API documentation for gdk-pixbuf library. | |
81 | ||
82 | %description apidocs -l pl.UTF-8 | |
83 | Dokumentacja API biblioteki gdk-pixbuf. | |
84 | ||
85 | %prep | |
86 | %setup -q -n gdk-pixbuf-%{version} | |
9d5ca6f5 | 87 | %patch0 -p1 |
1c27810a | 88 | %patch1 -p1 |
f48b93b6 PZ |
89 | sed -i s#^io## po/LINGUAS |
90 | rm po/io.po | |
c1e066f3 MB |
91 | |
92 | %build | |
88367156 | 93 | %{__gettextize} |
c1e066f3 MB |
94 | %{__libtoolize} |
95 | %{__aclocal} | |
96 | %{__autoconf} | |
97 | %{__autoheader} | |
98 | %{__automake} | |
99 | %configure \ | |
100 | --enable-man \ | |
101 | %{__enable_disable apidocs gtk-doc} \ | |
102 | --with-html-dir=%{_gtkdocdir} \ | |
103 | --with-libjasper | |
104 | %{__make} | |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %{__make} install \ | |
110 | DESTDIR=$RPM_BUILD_ROOT | |
111 | ||
112 | %if "%{_lib}" != "lib" | |
113 | # We need to have 32-bit and 64-bit binaries as they have hardcoded LIBDIR. | |
114 | # (needed when multilib is used) | |
36650217 | 115 | mv -f $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders{,%{pqext}} |
c1e066f3 MB |
116 | %endif |
117 | ||
118 | touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache | |
119 | ||
36650217 TP |
120 | rm -f $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/*.la |
121 | rm -f $RPM_BUILD_ROOT%{_libdir}/libgdk_pixbuf{,_xlib}-2.0.la | |
c1e066f3 | 122 | |
36650217 | 123 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
c1e066f3 | 124 | |
36650217 | 125 | %find_lang %{name} |
c1e066f3 MB |
126 | |
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post | |
131 | /sbin/ldconfig | |
c1e066f3 | 132 | umask 022 |
36650217 | 133 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || : |
c1e066f3 MB |
134 | |
135 | %postun | |
136 | /sbin/ldconfig | |
c1e066f3 | 137 | if [ "$1" != "0" ]; then |
36650217 TP |
138 | umask 022 |
139 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache || : | |
c1e066f3 | 140 | fi |
c1e066f3 | 141 | |
36650217 | 142 | %files -f %{name}.lang |
c1e066f3 | 143 | %defattr(644,root,root,755) |
e0ed300b | 144 | %doc AUTHORS NEWS |
c1e066f3 MB |
145 | %attr(755,root,root) %{_bindir}/gdk-pixbuf-query-loaders%{pqext} |
146 | %attr(755,root,root) %{_libdir}/libgdk_pixbuf-2.0.so.*.*.* | |
147 | %attr(755,root,root) %ghost %{_libdir}/libgdk_pixbuf-2.0.so.0 | |
148 | %attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-2.0.so.*.*.* | |
149 | %attr(755,root,root) %ghost %{_libdir}/libgdk_pixbuf_xlib-2.0.so.0 | |
150 | %dir %{_libdir}/gdk-pixbuf-2.0 | |
151 | %dir %{_libdir}/gdk-pixbuf-2.0/%{abiver} | |
152 | %ghost %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache | |
153 | %dir %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders | |
36650217 | 154 | %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-*.so |
9d5ca6f5 | 155 | %{_libdir}/girepository-1.0/GdkPixbuf-2.0.typelib |
c1e066f3 MB |
156 | %{_mandir}/man1/gdk-pixbuf-query-loaders.1* |
157 | ||
158 | %files devel | |
159 | %defattr(644,root,root,755) | |
160 | %attr(755,root,root) %{_bindir}/gdk-pixbuf-csource | |
161 | %attr(755,root,root) %{_libdir}/libgdk_pixbuf-2.0.so | |
162 | %attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-2.0.so | |
9d5ca6f5 | 163 | %{_datadir}/gir-1.0/GdkPixbuf-2.0.gir |
c1e066f3 MB |
164 | %{_mandir}/man1/gdk-pixbuf-csource.1* |
165 | %{_includedir}/gdk-pixbuf-2.0 | |
166 | %{_pkgconfigdir}/gdk-pixbuf-2.0.pc | |
167 | %{_pkgconfigdir}/gdk-pixbuf-xlib-2.0.pc | |
168 | ||
169 | %if %{with apidocs} | |
170 | %files apidocs | |
171 | %defattr(644,root,root,755) | |
172 | %{_gtkdocdir}/gdk-pixbuf | |
173 | %endif |