e594ff
%global apiversion 0.6
e594ff
e594ff
Name: liborcus
e594ff
Version: 0.5.1
e594ff
Release: 8%{?dist}
e594ff
Summary: Standalone file import filter library for spreadsheet documents
e594ff
e594ff
Group: System Environment/Libraries
e594ff
License: MIT
e594ff
URL: http://gitorious.org/orcus
e594ff
Source: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.bz2
e594ff
e594ff
BuildRequires: boost-devel
e594ff
BuildRequires: zlib-devel
e594ff
e594ff
Patch0: add-arch-support.patch
e594ff
e594ff
%description
e594ff
%{name} is a standalone file import filter library for spreadsheet
e594ff
documents. Currently under development are ODS, XLSX and CSV import
e594ff
filters.
e594ff
e594ff
%package devel
e594ff
Summary: Development files for %{name}
e594ff
Group: Development/Libraries
e594ff
Requires: %{name}%{?_isa} = %{version}-%{release}
e594ff
e594ff
%description devel
e594ff
The %{name}-devel package contains libraries and header files for
e594ff
developing applications that use %{name}.
e594ff
e594ff
%package tools
e594ff
Summary: Tools for working with %{name}
e594ff
Group: Applications/Publishing
e594ff
Requires: %{name}%{?_isa} = %{version}-%{release}
e594ff
e594ff
%description tools
e594ff
Tools for working with %{name}.
e594ff
e594ff
%prep
e594ff
%setup -q
e594ff
%patch0 -p1
e594ff
# fix build of orcus-zip-dump
e594ff
sed -i -e 's/orcus_zip_dump_LDADD = /& $(BOOST_SYSTEM_LIB) /' \
e594ff
    src/Makefile.in
e594ff
# TODO: upstream the changes
e594ff
sed -i \
e594ff
    -e 's/[a-z_]*_test_LDADD = /& $(BOOST_SYSTEM_LIB) /' \
e594ff
    -e 's/parser_test_[a-z_]*_LDADD = /& $(BOOST_SYSTEM_LIB) /' \
e594ff
    -e 's/liborcus_test_xml_structure_tree_LDADD = /& $(BOOST_SYSTEM_LIB) /' \
e594ff
    src/liborcus/Makefile.in src/parser/Makefile.in
e594ff
e594ff
%build
e594ff
# TODO spreadsheet-model requires ixion
e594ff
%configure --disable-debug --disable-silent-rules --disable-static \
e594ff
    --disable-werror --with-pic \
e594ff
    --disable-spreadsheet-model
e594ff
sed -i \
e594ff
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
e594ff
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
e594ff
    libtool
e594ff
make %{?_smp_mflags}
e594ff
e594ff
%install
e594ff
make install DESTDIR=%{buildroot}
e594ff
rm -f %{buildroot}/%{_libdir}/*.la
e594ff
e594ff
%check
e594ff
export LD_LIBRARY_PATH=`pwd`/src/liborcus/.libs:`pwd`/src/parser/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
e594ff
make check %{?_smp_mflags}
e594ff
e594ff
%post -p /sbin/ldconfig
e594ff
%postun -p /sbin/ldconfig
e594ff
e594ff
%files
e594ff
%doc AUTHORS COPYING README
e594ff
%{_libdir}/%{name}-%{apiversion}.so.*
e594ff
%{_libdir}/%{name}-mso-%{apiversion}.so.*
e594ff
%{_libdir}/%{name}-parser-%{apiversion}.so.*
e594ff
e594ff
%files devel
e594ff
%{_includedir}/%{name}-%{apiversion}
e594ff
%{_libdir}/%{name}-%{apiversion}.so
e594ff
%{_libdir}/%{name}-mso-%{apiversion}.so
e594ff
%{_libdir}/%{name}-parser-%{apiversion}.so
e594ff
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
e594ff
e594ff
%files tools
e594ff
%{_bindir}/orcus-mso-encryption
e594ff
%{_bindir}/orcus-xml-dump
e594ff
%{_bindir}/orcus-zip-dump
e594ff
e594ff
%changelog
e594ff
* Tue Aug 19 2014 David Tardon <dtardon@redhat.com> - 0.5.1-8
e594ff
- Resolves: rhbz#1125584 fix build on ppc64le
e594ff
e594ff
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.5.1-7
e594ff
- Mass rebuild 2014-01-24
e594ff
e594ff
* Tue Jan 21 2014 David Tardon <dtardon@redhat.com> - 0.5.1-6
e594ff
- Resolves: rhbz#1041331 liborcus fails to build for ARM (Aarch64)
e594ff
  (really this time)
e594ff
e594ff
* Tue Jan 21 2014 David Tardon <dtardon@redhat.com> - 0.5.1-5
e594ff
- Resolves: rhbz#1041331 liborcus fails to build for ARM (Aarch64)
e594ff
e594ff
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5.1-4
e594ff
- Mass rebuild 2013-12-27
e594ff
e594ff
* Mon Jun 10 2013 David Tardon <dtardon@redhat.com> - 0.5.1-3
e594ff
- trivial changes
e594ff
e594ff
* Tue May 28 2013 David Tardon <dtardon@redhat.com> - 0.5.1-2
e594ff
- build orcus-zip-dump too
e594ff
e594ff
* Mon May 06 2013 David Tardon <dtardon@redhat.com> - 0.5.1-1
e594ff
- new release
e594ff
e594ff
* Fri Feb 15 2013 Stephan Bergmannn <sbergman@redhat.com> - 0.3.0-5
e594ff
- missing boost include
e594ff
e594ff
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-4
e594ff
- Rebuild for Boost-1.53.0
e594ff
e594ff
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 0.3.0-3
e594ff
- Rebuild for Boost-1.53.0
e594ff
e594ff
* Sat Dec 08 2012 David Tardon <dtardon@redhat.com> - 0.3.0-2
e594ff
- a pointless release bump
e594ff
e594ff
* Fri Dec 07 2012 David Tardon <dtardon@redhat.com> - 0.3.0-1
e594ff
- new release
e594ff
e594ff
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.1.0-1
e594ff
- initial import