]>
Commit | Line | Data |
---|---|---|
eaac2cae JB |
1 | # |
2 | # Conditional build: | |
9ed3bd84 | 3 | %bcond_without apidocs # disable gtk-doc |
862508f7 | 4 | %bcond_without bonobo # without bonobo support in GNOME extension |
9ed3bd84 | 5 | %bcond_without gnome # without GNOME extensions packages |
862508f7 | 6 | %bcond_with gnomevfs # use gnome-vfs instead of gio in GNOME extension |
2f1526ab | 7 | %bcond_without static_libs # don't build static libraries |
eaac2cae | 8 | # |
862508f7 JB |
9 | %if %{without gnome} |
10 | %undefine with_bonobo | |
11 | %undefine with_gnomevfs | |
12 | %endif | |
066e79a1 | 13 | Summary: GNOME Structured File library |
ca583b26 | 14 | Summary(pl.UTF-8): Biblioteka plików strukturalnych dla GNOME |
066e79a1 | 15 | Name: libgsf |
0ebe3c7a | 16 | Version: 1.14.9 |
4e877fe9 | 17 | Release: 7 |
b633c6ae | 18 | License: LGPL v2.1 |
f1bb66e2 | 19 | Group: Libraries |
276476ac | 20 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgsf/1.14/%{name}-%{version}.tar.bz2 |
0ebe3c7a | 21 | # Source0-md5: 422a8461927b863780d3579991a915a5 |
9cf1d273 | 22 | Patch0: %{name}-no_GConf2_macros.patch |
862508f7 | 23 | Patch1: %{name}-gio.patch |
65f0f5f5 | 24 | URL: http://www.gnumeric.org/ |
2c3e63f3 | 25 | BuildRequires: GConf2-devel >= 2.14.0 |
93ea9808 | 26 | BuildRequires: ORBit2-devel >= 1:2.14.3 |
af45f0ab | 27 | BuildRequires: autoconf >= 2.54 |
ea223a19 | 28 | BuildRequires: automake >= 1:1.7.1 |
c5110746 | 29 | BuildRequires: bzip2-devel |
d6745d5c | 30 | BuildRequires: gettext-devel |
862508f7 JB |
31 | # gio-2.0 |
32 | BuildRequires: glib2-devel >= 1:2.16.0 | |
33 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.16.1} | |
93ea9808 | 34 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.7} |
d6745d5c KK |
35 | %{?with_apidocs:BuildRequires: gtk-doc-automake} |
36 | BuildRequires: intltool | |
862508f7 | 37 | %{?with_bonobo:BuildRequires: libbonobo-devel >= 2.0.0} |
65f0f5f5 | 38 | BuildRequires: libtool |
43a7035a | 39 | BuildRequires: libxml2-devel >= 1:2.6.26 |
8811fe8d | 40 | BuildRequires: pkgconfig |
ea223a19 JB |
41 | BuildRequires: python-pygobject-devel >= 2.10.0 |
42 | # for pygtk-codegen-2.0 | |
93ea9808 | 43 | BuildRequires: python-pygtk-devel >= 2:2.10.2 |
d6745d5c | 44 | BuildRequires: rpm-pythonprov |
6bb45620 | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
066e79a1 | 46 | |
47 | %description | |
65f0f5f5 JB |
48 | A library for reading and writing structured files (e.g. MS OLE and |
49 | Zip). | |
50 | ||
b46d3bb1 JR |
51 | %description -l pl.UTF-8 |
52 | Biblioteka do odczytu i zapisu plików strukturalnych (np. MS OLE lub | |
65f0f5f5 | 53 | Zip). |
066e79a1 | 54 | |
55 | %package devel | |
65f0f5f5 | 56 | Summary: Support files necessary to compile applications with libgsf |
ca583b26 | 57 | Summary(pl.UTF-8): Pliki do kompilowania aplikacji używających libgsf |
066e79a1 | 58 | Group: Development/Libraries |
25d7c0be | 59 | Requires: %{name} = %{version}-%{release} |
c5110746 | 60 | Requires: bzip2-devel |
862508f7 | 61 | Requires: glib2-devel >= 1:2.16.0 |
43a7035a | 62 | Requires: libxml2-devel >= 1:2.6.26 |
066e79a1 | 63 | |
64 | %description devel | |
65f0f5f5 JB |
65 | Headers, and support files necessary to compile applications using |
66 | libgsf. | |
67 | ||
b46d3bb1 JR |
68 | %description devel -l pl.UTF-8 |
69 | Pliki nagłówkowe i inne potrzebne do kompilowania aplikacji | |
70 | używających libgsf. | |
066e79a1 | 71 | |
72 | %package static | |
65f0f5f5 | 73 | Summary: libgsf static libraries |
ca583b26 | 74 | Summary(pl.UTF-8): Statyczne biblioteki libgsf |
066e79a1 | 75 | Group: Development/Libraries |
25d7c0be | 76 | Requires: %{name}-devel = %{version}-%{release} |
066e79a1 | 77 | |
78 | %description static | |
79 | Package contains static libraries. | |
80 | ||
b46d3bb1 | 81 | %description static -l pl.UTF-8 |
65f0f5f5 JB |
82 | Statyczne biblioteki libgsf. |
83 | ||
3a2b9fee MB |
84 | %package apidocs |
85 | Summary: libgsf API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API libgsf | |
87 | Group: Documentation | |
88 | Requires: gtk-doc-common | |
89 | ||
90 | %description apidocs | |
91 | libgsf API documentation. | |
92 | ||
93 | %description apidocs -l pl.UTF-8 | |
94 | Dokumentacja API libgsf. | |
95 | ||
a80f7326 JB |
96 | %package gnome |
97 | Summary: GNOME specific extensions to libgsf | |
ca583b26 | 98 | Summary(pl.UTF-8): Rozszerzenia GNOME do biblioteki libgsf |
a80f7326 | 99 | Group: Libraries |
25d7c0be | 100 | Requires: %{name} = %{version}-%{release} |
a80f7326 JB |
101 | |
102 | %description gnome | |
103 | GNOME specific extensions to libgsf. | |
104 | ||
b46d3bb1 | 105 | %description gnome -l pl.UTF-8 |
a80f7326 JB |
106 | Rozszerzenia GNOME do biblioteki libgsf. |
107 | ||
108 | %package gnome-devel | |
109 | Summary: libgsf-gnome header files | |
ca583b26 | 110 | Summary(pl.UTF-8): Pliki nagłówkowe libgsf-gnome |
a80f7326 | 111 | Group: Development/Libraries |
25d7c0be | 112 | Requires: %{name}-devel = %{version}-%{release} |
113 | Requires: %{name}-gnome = %{version}-%{release} | |
862508f7 JB |
114 | %{?with_bonobo:Requires: gnome-vfs2-devel >= 2.16.1} |
115 | %{?with_gnomevfs:Requires: libbonobo-devel >= 2.0.0} | |
a80f7326 JB |
116 | |
117 | %description gnome-devel | |
118 | libgsf-gnome header files. | |
119 | ||
b46d3bb1 JR |
120 | %description gnome-devel -l pl.UTF-8 |
121 | Pliki nagłówkowe libgsf-gnome. | |
a80f7326 JB |
122 | |
123 | %package gnome-static | |
124 | Summary: Static libgsf-gnome library | |
ca583b26 | 125 | Summary(pl.UTF-8): Statyczna biblioteka libgsf-gnome |
a80f7326 | 126 | Group: Development/Libraries |
25d7c0be | 127 | Requires: %{name}-gnome-devel = %{version}-%{release} |
a80f7326 JB |
128 | |
129 | %description gnome-static | |
130 | Static libgsf-gnome library. | |
131 | ||
b46d3bb1 | 132 | %description gnome-static -l pl.UTF-8 |
a80f7326 JB |
133 | Statyczna biblioteka libgsf-gnome. |
134 | ||
af45f0ab | 135 | %package -n gsf-office-thumbnailer |
136 | Summary: Simple document thumbnailer | |
ca583b26 | 137 | Summary(pl.UTF-8): Prosty generator miniatur dokumentów |
af45f0ab | 138 | Group: X11/Applications |
139 | Requires(post,preun): GConf2 | |
140 | Requires: %{name}-gnome = %{version}-%{release} | |
141 | ||
142 | %description -n gsf-office-thumbnailer | |
143 | Simple document thumbnailer. | |
144 | ||
b46d3bb1 JR |
145 | %description -n gsf-office-thumbnailer -l pl.UTF-8 |
146 | Prosty program tworzący miniaturki dokumentów. | |
af45f0ab | 147 | |
93ea9808 | 148 | %package -n python-gsf |
149 | Summary: Python gsf module | |
ca583b26 | 150 | Summary(pl.UTF-8): Moduł gsf dla Pythona |
93ea9808 | 151 | Group: Libraries |
152 | %pyrequires_eq python-libs | |
153 | Requires: %{name} = %{version}-%{release} | |
ea223a19 | 154 | Requires: python-pygobject >= 2.10.0 |
93ea9808 | 155 | |
156 | %description -n python-gsf | |
157 | Python gsf library. | |
158 | ||
b46d3bb1 | 159 | %description -n python-gsf -l pl.UTF-8 |
3b31f8f9 | 160 | Biblioteka gsf dla Pythona. |
93ea9808 | 161 | |
162 | %package -n python-gsf-gnome | |
163 | Summary: Python gsf-gnome module | |
ca583b26 | 164 | Summary(pl.UTF-8): Moduł gsf-gnome dla Pythona |
93ea9808 | 165 | Group: Libraries |
166 | %pyrequires_eq python-libs | |
167 | Requires: python-gsf = %{version}-%{release} | |
168 | ||
169 | %description -n python-gsf-gnome | |
170 | Python gsf-gnome library. | |
171 | ||
b46d3bb1 | 172 | %description -n python-gsf-gnome -l pl.UTF-8 |
3b31f8f9 | 173 | Biblioteka gsf-gnome dla Pythona. |
93ea9808 | 174 | |
066e79a1 | 175 | %prep |
176 | %setup -q | |
9cf1d273 | 177 | %{!?with_gnome:%patch0 -p1} |
862508f7 | 178 | %patch1 -p1 |
066e79a1 | 179 | |
180 | %build | |
066e79a1 | 181 | %{__libtoolize} |
93ea9808 | 182 | %{__aclocal} -I m4 |
066e79a1 | 183 | %{__autoconf} |
862508f7 | 184 | %{__autoheader} |
066e79a1 | 185 | %{__automake} |
30857fd1 | 186 | %configure \ |
862508f7 | 187 | %{!?with_static_libs:--disable-static} \ |
ef3882c3 | 188 | %{?with_apidocs:--enable-gtk-doc} \ |
3a2b9fee | 189 | --with-html-dir=%{_gtkdocdir} \ |
862508f7 JB |
190 | %{!?with_gnomevfs:--with-gio} \ |
191 | %if %{with gnome} | |
192 | %{!?with_bonobo:--without-bonobo} \ | |
193 | --with-gnome-vfs | |
194 | %else | |
195 | --without-bonobo \ | |
196 | --without-gnome-vfs | |
197 | %endif | |
066e79a1 | 198 | %{__make} |
199 | ||
200 | %install | |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
203 | %{__make} install \ | |
204 | DESTDIR=$RPM_BUILD_ROOT | |
205 | ||
bc2dec13 | 206 | rm -rf $RPM_BUILD_ROOT%{_includedir}/%{name}-1/gsf-win32 |
93ea9808 | 207 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/gsf/*.{la,a} |
208 | rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/gsf/*.py | |
209 | ||
2055b8c2 | 210 | # used by gsf-gnome/gsf-{input,output}-gnomevfs.h |
211 | cp gsf-config.h $RPM_BUILD_ROOT%{_includedir}/%{name}-1 | |
212 | ||
93ea9808 | 213 | %find_lang %{name} |
bc2dec13 | 214 | |
066e79a1 | 215 | %clean |
5a0935a9 | 216 | rm -rf $RPM_BUILD_ROOT |
066e79a1 | 217 | |
f1bb66e2 | 218 | %post -p /sbin/ldconfig |
219 | %postun -p /sbin/ldconfig | |
fcf0d6d7 | 220 | |
a80f7326 JB |
221 | %post gnome -p /sbin/ldconfig |
222 | %postun gnome -p /sbin/ldconfig | |
223 | ||
af45f0ab | 224 | %post -n gsf-office-thumbnailer |
225 | %gconf_schema_install gsf-office-thumbnailer.schemas | |
226 | ||
227 | %preun -n gsf-office-thumbnailer | |
228 | %gconf_schema_uninstall gsf-office-thumbnailer.schemas | |
229 | ||
93ea9808 | 230 | %files -f %{name}.lang |
066e79a1 | 231 | %defattr(644,root,root,755) |
232 | %doc AUTHORS README NEWS | |
93ea9808 | 233 | %attr(755,root,root) %{_bindir}/gsf |
234 | %attr(755,root,root) %{_bindir}/gsf-vba-dump | |
11984e03 JB |
235 | %attr(755,root,root) %{_libdir}/libgsf-1.so.*.*.* |
236 | %attr(755,root,root) %ghost %{_libdir}/libgsf-1.so.114 | |
28ec3b96 | 237 | %{_mandir}/man1/gsf.1* |
0ebe3c7a | 238 | %{_mandir}/man1/gsf-vba-dump.1* |
066e79a1 | 239 | |
240 | %files devel | |
241 | %defattr(644,root,root,755) | |
11984e03 JB |
242 | %attr(755,root,root) %{_libdir}/libgsf-1.so |
243 | %{_libdir}/libgsf-1.la | |
a80f7326 | 244 | %dir %{_includedir}/libgsf-1 |
2055b8c2 | 245 | %{_includedir}/libgsf-1/*.h |
a80f7326 | 246 | %{_includedir}/libgsf-1/gsf |
11984e03 | 247 | %{_pkgconfigdir}/libgsf-1.pc |
066e79a1 | 248 | |
2f1526ab | 249 | %if %{with static_libs} |
066e79a1 | 250 | %files static |
251 | %defattr(644,root,root,755) | |
11984e03 | 252 | %{_libdir}/libgsf-1.a |
2f1526ab | 253 | %endif |
a80f7326 | 254 | |
3a2b9fee MB |
255 | %if %{with apidocs} |
256 | %files apidocs | |
257 | %defattr(644,root,root,755) | |
258 | %{_gtkdocdir}/gsf | |
259 | %endif | |
260 | ||
00bffec6 | 261 | %if %{with gnome} |
a80f7326 JB |
262 | %files gnome |
263 | %defattr(644,root,root,755) | |
11984e03 JB |
264 | %attr(755,root,root) %{_libdir}/libgsf-gnome-1.so.*.*.* |
265 | %attr(755,root,root) %ghost %{_libdir}/libgsf-gnome-1.so.114 | |
a80f7326 JB |
266 | |
267 | %files gnome-devel | |
268 | %defattr(644,root,root,755) | |
2ac61f7f | 269 | %attr(755,root,root) %{_libdir}/libgsf-gnome-?.so |
11984e03 | 270 | %{_libdir}/libgsf-gnome-1.la |
a80f7326 | 271 | %{_includedir}/libgsf-1/gsf-gnome |
11984e03 | 272 | %{_pkgconfigdir}/libgsf-gnome-1.pc |
a80f7326 | 273 | |
2f1526ab | 274 | %if %{with static_libs} |
a80f7326 JB |
275 | %files gnome-static |
276 | %defattr(644,root,root,755) | |
11984e03 | 277 | %{_libdir}/libgsf-gnome-1.a |
2f1526ab | 278 | %endif |
af45f0ab | 279 | |
280 | %files -n gsf-office-thumbnailer | |
281 | %defattr(644,root,root,755) | |
282 | %attr(755,root,root) %{_bindir}/gsf-office-thumbnailer | |
283 | %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas | |
284 | %{_mandir}/man1/gsf-office-thumbnailer.1* | |
9cf1d273 | 285 | %endif |
93ea9808 | 286 | |
287 | %files -n python-gsf | |
288 | %defattr(644,root,root,755) | |
289 | %dir %{py_sitedir}/gsf | |
290 | %attr(755,root,root) %{py_sitedir}/gsf/_gsfmodule.so | |
291 | %dir %{py_sitescriptdir}/gsf | |
292 | %{py_sitescriptdir}/gsf/*.py[co] | |
293 | ||
294 | %if %{with gnome} | |
295 | %files -n python-gsf-gnome | |
296 | %defattr(644,root,root,755) | |
297 | %attr(755,root,root) %{py_sitedir}/gsf/gnomemodule.so | |
298 | %endif |