]> git.pld-linux.org Git - packages/gdk-pixbuf2.git/blob - gdk-pixbuf2.spec
- new
[packages/gdk-pixbuf2.git] / gdk-pixbuf2.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # do not build and package API docs
4 #
5 %define         abiver          2.10.0
6 #
7 Summary:        An image loading library
8 Summary(pl.UTF-8):      Biblioteka ładująca obrazki
9 Name:           gdk-pixbuf2
10 Version:        2.21.5
11 Release:        1
12 License:        LGPL v2
13 Group:          X11/Libraries
14 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.21/gdk-pixbuf-%{version}.tar.bz2
15 # Source0-md5:  63962121203282a01ec5246aeaed1a97
16 URL:            http://www.gtk.org/
17 BuildRequires:  autoconf >= 2.63
18 BuildRequires:  automake >= 1:1.10
19 BuildRequires:  gettext-devel >= 0.17
20 BuildRequires:  glib2-devel >= 1:2.25.9
21 BuildRequires:  gobject-introspection-devel >= 0.6.14
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
29 BuildRequires:  pkgconfig
30 BuildRequires:  xorg-lib-libX11-devel
31 Requires:       glib2 >= 1:2.25.9
32 Conflicts:      gtk+2 < 2:2.21.3-1
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %if "%{_lib}" != "lib"
36 %define         libext          %(lib="%{_lib}"; echo ${lib#lib})
37 %define         pqext           -%{libext}
38 %else
39 %define         pqext           %{nil}
40 %endif
41
42 %description
43 gdk-pixbuf is an image loading library that can be extended by
44 loadable modules for new image formats.
45
46 It is used by toolkits such as GTK+ or Clutter.
47
48 %description -l pl.UTF-8
49 gdk-pixbuf to biblioteka ładująca obrazki, której funkcjonalność może
50 być rozszerzana o obsługę nowych formatów poprzez ładowane moduły.
51
52 Używana jest przez biblioteki takie jak GTK+ czy Clutter.
53
54 %package devel
55 Summary:        Header files for gdk-pixbuf library
56 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gdk-pixbuf
57 Group:          X11/Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59 Requires:       glib2-devel >= 1:2.25.9
60 Conflicts:      gtk+2-devel < 2:2.21.3-1
61
62 %description devel
63 Header files for gdk-pixbuf library.
64
65 %description devel -l pl.UTF-8
66 Pliki nagłówkowe biblioteki gdk-pixbuf.
67
68 %package apidocs
69 Summary:        gdk-pixbuf API documentation
70 Summary(pl.UTF-8):      Dokumentacja API biblioteki gdk-pixbuf
71 Group:          Documentation
72 Conflicts:      gtk+2-apidocs < 2:2.21.3-1
73
74 %description apidocs
75 API documentation for gdk-pixbuf library.
76
77 %description apidocs -l pl.UTF-8
78 Dokumentacja API biblioteki gdk-pixbuf.
79
80 %prep
81 %setup -q -n gdk-pixbuf-%{version}
82
83 %build
84 %{__libtoolize}
85 %{__aclocal}
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 %configure \
90         --enable-man \
91         %{__enable_disable apidocs gtk-doc} \
92         --with-html-dir=%{_gtkdocdir} \
93         --with-libjasper
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 %if "%{_lib}" != "lib"
103 # We need to have 32-bit and 64-bit binaries as they have hardcoded LIBDIR.
104 # (needed when multilib is used)
105 %{__mv} $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders{,%{pqext}}
106 %endif
107
108 touch $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache
109
110 %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/*.la
111
112 %{?!with_apidocs:%{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
113
114 %find_lang gdk-pixbuf
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post
120 /sbin/ldconfig
121
122 umask 022
123 %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
124 exit 0
125
126 %postun
127 /sbin/ldconfig
128
129 if [ "$1" != "0" ]; then
130     umask 022
131     %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache
132 fi
133 exit 0
134
135 %files -f gdk-pixbuf.lang
136 %defattr(644,root,root,755)
137 %doc AUTHORS NEWS README
138 %attr(755,root,root) %{_bindir}/gdk-pixbuf-query-loaders%{pqext}
139 %attr(755,root,root) %{_libdir}/libgdk_pixbuf-2.0.so.*.*.*
140 %attr(755,root,root) %ghost %{_libdir}/libgdk_pixbuf-2.0.so.0
141 %attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-2.0.so.*.*.*
142 %attr(755,root,root) %ghost %{_libdir}/libgdk_pixbuf_xlib-2.0.so.0
143 %dir %{_libdir}/gdk-pixbuf-2.0
144 %dir %{_libdir}/gdk-pixbuf-2.0/%{abiver}
145 %ghost %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders.cache
146 %dir %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders
147 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-ani.so
148 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-bmp.so
149 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-gif.so
150 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-icns.so
151 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-ico.so
152 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-jasper.so
153 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-jpeg.so
154 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-pcx.so
155 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-png.so
156 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-pnm.so
157 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-qtif.so
158 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-ras.so
159 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-tga.so
160 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-tiff.so
161 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-wbmp.so
162 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-xbm.so
163 %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-xpm.so
164 %{_libdir}/girepository-1.0/GdkPixbuf-2.0.typelib
165 %{_mandir}/man1/gdk-pixbuf-query-loaders.1*
166
167 %files devel
168 %defattr(644,root,root,755)
169 %attr(755,root,root) %{_bindir}/gdk-pixbuf-csource
170 %attr(755,root,root) %{_libdir}/libgdk_pixbuf-2.0.so
171 %attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-2.0.so
172 %{_libdir}/libgdk_pixbuf-2.0.la
173 %{_libdir}/libgdk_pixbuf_xlib-2.0.la
174 %{_datadir}/gir-1.0/GdkPixbuf-2.0.gir
175 %{_mandir}/man1/gdk-pixbuf-csource.1*
176 %{_includedir}/gdk-pixbuf-2.0
177 %{_pkgconfigdir}/gdk-pixbuf-2.0.pc
178 %{_pkgconfigdir}/gdk-pixbuf-xlib-2.0.pc
179
180 %if %{with apidocs}
181 %files apidocs
182 %defattr(644,root,root,755)
183 %{_gtkdocdir}/gdk-pixbuf
184 %endif
This page took 0.067177 seconds and 4 git commands to generate.