86b9a5
%global apiversion 0.1
86b9a5
86b9a5
Name: libetonyek
86b9a5
Version: 0.1.7
86b9a5
Release: 1%{?dist}
86b9a5
Summary: A library for import of Apple iWork documents
86b9a5
86b9a5
License: MPLv2.0
86b9a5
URL: http://wiki.documentfoundation.org/DLP/Libraries/libetonyek
86b9a5
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
86b9a5
86b9a5
BuildRequires: boost-devel
86b9a5
BuildRequires: doxygen
86b9a5
BuildRequires: glm-devel
86b9a5
BuildRequires: gperf
86b9a5
BuildRequires: help2man
86b9a5
BuildRequires: pkgconfig(cppunit)
86b9a5
BuildRequires: pkgconfig(liblangtag)
86b9a5
BuildRequires: pkgconfig(librevenge-0.0)
86b9a5
BuildRequires: pkgconfig(libxml-2.0)
86b9a5
BuildRequires: pkgconfig(mdds-1.2)
86b9a5
BuildRequires: pkgconfig(zlib)
86b9a5
86b9a5
%description
86b9a5
%{name} is library for import of documents from Apple iWork applications
86b9a5
(Keynote, Pages and Numbers). It can import documents created by
86b9a5
Keynote 2-6, Pages 1-4 and Numbers 1-2. The support for Numbers is rather
86b9a5
minimal at the moment.
86b9a5
86b9a5
%package devel
86b9a5
Summary: Development files for %{name}
86b9a5
Requires: %{name}%{?_isa} = %{version}-%{release}
86b9a5
86b9a5
%description devel
86b9a5
The %{name}-devel package contains libraries and header files for
86b9a5
developing applications that use %{name}.
86b9a5
86b9a5
%package doc
86b9a5
Summary: Documentation of %{name} API
86b9a5
BuildArch: noarch
86b9a5
86b9a5
%description doc
86b9a5
The %{name}-doc package contains documentation files for %{name}.
86b9a5
86b9a5
%package tools
86b9a5
Summary: Tools to transform Apple iWork documents into other formats
86b9a5
Requires: %{name}%{?_isa} = %{version}-%{release}
86b9a5
86b9a5
%description tools
86b9a5
Tools to transform Apple iWork documents into other formats. Currently
86b9a5
supported: CSV, HTML, SVG, text, and raw.
86b9a5
86b9a5
%prep
86b9a5
%autosetup -p1
86b9a5
86b9a5
%build
86b9a5
%configure --disable-silent-rules --disable-static --disable-werror
86b9a5
sed -i \
86b9a5
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
86b9a5
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
86b9a5
    libtool
86b9a5
make %{?_smp_mflags}
86b9a5
86b9a5
%install
86b9a5
make install DESTDIR=%{buildroot}
86b9a5
rm -f %{buildroot}/%{_libdir}/*.la
86b9a5
# we install API docs directly from build
86b9a5
rm -rf %{buildroot}/%{_docdir}/%{name}
86b9a5
86b9a5
# generate and install man pages
86b9a5
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
86b9a5
for tool in key2raw key2text key2xhtml numbers2csv numbers2raw numbers2text pages2html pages2raw pages2text; do
86b9a5
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
86b9a5
done
86b9a5
install -m 0755 -d %{buildroot}/%{_mandir}/man1
86b9a5
install -m 0644 key2*.1 numbers2*.1 pages2*.1 %{buildroot}/%{_mandir}/man1
86b9a5
86b9a5
%post -p /sbin/ldconfig
86b9a5
%postun -p /sbin/ldconfig
86b9a5
86b9a5
%check
86b9a5
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
86b9a5
if ! make %{?_smp_mflags} check; then
86b9a5
    cat src/test/*.log
86b9a5
    exit 1
86b9a5
fi
86b9a5
86b9a5
%files
86b9a5
%doc AUTHORS FEATURES NEWS README
86b9a5
%license COPYING
86b9a5
%{_libdir}/%{name}-%{apiversion}.so.*
86b9a5
86b9a5
%files devel
86b9a5
%doc ChangeLog
86b9a5
%{_includedir}/%{name}-%{apiversion}
86b9a5
%{_libdir}/%{name}-%{apiversion}.so
86b9a5
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
86b9a5
86b9a5
%files doc
86b9a5
%license COPYING
86b9a5
%doc docs/doxygen/html
86b9a5
86b9a5
%files tools
86b9a5
%{_bindir}/key2raw
86b9a5
%{_bindir}/key2text
86b9a5
%{_bindir}/key2xhtml
86b9a5
%{_bindir}/numbers2csv
86b9a5
%{_bindir}/numbers2raw
86b9a5
%{_bindir}/numbers2text
86b9a5
%{_bindir}/pages2html
86b9a5
%{_bindir}/pages2raw
86b9a5
%{_bindir}/pages2text
86b9a5
%{_mandir}/man1/key2raw.1*
86b9a5
%{_mandir}/man1/key2text.1*
86b9a5
%{_mandir}/man1/key2xhtml.1*
86b9a5
%{_mandir}/man1/numbers2csv.1*
86b9a5
%{_mandir}/man1/numbers2raw.1*
86b9a5
%{_mandir}/man1/numbers2text.1*
86b9a5
%{_mandir}/man1/pages2html.1*
86b9a5
%{_mandir}/man1/pages2raw.1*
86b9a5
%{_mandir}/man1/pages2text.1*
86b9a5
86b9a5
%changelog
86b9a5
* Mon Oct 23 2017 David Tardon <dtardon@redhat.com> - 0.1.7-1
86b9a5
- Resolves: rhbz#1477216 rebase to 0.1.7
86b9a5
86b9a5
* Fri Jun 12 2015 David Tardon <dtardon@redhat.com> - 0.1.2-4
86b9a5
- Related: rhbz#1207752 fix output of shapes
86b9a5
86b9a5
* Sun May 31 2015 David Tardon <dtardon@redhat.com> - 0.1.2-3
86b9a5
- Related: rhbz#1207752 avoid use of uninitialized value
86b9a5
86b9a5
* Tue May 26 2015 David Tardon <dtardon@redhat.com> - 0.1.2-2
86b9a5
- Related: rhbz#1207752 fix some problems found by coverity
86b9a5
86b9a5
* Tue May 26 2015 David Tardon <dtardon@redhat.com> - 0.1.2-1
86b9a5
- Resolves: rhbz#1207752 rebase to 0.1.2
86b9a5
86b9a5
* Fri Apr 17 2015 David Tardon <dtardon@redhat.com> - 0.1.1-1
86b9a5
- Resolves: rhbz#1207752 rebase to 0.1.1
86b9a5
86b9a5
* Fri Sep 12 2014 David Tardon <dtardon@redhat.com> - 0.0.4-2
86b9a5
- Related: rhbz#1130553 fix coverity issue
86b9a5
86b9a5
* Tue Apr 15 2014 David Tardon <dtardon@redhat.com> - 0.0.4-1
86b9a5
- new upstream release
86b9a5
86b9a5
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.0.3-2
86b9a5
- generate man pages
86b9a5
86b9a5
* Fri Dec 06 2013 David Tardon <dtardon@redhat.com> - 0.0.3-1
86b9a5
- new release
86b9a5
86b9a5
* Wed Dec 04 2013 David Tardon <dtardon@redhat.com> - 0.0.2-1
86b9a5
- new release
86b9a5
86b9a5
* Mon Nov 04 2013 David Tardon <dtardon@redhat.com> - 0.0.1-1
86b9a5
- new release
86b9a5
86b9a5
* Wed Oct 30 2013 David Tardon <dtardon@redhat.com> 0.0.0-1
86b9a5
- initial import