]>
Commit | Line | Data |
---|---|---|
03ae4c11 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
aa20be06 | 4 | |
03ae4c11 JB |
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 | |
8e549764 | 8 | Version: 1.0.6 |
cedf0ffa | 9 | Release: 1 |
03ae4c11 JB |
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 | |
8e549764 JB |
13 | # Source0-md5: d3d2df0d2ad7713038ce99024738172a |
14 | URL: https://www.gaia-gis.it/fossil/freexl/index | |
03ae4c11 | 15 | %{?with_apidocs:BuildRequires: doxygen >= 1.7.3} |
8e549764 | 16 | BuildRequires: rpmbuild(macros) >= 1.752 |
03ae4c11 JB |
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 | |
0a7a3a78 | 61 | BuildArch: noarch |
03ae4c11 JB |
62 | |
63 | %description apidocs | |
64 | API and internal documentation for FreeXL library. | |
65 | ||
66 | %description apidocs -l pl.UTF-8 | |
67 | Dokumentacja API biblioteki FreeXL. | |
68 | ||
69 | %prep | |
70 | %setup -q | |
71 | ||
72 | %build | |
73 | %configure | |
74 | ||
6c250774 | 75 | %{__make} |
03ae4c11 JB |
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) | |
8e549764 | 113 | %doc html/{search,*.{css,html,jpg,js,png}} |
03ae4c11 | 114 | %endif |