0c672c8
%global apiversion 0.8
232ffee
36d8204
Name: liborcus
0c672c8
Version: 0.7.0
3e118f5
Release: 3%{?dist}
36d8204
Summary: Standalone file import filter library for spreadsheet documents
36d8204
36d8204
Group: System Environment/Libraries
0c672c8
License: MPLv2.0
36d8204
URL: http://gitorious.org/orcus
232ffee
Source: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.bz2
36d8204
36d8204
BuildRequires: boost-devel
0c672c8
BuildRequires: chrpath
3e118f5
BuildRequires: pkgconfig(libixion-0.8)
0c672c8
BuildRequires: pkgconfig(mdds)
b132696
BuildRequires: pkgconfig(zlib)
36d8204
36d8204
%description
36d8204
%{name} is a standalone file import filter library for spreadsheet
36d8204
documents. Currently under development are ODS, XLSX and CSV import
36d8204
filters.
36d8204
3e118f5
%package model
3e118f5
Summary: Spreadsheet model for %{name} conversion tools
3e118f5
Group: Development/Libraries
3e118f5
Requires: %{name}%{?_isa} = %{version}-%{release}
3e118f5
3e118f5
%description model
3e118f5
The %{name}-model package contains a spreadsheet model used by the
3e118f5
conversion tools.
3e118f5
36d8204
%package devel
36d8204
Summary: Development files for %{name}
36d8204
Group: Development/Libraries
36d8204
Requires: %{name}%{?_isa} = %{version}-%{release}
36d8204
36d8204
%description devel
36d8204
The %{name}-devel package contains libraries and header files for
36d8204
developing applications that use %{name}.
36d8204
36d8204
%package tools
110e162
Summary: Tools for working with %{name}
36d8204
Group: Applications/Publishing
36d8204
Requires: %{name}%{?_isa} = %{version}-%{release}
36d8204
36d8204
%description tools
3e118f5
Helper tools for %{name} and converters of various file formats to HTML
3e118f5
and text.
36d8204
36d8204
%prep
5f14c92
%autosetup -p1
4d1b271
36d8204
%build
36d8204
# TODO spreadsheet-model requires ixion
a373b13
%configure --disable-debug --disable-silent-rules --disable-static \
3e118f5
    --disable-werror --with-pic
36d8204
sed -i \
36d8204
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
36d8204
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
36d8204
    libtool
a373b13
make %{?_smp_mflags}
36d8204
36d8204
%install
36d8204
make install DESTDIR=%{buildroot}
36d8204
rm -f %{buildroot}/%{_libdir}/*.la
0c672c8
# because boost.m4 is total crap and adds RPATH unconditionally
0c672c8
chrpath -d %{buildroot}/%{_libdir}/*.so
36d8204
c0d6af2
%check
3e118f5
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
c0d6af2
make check %{?_smp_mflags}
c0d6af2
36d8204
%post -p /sbin/ldconfig
36d8204
%postun -p /sbin/ldconfig
36d8204
3e118f5
%post model -p /sbin/ldconfig
3e118f5
%postun model -p /sbin/ldconfig
3e118f5
36d8204
%files
d587a39
%doc AUTHORS COPYING README
232ffee
%{_libdir}/%{name}-%{apiversion}.so.*
232ffee
%{_libdir}/%{name}-mso-%{apiversion}.so.*
232ffee
%{_libdir}/%{name}-parser-%{apiversion}.so.*
36d8204
3e118f5
%files model
3e118f5
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so.*
3e118f5
36d8204
%files devel
232ffee
%{_includedir}/%{name}-%{apiversion}
232ffee
%{_libdir}/%{name}-%{apiversion}.so
232ffee
%{_libdir}/%{name}-mso-%{apiversion}.so
232ffee
%{_libdir}/%{name}-parser-%{apiversion}.so
3e118f5
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so
232ffee
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
3e118f5
%{_libdir}/pkgconfig/%{name}-spreadsheet-model-%{apiversion}.pc
36d8204
36d8204
%files tools
3e118f5
%{_bindir}/orcus-csv
0c672c8
%{_bindir}/orcus-detect
3e118f5
%{_bindir}/orcus-gnumeric
232ffee
%{_bindir}/orcus-mso-encryption
3e118f5
%{_bindir}/orcus-ods
3e118f5
%{_bindir}/orcus-xls-xml
3e118f5
%{_bindir}/orcus-xlsx
3e118f5
%{_bindir}/orcus-xml
b0e2462
%{_bindir}/orcus-xml-dump
9420f16
%{_bindir}/orcus-zip-dump
36d8204
36d8204
%changelog
3e118f5
* Thu May 29 2014 David Tardon <dtardon@redhat.com> - 0.7.0-3
3e118f5
- enable conversion tools
3e118f5
Petr Machata bc7aa34
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.7.0-2
Petr Machata bc7aa34
- Rebuild for boost 1.55.0
Petr Machata bc7aa34
0c672c8
* Thu May 22 2014 David Tardon <dtardon@redhat.com> - 0.7.0-1
0c672c8
- new upstream release
0c672c8
Jaromir Capik 2360259
* Mon May 05 2014 Jaromir Capik <jcapik@redhat.com> - 0.5.1-7
Jaromir Capik 2360259
- add support for ppc64le
Jaromir Capik 2360259
4d1b271
* Wed Jan 22 2014 David Tardon <dtardon@redhat.com> - 0.5.1-6
4d1b271
- add support for aarch64
4d1b271
72deb2e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
72deb2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
72deb2e
Petr Machata c1dd1d5
* Sat Jul 27 2013 pmachata@redhat.com - 0.5.1-4
Petr Machata c1dd1d5
- Rebuild for boost 1.54.0
Petr Machata c1dd1d5
01e8aa9
* Mon Jun 10 2013 David Tardon <dtardon@redhat.com> - 0.5.1-3
01e8aa9
- trivial changes
01e8aa9
cd2f23d
* Tue May 28 2013 David Tardon <dtardon@redhat.com> - 0.5.1-2
cd2f23d
- build orcus-zip-dump too
cd2f23d
232ffee
* Mon May 06 2013 David Tardon <dtardon@redhat.com> - 0.5.1-1
232ffee
- new release
232ffee
8086a6d
* Fri Feb 15 2013 Stephan Bergmannn <sbergman@redhat.com> - 0.3.0-5
8086a6d
- missing boost include
8086a6d
141738b
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-4
141738b
- Rebuild for Boost-1.53.0
141738b
f5bf322
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-3
f5bf322
- Rebuild for Boost-1.53.0
f5bf322
12b62ef
* Sat Dec 08 2012 David Tardon <dtardon@redhat.com> - 0.3.0-2
12b62ef
- a pointless release bump
12b62ef
b0e2462
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-1
b0e2462
- new release
b0e2462
36d8204
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.1.0-1
36d8204
- initial import