]>
Commit | Line | Data |
---|---|---|
261d3977 JB |
1 | # |
2 | # Conditional build: | |
90a34fd6 | 3 | %bcond_without ixion # ixion-based spreadsheet model support |
cbb865a5 | 4 | %bcond_without python # Python 3 binding |
261d3977 JB |
5 | %bcond_without static_libs # static library |
6 | # | |
81a745c4 | 7 | Summary: Standalone file import filter library for spreadsheet documents |
261d3977 | 8 | Summary(pl.UTF-8): Biblioteka samodzielnego filtra importującego pliki dla arkuszy kalkulacyjnych |
81a745c4 | 9 | Name: liborcus |
cbb865a5 JB |
10 | Version: 0.11.2 |
11 | Release: 1 | |
81a745c4 AM |
12 | License: MIT |
13 | Group: Libraries | |
8d927631 JB |
14 | #Source0Download: https://gitlab.com/orcus/orcus |
15 | Source0: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.xz | |
cbb865a5 | 16 | # Source0-md5: 9f5a0b03853cfd4f3748b176c0ef5d0f |
8d927631 | 17 | URL: https://gitlab.com/orcus/orcus |
90a34fd6 JB |
18 | BuildRequires: autoconf >= 2.65 |
19 | BuildRequires: automake >= 1:1.11 | |
806b8082 | 20 | BuildRequires: boost-devel >= 1.36 |
cbb865a5 JB |
21 | %{?with_ixion:BuildRequires: ixion-devel >= 0.11} |
22 | BuildRequires: libstdc++-devel >= 6:4.7 | |
90a34fd6 | 23 | BuildRequires: libtool >= 2:1.5 |
cbb865a5 | 24 | BuildRequires: mdds-devel >= 1.2.0 |
261d3977 | 25 | BuildRequires: pkgconfig >= 1:0.20 |
cbb865a5 | 26 | %{?with_python:BuildRequires: python3-devel >= 1:3.2} |
8d927631 JB |
27 | BuildRequires: tar >= 1:1.22 |
28 | BuildRequires: xz | |
81a745c4 AM |
29 | BuildRequires: zlib-devel |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
261d3977 | 33 | liborcus is a standalone file import filter library for spreadsheet |
81a745c4 AM |
34 | documents. Currently under development are ODS, XLSX and CSV import |
35 | filters. | |
36 | ||
261d3977 JB |
37 | %description -l pl.UTF-8 |
38 | liborcus to biblioteka samodzielnego filtra importującego pliki dla | |
39 | arkuszy kalkulacyjnych. Obecnie rozwijane są filtry importujące | |
40 | dokumenty ODS, XLSX i CSV. | |
41 | ||
81a745c4 | 42 | %package devel |
261d3977 JB |
43 | Summary: Header files for liborcus |
44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liborcus | |
81a745c4 AM |
45 | Group: Development/Libraries |
46 | Requires: %{name} = %{version}-%{release} | |
806b8082 | 47 | Requires: boost-devel >= 1.36 |
cbb865a5 | 48 | Requires: libstdc++-devel >= 6:4.7 |
81a745c4 AM |
49 | |
50 | %description devel | |
261d3977 JB |
51 | This package contains the header files for developing applications |
52 | that use liborcus. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
56 | wykorzystujących bibliotekę liborcus. | |
57 | ||
58 | %package static | |
59 | Summary: Static liborcus library | |
60 | Summary(pl.UTF-8): Statyczna biblioteka liborcus | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static liborcus library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka liborcus. | |
81a745c4 | 69 | |
90a34fd6 JB |
70 | %package spreadsheet |
71 | Summary: liborcus spreadsheet model library | |
72 | Summary(pl.UTF-8): Biblioteka liborcus spreadsheet model | |
73 | Group: Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
cbb865a5 | 75 | Requires: ixion >= 0.11 |
90a34fd6 JB |
76 | |
77 | %description spreadsheet | |
78 | liborcus spreadsheet model library. | |
79 | ||
80 | %description spreadsheet -l pl.UTF-8 | |
81 | Biblioteka liborcus spreadsheet model (modelu arkuszy kalkulacyjnych). | |
82 | ||
83 | %package spreadsheet-devel | |
84 | Summary: Development files for liborcus spreadsheet model library | |
85 | Summary(pl.UTF-8): Pliki programistyczne biblioteki liborcus spreadsheet model | |
86 | Group: Development/Libraries | |
87 | Requires: %{name}-devel = %{version}-%{release} | |
88 | Requires: %{name}-spreadsheet = %{version}-%{release} | |
cbb865a5 | 89 | Requires: ixion-devel >= 0.11 |
90a34fd6 JB |
90 | |
91 | %description spreadsheet-devel | |
92 | Development files for liborcus spreadsheet model library. | |
93 | ||
94 | %description spreadsheet-devel -l pl.UTF-8 | |
95 | Pliki programistyczne biblioteki liborcus spreadsheet model. | |
96 | ||
97 | %package spreadsheet-static | |
98 | Summary: Static liborcus spreadsheet model library | |
99 | Summary(pl.UTF-8): Biblioteka statyczna liborcus spreadsheet model | |
100 | Group: Development/Libraries | |
101 | Requires: %{name}-spreadsheet-devel = %{version}-%{release} | |
102 | ||
103 | %description spreadsheet-static | |
104 | Static liborcus spreadsheet model library. | |
105 | ||
106 | %description spreadsheet-static -l pl.UTF-8 | |
107 | Biblioteka statyczna liborcus spreadsheet model. | |
108 | ||
cbb865a5 JB |
109 | %package -n python3-orcus |
110 | Summary: Python 3 binding for liborcus library | |
111 | Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki liborcus | |
112 | Group: Libraries/Python | |
113 | Requires: %{name} = %{version}-%{release} | |
114 | Requires: python3-libs >= 1:3.2 | |
115 | ||
116 | %description -n python3-orcus | |
117 | Python 3 binding for liborcus library. | |
118 | ||
119 | %description -n python3-orcus -l pl.UTF-8 | |
120 | Wiązanie Pythona 3 do biblioteki liborcus. | |
121 | ||
81a745c4 | 122 | %prep |
6cb5819d | 123 | %setup -q |
81a745c4 AM |
124 | |
125 | %build | |
90a34fd6 JB |
126 | %{__libtoolize} |
127 | %{__aclocal} -I m4 | |
128 | %{__autoconf} | |
129 | %{__autoheader} | |
130 | %{__automake} | |
81a745c4 AM |
131 | %configure \ |
132 | --disable-debug \ | |
cbb865a5 | 133 | %{!?with_python:--disable-python} \ |
261d3977 JB |
134 | --disable-silent-rules \ |
135 | %{!?with_ixion:--disable-spreadsheet-model} \ | |
136 | %{!?with_static_libs:--disable-static} \ | |
81a745c4 | 137 | --disable-werror \ |
8d927631 JB |
138 | --with-pic |
139 | ||
81a745c4 AM |
140 | %{__make} |
141 | ||
142 | ||
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %{__make} install \ | |
147 | DESTDIR=$RPM_BUILD_ROOT | |
148 | ||
261d3977 JB |
149 | # obsoleted by pkg-config |
150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/liborcus-*.la | |
151 | ||
cbb865a5 JB |
152 | %if %{with python} |
153 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.la | |
154 | %if %{with static_libs} | |
155 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.a | |
156 | %endif | |
157 | %endif | |
158 | ||
81a745c4 AM |
159 | %clean |
160 | rm -rf $RPM_BUILD_ROOT | |
161 | ||
261d3977 JB |
162 | %post -p /sbin/ldconfig |
163 | %postun -p /sbin/ldconfig | |
81a745c4 | 164 | |
90a34fd6 JB |
165 | %post spreadsheet -p /sbin/ldconfig |
166 | %postun spreadsheet -p /sbin/ldconfig | |
167 | ||
81a745c4 AM |
168 | %files |
169 | %defattr(644,root,root,755) | |
170 | %doc AUTHORS | |
8d927631 | 171 | %attr(755,root,root) %{_bindir}/orcus-css-dump |
806b8082 | 172 | %attr(755,root,root) %{_bindir}/orcus-detect |
cbb865a5 | 173 | %attr(755,root,root) %{_bindir}/orcus-json |
6cb5819d | 174 | %attr(755,root,root) %{_bindir}/orcus-mso-encryption |
81a745c4 | 175 | %attr(755,root,root) %{_bindir}/orcus-xml-dump |
cbb865a5 | 176 | %attr(755,root,root) %{_bindir}/orcus-yaml |
6cb5819d | 177 | %attr(755,root,root) %{_bindir}/orcus-zip-dump |
cbb865a5 JB |
178 | %attr(755,root,root) %{_libdir}/liborcus-0.11.so.*.*.* |
179 | %attr(755,root,root) %ghost %{_libdir}/liborcus-0.11.so.0 | |
180 | %attr(755,root,root) %{_libdir}/liborcus-mso-0.11.so.*.*.* | |
181 | %attr(755,root,root) %ghost %{_libdir}/liborcus-mso-0.11.so.0 | |
182 | %attr(755,root,root) %{_libdir}/liborcus-parser-0.11.so.*.*.* | |
183 | %attr(755,root,root) %ghost %{_libdir}/liborcus-parser-0.11.so.0 | |
81a745c4 AM |
184 | |
185 | %files devel | |
186 | %defattr(644,root,root,755) | |
cbb865a5 JB |
187 | %attr(755,root,root) %{_libdir}/liborcus-0.11.so |
188 | %attr(755,root,root) %{_libdir}/liborcus-mso-0.11.so | |
189 | %attr(755,root,root) %{_libdir}/liborcus-parser-0.11.so | |
190 | %{_includedir}/liborcus-0.11 | |
191 | %{_pkgconfigdir}/liborcus-0.11.pc | |
261d3977 JB |
192 | |
193 | %if %{with static_libs} | |
194 | %files static | |
195 | %defattr(644,root,root,755) | |
cbb865a5 JB |
196 | %{_libdir}/liborcus-0.11.a |
197 | %{_libdir}/liborcus-mso-0.11.a | |
198 | %{_libdir}/liborcus-parser-0.11.a | |
90a34fd6 JB |
199 | %endif |
200 | ||
201 | %if %{with ixion} | |
202 | %files spreadsheet | |
203 | %defattr(644,root,root,755) | |
204 | %attr(755,root,root) %{_bindir}/orcus-csv | |
205 | %attr(755,root,root) %{_bindir}/orcus-gnumeric | |
206 | %attr(755,root,root) %{_bindir}/orcus-ods | |
806b8082 | 207 | %attr(755,root,root) %{_bindir}/orcus-xls-xml |
90a34fd6 JB |
208 | %attr(755,root,root) %{_bindir}/orcus-xlsx |
209 | %attr(755,root,root) %{_bindir}/orcus-xml | |
cbb865a5 JB |
210 | %attr(755,root,root) %{_libdir}/liborcus-spreadsheet-model-0.11.so.*.*.* |
211 | %attr(755,root,root) %ghost %{_libdir}/liborcus-spreadsheet-model-0.11.so.0 | |
90a34fd6 JB |
212 | |
213 | %files spreadsheet-devel | |
214 | %defattr(644,root,root,755) | |
cbb865a5 JB |
215 | %attr(755,root,root) %{_libdir}/liborcus-spreadsheet-model-0.11.so |
216 | %{_pkgconfigdir}/liborcus-spreadsheet-model-0.11.pc | |
90a34fd6 JB |
217 | |
218 | %files spreadsheet-static | |
219 | %defattr(644,root,root,755) | |
cbb865a5 JB |
220 | %{_libdir}/liborcus-spreadsheet-model-0.11.a |
221 | %endif | |
222 | ||
223 | %if %{with python} | |
224 | %files -n python3-orcus | |
225 | %defattr(644,root,root,755) | |
226 | %attr(755,root,root) %{py3_sitedir}/_orcus.so | |
227 | %attr(755,root,root) %{py3_sitedir}/_orcus_json.so | |
228 | %{py3_sitedir}/orcus | |
90a34fd6 | 229 | %endif |