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