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