3 %bcond_without apidocs # do not build and package API docs
5 Summary: Simple library for extracting the contents of Microsoft Excel files
6 Summary(pl.UTF-8): Prosta biblioteka do wyciągania danych z plików Microsoft Excela
10 License: MPL v1.1 or GPL v2+ or LGPL v2.1+
12 Source0: http://www.gaia-gis.it/gaia-sins/freexl-sources/%{name}-%{version}.tar.gz
13 # Source0-md5: 55e288206290079ed7c5db76e2101032
14 URL: https://www.gaia-gis.it/fossil/freexl
15 %{?with_apidocs:BuildRequires: doxygen >= 1.7.3}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 FreeXL is a simple library intended for extracting the contents and
20 some metadata from Microsoft Excel (.xls) format files.
22 It makes no attempt to extract GUI-related formatting or
25 %description -l pl.UTF-8
26 FreeXL to prosta biblioteka do wydobywania zawartości oraz niektórych
27 metadanych z plików Microsoft Excela (.xls).
29 Nie próbuje wydobywać formatowania graficznego ani
33 Summary: Header files for FreeXL library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FreeXL
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
39 Header files for FreeXL library.
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki FreeXL.
45 Summary: Static FreeXL library
46 Summary(pl.UTF-8): Statyczna biblioteka FreeXL
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}-%{release}
51 Static FreeXL library.
53 %description static -l pl.UTF-8
54 Statyczna biblioteka FreeXL.
57 Summary: FreeXL API documentation
58 Summary(pl.UTF-8): Dokumentacja API biblioteki FreeXL
62 API and internal documentation for FreeXL library.
64 %description apidocs -l pl.UTF-8
65 Dokumentacja API biblioteki FreeXL.
75 %{?with_apidocs:doxygen}
78 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
83 # obsoleted by pkg-config
84 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfreexl.la
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_libdir}/libfreexl.so.*.*.*
96 %attr(755,root,root) %ghost %{_libdir}/libfreexl.so.1
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/libfreexl.so
101 %{_includedir}/freexl.h
102 %{_pkgconfigdir}/freexl.pc
105 %defattr(644,root,root,755)
106 %{_libdir}/libfreexl.a
110 %defattr(644,root,root,755)