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