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