0c672c8
%global apiversion 0.8
232ffee
3c2dd8a
# build conversion tools
3c2dd8a
%bcond_without convtools
3c2dd8a
36d8204
Name: liborcus
d203ac9
Version: 0.7.1
2f3214e
Release: 4%{?dist}
36d8204
Summary: Standalone file import filter library for spreadsheet documents
36d8204
0c672c8
License: MPLv2.0
2246c70
URL: https://gitlab.com/orcus/orcus
d203ac9
Source: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.xz
Petr Machata 93249a6
Patch0: liborcus-0.7.0-iostream.patch
3c1149a
Patch1: 0001-coverity-54448-Uninitialized-scalar-field.patch
3c1149a
Patch2: 0001-do-not-let-main-throw.patch
36d8204
36d8204
BuildRequires: boost-devel
3c2dd8a
%if %{with convtools}
3832a39
BuildRequires: help2man
d203ac9
BuildRequires: pkgconfig(libixion-0.10)
3c2dd8a
%endif
282bc31
BuildRequires: pkgconfig(mdds) >= 0.12.0
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
3c2dd8a
%if %{with convtools}
3e118f5
%package model
3e118f5
Summary: Spreadsheet model for %{name} conversion tools
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.
3c2dd8a
%endif
3e118f5
36d8204
%package devel
36d8204
Summary: Development files for %{name}
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
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
3c2dd8a
%if %{without convtools}
3c2dd8a
%global condopts --disable-spreadsheet-model
3c2dd8a
%endif
3c2dd8a
36d8204
%build
a373b13
%configure --disable-debug --disable-silent-rules --disable-static \
3c2dd8a
    --disable-werror --with-pic %{?condopts}
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
3c2dd8a
%if %{with convtools}
e39d689
export LD_LIBRARY_PATH=`pwd`/src/liborcus/.libs:`pwd`/src/parser/.libs:`pwd`/src/spreadsheet/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
3832a39
help2man -N -n 'convert a CSV file' -o orcus-csv.1 ./src/.libs/orcus-csv
3832a39
help2man -N -n 'convert a Gnumeric file' -o orcus-gnumeric.1 ./src/.libs/orcus-gnumeric
3832a39
help2man -N -n 'convert an ODF spreadsheet' -o orcus-ods.1 ./src/.libs/orcus-ods
3832a39
help2man -N -n 'transform an XML file' -o orcus-xls-xml.1 ./src/.libs/orcus-xls-xml
3832a39
help2man -N -n 'convert a OpenXML spreadsheet' -o orcus-xlsx.1 ./src/.libs/orcus-xlsx
3832a39
help2man -N -n 'convert an XML file' -o orcus-xml.1 ./src/.libs/orcus-xml
3c2dd8a
%endif
3832a39
36d8204
%install
36d8204
make install DESTDIR=%{buildroot}
36d8204
rm -f %{buildroot}/%{_libdir}/*.la
36d8204
3c2dd8a
%if %{with convtools}
3832a39
install -m 0755 -d %{buildroot}/%{_mandir}/man1
3832a39
install -p -m 0644 orcus-*.1 %{buildroot}/%{_mandir}/man1
3c2dd8a
%endif
3832a39
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
3c2dd8a
%if %{with convtools}
3e118f5
%post model -p /sbin/ldconfig
3e118f5
%postun model -p /sbin/ldconfig
3c2dd8a
%endif
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
3c2dd8a
%if %{with convtools}
3e118f5
%files model
3e118f5
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so.*
3c2dd8a
%endif
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
232ffee
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
3c2dd8a
%if %{with convtools}
3c2dd8a
%{_libdir}/%{name}-spreadsheet-model-%{apiversion}.so
3e118f5
%{_libdir}/pkgconfig/%{name}-spreadsheet-model-%{apiversion}.pc
3c2dd8a
%endif
36d8204
36d8204
%files tools
0c672c8
%{_bindir}/orcus-detect
232ffee
%{_bindir}/orcus-mso-encryption
3c2dd8a
%{_bindir}/orcus-xml-dump
3c2dd8a
%{_bindir}/orcus-zip-dump
3c2dd8a
%if %{with convtools}
3c2dd8a
%{_bindir}/orcus-csv
3c2dd8a
%{_bindir}/orcus-gnumeric
3e118f5
%{_bindir}/orcus-ods
3e118f5
%{_bindir}/orcus-xls-xml
3e118f5
%{_bindir}/orcus-xlsx
3e118f5
%{_bindir}/orcus-xml
3832a39
%{_mandir}/man1/orcus-csv.1*
3832a39
%{_mandir}/man1/orcus-gnumeric.1*
3832a39
%{_mandir}/man1/orcus-ods.1*
3832a39
%{_mandir}/man1/orcus-xls-xml.1*
3832a39
%{_mandir}/man1/orcus-xlsx.1*
3832a39
%{_mandir}/man1/orcus-xml.1*
3c2dd8a
%endif
36d8204
36d8204
%changelog
2f3214e
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.7.1-4
2f3214e
- rebuild for Boost 1.58
2f3214e
616a005
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3
616a005
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
616a005
3a0d5de
* Tue Apr 14 2015 David Tardon <dtardon@redhat.com> - 0.7.1-2
3a0d5de
- rebuild for yet another C++ ABI break
3a0d5de
d203ac9
* Wed Feb 25 2015 David Tardon <dtardon@redhat.com> - 0.7.1-1
d203ac9
- new upstream release
d203ac9
Petr Machata 7d6d1db
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.7.0-7
Petr Machata 93249a6
- include <iostream> in string_pool_test (liborcus-0.7.0-iostream.patch)
Petr Machata 7d6d1db
Petr Machata 4c53dee
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.7.0-6
Petr Machata 4c53dee
- Rebuild for boost 1.57.0
Petr Machata 4c53dee
8f4c194
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-5
8f4c194
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8f4c194
1249e6d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-4
1249e6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1249e6d
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