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