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