]>
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 |
ea223a19 | 9 | Version: 1.14.3 |
93ea9808 | 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 |
ea223a19 | 14 | # Source0-md5: c707a7ffc3e2bf802556bae86a453020 |
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 |
53 | Requires: gtk-doc-common >= 1.7 | |
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 | ||
a80f7326 JB |
76 | %package gnome |
77 | Summary: GNOME specific extensions to libgsf | |
ca583b26 | 78 | Summary(pl.UTF-8): Rozszerzenia GNOME do biblioteki libgsf |
a80f7326 | 79 | Group: Libraries |
25d7c0be | 80 | Requires: %{name} = %{version}-%{release} |
a80f7326 JB |
81 | |
82 | %description gnome | |
83 | GNOME specific extensions to libgsf. | |
84 | ||
b46d3bb1 | 85 | %description gnome -l pl.UTF-8 |
a80f7326 JB |
86 | Rozszerzenia GNOME do biblioteki libgsf. |
87 | ||
88 | %package gnome-devel | |
89 | Summary: libgsf-gnome header files | |
ca583b26 | 90 | Summary(pl.UTF-8): Pliki nagłówkowe libgsf-gnome |
a80f7326 | 91 | Group: Development/Libraries |
25d7c0be | 92 | Requires: %{name}-devel = %{version}-%{release} |
93 | Requires: %{name}-gnome = %{version}-%{release} | |
93ea9808 | 94 | Requires: gnome-vfs2-devel >= 2.16.1 |
a80f7326 JB |
95 | |
96 | %description gnome-devel | |
97 | libgsf-gnome header files. | |
98 | ||
b46d3bb1 JR |
99 | %description gnome-devel -l pl.UTF-8 |
100 | Pliki nagłówkowe libgsf-gnome. | |
a80f7326 JB |
101 | |
102 | %package gnome-static | |
103 | Summary: Static libgsf-gnome library | |
ca583b26 | 104 | Summary(pl.UTF-8): Statyczna biblioteka libgsf-gnome |
a80f7326 | 105 | Group: Development/Libraries |
25d7c0be | 106 | Requires: %{name}-gnome-devel = %{version}-%{release} |
a80f7326 JB |
107 | |
108 | %description gnome-static | |
109 | Static libgsf-gnome library. | |
110 | ||
b46d3bb1 | 111 | %description gnome-static -l pl.UTF-8 |
a80f7326 JB |
112 | Statyczna biblioteka libgsf-gnome. |
113 | ||
af45f0ab | 114 | %package -n gsf-office-thumbnailer |
115 | Summary: Simple document thumbnailer | |
ca583b26 | 116 | Summary(pl.UTF-8): Prosty generator miniatur dokumentów |
af45f0ab | 117 | Group: X11/Applications |
118 | Requires(post,preun): GConf2 | |
119 | Requires: %{name}-gnome = %{version}-%{release} | |
120 | ||
121 | %description -n gsf-office-thumbnailer | |
122 | Simple document thumbnailer. | |
123 | ||
b46d3bb1 JR |
124 | %description -n gsf-office-thumbnailer -l pl.UTF-8 |
125 | Prosty program tworzący miniaturki dokumentów. | |
af45f0ab | 126 | |
93ea9808 | 127 | %package -n python-gsf |
128 | Summary: Python gsf module | |
ca583b26 | 129 | Summary(pl.UTF-8): Moduł gsf dla Pythona |
93ea9808 | 130 | Group: Libraries |
131 | %pyrequires_eq python-libs | |
132 | Requires: %{name} = %{version}-%{release} | |
ea223a19 | 133 | Requires: python-pygobject >= 2.10.0 |
93ea9808 | 134 | |
135 | %description -n python-gsf | |
136 | Python gsf library. | |
137 | ||
b46d3bb1 | 138 | %description -n python-gsf -l pl.UTF-8 |
3b31f8f9 | 139 | Biblioteka gsf dla Pythona. |
93ea9808 | 140 | |
141 | %package -n python-gsf-gnome | |
142 | Summary: Python gsf-gnome module | |
ca583b26 | 143 | Summary(pl.UTF-8): Moduł gsf-gnome dla Pythona |
93ea9808 | 144 | Group: Libraries |
145 | %pyrequires_eq python-libs | |
146 | Requires: python-gsf = %{version}-%{release} | |
147 | ||
148 | %description -n python-gsf-gnome | |
149 | Python gsf-gnome library. | |
150 | ||
b46d3bb1 | 151 | %description -n python-gsf-gnome -l pl.UTF-8 |
3b31f8f9 | 152 | Biblioteka gsf-gnome dla Pythona. |
93ea9808 | 153 | |
066e79a1 | 154 | %prep |
155 | %setup -q | |
9cf1d273 | 156 | %{!?with_gnome:%patch0 -p1} |
066e79a1 | 157 | |
158 | %build | |
00bffec6 | 159 | rm -f acinclude.m4 |
066e79a1 | 160 | %{__libtoolize} |
93ea9808 | 161 | %{__aclocal} -I m4 |
066e79a1 | 162 | %{__autoconf} |
163 | %{__automake} | |
30857fd1 | 164 | %configure \ |
ef3882c3 | 165 | %{?with_apidocs:--enable-gtk-doc} \ |
eaac2cae | 166 | --with-html-dir=%{_gtkdocdir}/%{name} \ |
00bffec6 | 167 | %{!?with_gnome:--without-gnome} |
066e79a1 | 168 | %{__make} |
169 | ||
170 | %install | |
171 | rm -rf $RPM_BUILD_ROOT | |
172 | ||
173 | %{__make} install \ | |
174 | DESTDIR=$RPM_BUILD_ROOT | |
175 | ||
bc2dec13 | 176 | rm -rf $RPM_BUILD_ROOT%{_includedir}/%{name}-1/gsf-win32 |
93ea9808 | 177 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/gsf/*.{la,a} |
178 | rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/gsf/*.py | |
179 | ||
180 | %find_lang %{name} | |
bc2dec13 | 181 | |
066e79a1 | 182 | %clean |
5a0935a9 | 183 | rm -rf $RPM_BUILD_ROOT |
066e79a1 | 184 | |
f1bb66e2 | 185 | %post -p /sbin/ldconfig |
186 | %postun -p /sbin/ldconfig | |
fcf0d6d7 | 187 | |
a80f7326 JB |
188 | %post gnome -p /sbin/ldconfig |
189 | %postun gnome -p /sbin/ldconfig | |
190 | ||
af45f0ab | 191 | %post -n gsf-office-thumbnailer |
192 | %gconf_schema_install gsf-office-thumbnailer.schemas | |
193 | ||
194 | %preun -n gsf-office-thumbnailer | |
195 | %gconf_schema_uninstall gsf-office-thumbnailer.schemas | |
196 | ||
93ea9808 | 197 | %files -f %{name}.lang |
066e79a1 | 198 | %defattr(644,root,root,755) |
199 | %doc AUTHORS README NEWS | |
93ea9808 | 200 | %attr(755,root,root) %{_bindir}/gsf |
201 | %attr(755,root,root) %{_bindir}/gsf-vba-dump | |
a80f7326 | 202 | %attr(755,root,root) %{_libdir}/libgsf-?.so.*.* |
066e79a1 | 203 | |
204 | %files devel | |
205 | %defattr(644,root,root,755) | |
2ac61f7f | 206 | %{_libdir}/libgsf-?.la |
207 | %attr(755,root,root) %{_libdir}/libgsf-?.so | |
a80f7326 JB |
208 | %dir %{_includedir}/libgsf-1 |
209 | %{_includedir}/libgsf-1/gsf | |
210 | %{_pkgconfigdir}/libgsf-?.pc | |
e0db3466 | 211 | %{_gtkdocdir}/%{name} |
066e79a1 | 212 | |
213 | %files static | |
214 | %defattr(644,root,root,755) | |
a80f7326 JB |
215 | %{_libdir}/libgsf-?.a |
216 | ||
00bffec6 | 217 | %if %{with gnome} |
a80f7326 JB |
218 | %files gnome |
219 | %defattr(644,root,root,755) | |
220 | %attr(755,root,root) %{_libdir}/libgsf-gnome-?.so.*.* | |
221 | ||
222 | %files gnome-devel | |
223 | %defattr(644,root,root,755) | |
2ac61f7f | 224 | %{_libdir}/libgsf-gnome-?.la |
225 | %attr(755,root,root) %{_libdir}/libgsf-gnome-?.so | |
a80f7326 JB |
226 | %{_includedir}/libgsf-1/gsf-gnome |
227 | %{_pkgconfigdir}/libgsf-gnome-?.pc | |
228 | ||
229 | %files gnome-static | |
230 | %defattr(644,root,root,755) | |
231 | %{_libdir}/libgsf-gnome-?.a | |
af45f0ab | 232 | |
233 | %files -n gsf-office-thumbnailer | |
234 | %defattr(644,root,root,755) | |
235 | %attr(755,root,root) %{_bindir}/gsf-office-thumbnailer | |
236 | %{_sysconfdir}/gconf/schemas/gsf-office-thumbnailer.schemas | |
237 | %{_mandir}/man1/gsf-office-thumbnailer.1* | |
9cf1d273 | 238 | %endif |
93ea9808 | 239 | |
240 | %files -n python-gsf | |
241 | %defattr(644,root,root,755) | |
242 | %dir %{py_sitedir}/gsf | |
243 | %attr(755,root,root) %{py_sitedir}/gsf/_gsfmodule.so | |
244 | %dir %{py_sitescriptdir}/gsf | |
245 | %{py_sitescriptdir}/gsf/*.py[co] | |
246 | ||
247 | %if %{with gnome} | |
248 | %files -n python-gsf-gnome | |
249 | %defattr(644,root,root,755) | |
250 | %attr(755,root,root) %{py_sitedir}/gsf/gnomemodule.so | |
251 | %endif |