]>
Commit | Line | Data |
---|---|---|
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 | # | |
8 | Summary: Standalone file import filter library for spreadsheet documents | |
9 | Summary(pl.UTF-8): Biblioteka samodzielnego filtra importującego pliki dla arkuszy kalkulacyjnych | |
10 | Name: liborcus | |
11 | Version: 0.3.0 | |
12 | Release: 1 | |
13 | License: MIT | |
14 | Group: Libraries | |
15 | Source0: http://kohei.us/files/orcus/src/%{name}_%{version}.tar.bz2 | |
16 | # Source0-md5: 8755aac23317494a9028569374dc87b2 | |
17 | URL: http://gitorious.org/orcus | |
18 | BuildRequires: boost-devel | |
19 | %{?with_ixion:BuildRequires: ixion-devel >= 0.6} | |
20 | BuildRequires: libstdc++-devel | |
21 | %{?with_libzip:BuildRequires: libzip-devel} | |
22 | BuildRequires: mdds-devel | |
23 | BuildRequires: pkgconfig >= 1:0.20 | |
24 | BuildRequires: zlib-devel | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | liborcus is a standalone file import filter library for spreadsheet | |
29 | documents. Currently under development are ODS, XLSX and CSV import | |
30 | filters. | |
31 | ||
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 | ||
37 | %package devel | |
38 | Summary: Header files for liborcus | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liborcus | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | Requires: boost-devel | |
43 | Requires: libstdc++-devel | |
44 | ||
45 | %description devel | |
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. | |
64 | ||
65 | %prep | |
66 | %setup -q -n %{name}_%{version} | |
67 | ||
68 | %build | |
69 | %configure \ | |
70 | --disable-debug \ | |
71 | --disable-silent-rules \ | |
72 | %{!?with_ixion:--disable-spreadsheet-model} \ | |
73 | %{!?with_static_libs:--disable-static} \ | |
74 | --disable-werror \ | |
75 | --with-pic \ | |
76 | %{!?with_libzip:--without-libzip} | |
77 | %{__make} | |
78 | ||
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
84 | DESTDIR=$RPM_BUILD_ROOT | |
85 | ||
86 | # obsoleted by pkg-config | |
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/liborcus-*.la | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS | |
98 | %attr(755,root,root) %{_bindir}/orcus-xml-dump | |
99 | %attr(755,root,root) %{_libdir}/liborcus-0.4.so.*.*.* | |
100 | %attr(755,root,root) %ghost %{_libdir}/liborcus-0.4.so.0 | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
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 |