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