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