|
|
|
@ -12,6 +12,7 @@ Source: http://kohei.us/files/orcus/src/%{name}-%{version}.tar.bz2
|
|
|
|
|
|
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
BuildRequires: help2man
|
|
|
|
|
BuildRequires: pkgconfig(libixion-0.8)
|
|
|
|
|
BuildRequires: pkgconfig(mdds)
|
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
@ -61,12 +62,22 @@ sed -i \
|
|
|
|
|
libtool
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
help2man -N -n 'convert a CSV file' -o orcus-csv.1 ./src/.libs/orcus-csv
|
|
|
|
|
help2man -N -n 'convert a Gnumeric file' -o orcus-gnumeric.1 ./src/.libs/orcus-gnumeric
|
|
|
|
|
help2man -N -n 'convert an ODF spreadsheet' -o orcus-ods.1 ./src/.libs/orcus-ods
|
|
|
|
|
help2man -N -n 'transform an XML file' -o orcus-xls-xml.1 ./src/.libs/orcus-xls-xml
|
|
|
|
|
help2man -N -n 'convert a OpenXML spreadsheet' -o orcus-xlsx.1 ./src/.libs/orcus-xlsx
|
|
|
|
|
help2man -N -n 'convert an XML file' -o orcus-xml.1 ./src/.libs/orcus-xml
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
|
|
# because boost.m4 is total crap and adds RPATH unconditionally
|
|
|
|
|
chrpath -d %{buildroot}/%{_libdir}/*.so
|
|
|
|
|
|
|
|
|
|
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
|
|
install -p -m 0644 orcus-*.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
@ -106,6 +117,12 @@ make check %{?_smp_mflags}
|
|
|
|
|
%{_bindir}/orcus-xml
|
|
|
|
|
%{_bindir}/orcus-xml-dump
|
|
|
|
|
%{_bindir}/orcus-zip-dump
|
|
|
|
|
%{_mandir}/man1/orcus-csv.1*
|
|
|
|
|
%{_mandir}/man1/orcus-gnumeric.1*
|
|
|
|
|
%{_mandir}/man1/orcus-ods.1*
|
|
|
|
|
%{_mandir}/man1/orcus-xls-xml.1*
|
|
|
|
|
%{_mandir}/man1/orcus-xlsx.1*
|
|
|
|
|
%{_mandir}/man1/orcus-xml.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu May 29 2014 David Tardon <dtardon@redhat.com> - 0.7.0-3
|
|
|
|
|