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