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