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