]>
Commit | Line | Data |
---|---|---|
261d3977 JB |
1 | # TODO: ixion (requires newer version than existing in PLD) |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with ixion # ixion-based spreadsheet model support | |
5 | %bcond_without libzip # ZIP-based formats support via libzip | |
6 | %bcond_without static_libs # static library | |
7 | # | |
81a745c4 | 8 | Summary: Standalone file import filter library for spreadsheet documents |
261d3977 | 9 | Summary(pl.UTF-8): Biblioteka samodzielnego filtra importującego pliki dla arkuszy kalkulacyjnych |
81a745c4 AM |
10 | Name: liborcus |
11 | Version: 0.3.0 | |
12 | Release: 1 | |
13 | License: MIT | |
14 | Group: Libraries | |
81a745c4 AM |
15 | Source0: http://kohei.us/files/orcus/src/%{name}_%{version}.tar.bz2 |
16 | # Source0-md5: 8755aac23317494a9028569374dc87b2 | |
261d3977 | 17 | URL: http://gitorious.org/orcus |
81a745c4 | 18 | BuildRequires: boost-devel |
261d3977 JB |
19 | %{?with_ixion:BuildRequires: ixion-devel >= 0.6} |
20 | BuildRequires: libstdc++-devel | |
21 | %{?with_libzip:BuildRequires: libzip-devel} | |
81a745c4 | 22 | BuildRequires: mdds-devel |
261d3977 | 23 | BuildRequires: pkgconfig >= 1:0.20 |
81a745c4 AM |
24 | BuildRequires: zlib-devel |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
261d3977 | 28 | liborcus is a standalone file import filter library for spreadsheet |
81a745c4 AM |
29 | documents. Currently under development are ODS, XLSX and CSV import |
30 | filters. | |
31 | ||
261d3977 JB |
32 | %description -l pl.UTF-8 |
33 | liborcus to biblioteka samodzielnego filtra importującego pliki dla | |
34 | arkuszy kalkulacyjnych. Obecnie rozwijane są filtry importujące | |
35 | dokumenty ODS, XLSX i CSV. | |
36 | ||
81a745c4 | 37 | %package devel |
261d3977 JB |
38 | Summary: Header files for liborcus |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liborcus | |
81a745c4 AM |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
261d3977 JB |
42 | Requires: boost-devel |
43 | Requires: libstdc++-devel | |
81a745c4 AM |
44 | |
45 | %description devel | |
261d3977 JB |
46 | This package contains the header files for developing applications |
47 | that use liborcus. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
51 | wykorzystujących bibliotekę liborcus. | |
52 | ||
53 | %package static | |
54 | Summary: Static liborcus library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka liborcus | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static liborcus library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka liborcus. | |
81a745c4 AM |
64 | |
65 | %prep | |
66 | %setup -q -n %{name}_%{version} | |
67 | ||
68 | %build | |
81a745c4 AM |
69 | %configure \ |
70 | --disable-debug \ | |
261d3977 JB |
71 | --disable-silent-rules \ |
72 | %{!?with_ixion:--disable-spreadsheet-model} \ | |
73 | %{!?with_static_libs:--disable-static} \ | |
81a745c4 AM |
74 | --disable-werror \ |
75 | --with-pic \ | |
261d3977 | 76 | %{!?with_libzip:--without-libzip} |
81a745c4 AM |
77 | %{__make} |
78 | ||
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
261d3977 JB |
86 | # obsoleted by pkg-config |
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/liborcus-*.la | |
88 | ||
81a745c4 AM |
89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
261d3977 JB |
92 | %post -p /sbin/ldconfig |
93 | %postun -p /sbin/ldconfig | |
81a745c4 AM |
94 | |
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS | |
98 | %attr(755,root,root) %{_bindir}/orcus-xml-dump | |
261d3977 JB |
99 | %attr(755,root,root) %{_libdir}/liborcus-0.4.so.*.*.* |
100 | %attr(755,root,root) %ghost %{_libdir}/liborcus-0.4.so.0 | |
81a745c4 AM |
101 | |
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
261d3977 JB |
104 | %attr(755,root,root) %{_libdir}/liborcus-0.4.so |
105 | %{_includedir}/liborcus-0.4 | |
106 | %{_pkgconfigdir}/liborcus-0.4.pc | |
107 | ||
108 | %if %{with static_libs} | |
109 | %files static | |
110 | %defattr(644,root,root,755) | |
111 | %endif | |
112 | %{_libdir}/liborcus-0.4.a |