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