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