]> git.pld-linux.org Git - packages/freexl.git/blob - freexl.spec
- new
[packages/freexl.git] / freexl.spec
1 # $Revision: 1.21 $, $Date: 2011/07/16 18:25:43 $
2 #
3 # Conditional build:
4 %bcond_without  apidocs         # do not build and package API docs
5 #
6 Summary:        Simple library for extracting the contents of Microsoft Excel files
7 Summary(pl.UTF-8):      Prosta biblioteka do wyciągania danych z plików Microsoft Excela
8 Name:           freexl
9 Version:        1.0.0d
10 Release:        1
11 License:        MPL v1.1 or GPL v2+ or LGPL v2.1+
12 Group:          Libraries
13 Source0:        http://www.gaia-gis.it/gaia-sins/freexl-sources/%{name}-%{version}.tar.gz
14 # Source0-md5:  8c8bcff9f4ef597fa5e97bf70a853012
15 URL:            https://www.gaia-gis.it/fossil/freexl
16 %{?with_apidocs:BuildRequires:  doxygen >= 1.7.3}
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 FreeXL is a simple library intended for extracting the contents and
21 some metadata from Microsoft Excel (.xls) format files.
22
23 It makes no attempt to extract GUI-related formatting or
24 formulas/charts/etc.
25
26 %description -l pl.UTF-8
27 FreeXL to prosta biblioteka do wydobywania zawartości oraz niektórych
28 metadanych z plików Microsoft Excela (.xls).
29
30 Nie próbuje wydobywać formatowania graficznego ani
31 wzorów/wykresów/itp.
32
33 %package devel
34 Summary:        Header files for FreeXL library
35 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki FreeXL
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38
39 %description devel
40 Header files for FreeXL library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki FreeXL.
44
45 %package static
46 Summary:        Static FreeXL library
47 Summary(pl.UTF-8):      Statyczna biblioteka FreeXL
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static FreeXL library.
53
54 %description static -l pl.UTF-8
55 Statyczna biblioteka FreeXL.
56
57 %package apidocs
58 Summary:        FreeXL API documentation
59 Summary(pl.UTF-8):      Dokumentacja API biblioteki FreeXL
60 Group:          Documentation
61
62 %description apidocs
63 API and internal documentation for FreeXL library.
64
65 %description apidocs -l pl.UTF-8
66 Dokumentacja API biblioteki FreeXL.
67
68 %prep
69 %setup -q
70
71 %build
72 %configure
73
74 %{__make} \
75         libfreexl_la_LIBADD="-lm"
76
77 %{?with_apidocs:doxygen}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 # obsoleted by pkg-config
86 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfreexl.la
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 %doc AUTHORS README
97 %attr(755,root,root) %{_libdir}/libfreexl.so.*.*.*
98 %attr(755,root,root) %ghost %{_libdir}/libfreexl.so.1
99
100 %files devel
101 %defattr(644,root,root,755)
102 %attr(755,root,root) %{_libdir}/libfreexl.so
103 %{_includedir}/freexl.h
104 %{_pkgconfigdir}/freexl.pc
105
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/libfreexl.a
109
110 %if %{with apidocs}
111 %files apidocs
112 %defattr(644,root,root,755)
113 %doc html/*
114 %endif
This page took 0.061512 seconds and 4 git commands to generate.