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