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