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