]>
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 |
c90c6732 | 16 | Version: 1.14.21 |
8cd7ce8e | 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 |
c90c6732 | 21 | # Source0-md5: 2b702648b853402554c97d75405c60d3 |
9cf1d273 | 22 | Patch0: %{name}-no_GConf2_macros.patch |
65f0f5f5 | 23 | URL: http://www.gnumeric.org/ |
ee41c285 | 24 | BuildRequires: GConf2-devel >= 2.24.0 |
93ea9808 | 25 | BuildRequires: ORBit2-devel >= 1:2.14.3 |
af45f0ab | 26 | BuildRequires: autoconf >= 2.54 |
ea223a19 | 27 | BuildRequires: automake >= 1:1.7.1 |
c5110746 | 28 | BuildRequires: bzip2-devel |
5ea6af3c | 29 | BuildRequires: docbook-dtd412-xml |
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 | 35 | %{?with_apidocs:BuildRequires: gtk-doc-automake} |
8cd7ce8e | 36 | BuildRequires: intltool >= 0.35.0 |
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 |
ee41c285 | 140 | Requires(post,preun): GConf2 >= 2.24.0 |
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} |
066e79a1 | 179 | |
180 | %build | |
11d41094 | 181 | %{?with_apidocs:%{__gtkdocize}} |
066e79a1 | 182 | %{__libtoolize} |
93ea9808 | 183 | %{__aclocal} -I m4 |
066e79a1 | 184 | %{__autoconf} |
862508f7 | 185 | %{__autoheader} |
066e79a1 | 186 | %{__automake} |
30857fd1 | 187 | %configure \ |
8cd7ce8e | 188 | --disable-silent-rules \ |
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 | ||
66b62f11 JB |
208 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gsf/*.{la,a} |
209 | %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/gsf/*.py | |
210 | ||
211 | %if %{without bonobo} && %{without gnomevfs} | |
212 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/libgsf-1/gsf-gnome | |
213 | %endif | |
93ea9808 | 214 | |
215 | %find_lang %{name} | |
bc2dec13 | 216 | |
066e79a1 | 217 | %clean |
5a0935a9 | 218 | rm -rf $RPM_BUILD_ROOT |
066e79a1 | 219 | |
f1bb66e2 | 220 | %post -p /sbin/ldconfig |
221 | %postun -p /sbin/ldconfig | |
fcf0d6d7 | 222 | |
a80f7326 JB |
223 | %post gnome -p /sbin/ldconfig |
224 | %postun gnome -p /sbin/ldconfig | |
225 | ||
af45f0ab | 226 | %post -n gsf-office-thumbnailer |
227 | %gconf_schema_install gsf-office-thumbnailer.schemas | |
228 | ||
229 | %preun -n gsf-office-thumbnailer | |
230 | %gconf_schema_uninstall gsf-office-thumbnailer.schemas | |
231 | ||
93ea9808 | 232 | %files -f %{name}.lang |
066e79a1 | 233 | %defattr(644,root,root,755) |
234 | %doc AUTHORS README NEWS | |
93ea9808 | 235 | %attr(755,root,root) %{_bindir}/gsf |
236 | %attr(755,root,root) %{_bindir}/gsf-vba-dump | |
11984e03 JB |
237 | %attr(755,root,root) %{_libdir}/libgsf-1.so.*.*.* |
238 | %attr(755,root,root) %ghost %{_libdir}/libgsf-1.so.114 | |
28ec3b96 | 239 | %{_mandir}/man1/gsf.1* |
0ebe3c7a | 240 | %{_mandir}/man1/gsf-vba-dump.1* |
066e79a1 | 241 | |
242 | %files devel | |
243 | %defattr(644,root,root,755) | |
11984e03 JB |
244 | %attr(755,root,root) %{_libdir}/libgsf-1.so |
245 | %{_libdir}/libgsf-1.la | |
a80f7326 JB |
246 | %dir %{_includedir}/libgsf-1 |
247 | %{_includedir}/libgsf-1/gsf | |
11984e03 | 248 | %{_pkgconfigdir}/libgsf-1.pc |
066e79a1 | 249 | |
2f1526ab | 250 | %if %{with static_libs} |
066e79a1 | 251 | %files static |
252 | %defattr(644,root,root,755) | |
11984e03 | 253 | %{_libdir}/libgsf-1.a |
2f1526ab | 254 | %endif |
a80f7326 | 255 | |
3a2b9fee MB |
256 | %if %{with apidocs} |
257 | %files apidocs | |
258 | %defattr(644,root,root,755) | |
259 | %{_gtkdocdir}/gsf | |
260 | %endif | |
261 | ||
66b62f11 | 262 | %if %{with bonobo} || %{with gnomevfs} |
a80f7326 JB |
263 | %files gnome |
264 | %defattr(644,root,root,755) | |
11984e03 JB |
265 | %attr(755,root,root) %{_libdir}/libgsf-gnome-1.so.*.*.* |
266 | %attr(755,root,root) %ghost %{_libdir}/libgsf-gnome-1.so.114 | |
a80f7326 JB |
267 | |
268 | %files gnome-devel | |
269 | %defattr(644,root,root,755) | |
66b62f11 | 270 | %attr(755,root,root) %{_libdir}/libgsf-gnome-1.so |
11984e03 | 271 | %{_libdir}/libgsf-gnome-1.la |
a80f7326 | 272 | %{_includedir}/libgsf-1/gsf-gnome |
11984e03 | 273 | %{_pkgconfigdir}/libgsf-gnome-1.pc |
a80f7326 | 274 | |
2f1526ab | 275 | %if %{with static_libs} |
a80f7326 JB |
276 | %files gnome-static |
277 | %defattr(644,root,root,755) | |
11984e03 | 278 | %{_libdir}/libgsf-gnome-1.a |
2f1526ab | 279 | %endif |
66b62f11 | 280 | %endif |
af45f0ab | 281 | |
282 | %files -n gsf-office-thumbnailer | |
283 | %defattr(644,root,root,755) | |
284 | %attr(755,root,root) %{_bindir}/gsf-office-thumbnailer | |
285 | %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas | |
286 | %{_mandir}/man1/gsf-office-thumbnailer.1* | |
93ea9808 | 287 | |
288 | %files -n python-gsf | |
289 | %defattr(644,root,root,755) | |
290 | %dir %{py_sitedir}/gsf | |
291 | %attr(755,root,root) %{py_sitedir}/gsf/_gsfmodule.so | |
292 | %dir %{py_sitescriptdir}/gsf | |
293 | %{py_sitescriptdir}/gsf/*.py[co] | |
294 | ||
66b62f11 | 295 | %if %{with bonobo} || %{with gnomevfs} |
93ea9808 | 296 | %files -n python-gsf-gnome |
297 | %defattr(644,root,root,755) | |
298 | %attr(755,root,root) %{py_sitedir}/gsf/gnomemodule.so | |
299 | %endif |