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