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