8745a8
%global apiversion 0.3
8745a8
8745a8
Name: libmwaw
8745a8
Version: 0.3.5
8745a8
Release: 1%{?dist}
8745a8
Summary: A library for import of many old Mac document formats
8745a8
8745a8
License: LGPLv2+ or MPLv2.0
8745a8
URL: http://sourceforge.net/projects/libmwaw/
8745a8
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
8745a8
8745a8
BuildRequires: boost-devel
8745a8
BuildRequires: doxygen
8745a8
BuildRequires: help2man
8745a8
BuildRequires: pkgconfig(librevenge-0.0)
8745a8
8745a8
Patch0: 0001-do-not-deref.-end-iterator.patch
8745a8
8745a8
%description
8745a8
{name} is a library for import of old Mac documents. It supports many
8745a8
kinds of text documents, spreadsheets, databases, vector and bitmap
8745a8
images. Supported are, for example, documents created by BeagleWorks,
8745a8
ClarisWorks, MacPaint, MacWrite or Microsoft Word for Mac. Full (and
8745a8
actual) list of supported formats is available at
8745a8
https://sourceforge.net/p/libmwaw/wiki/Home/ .
8745a8
8745a8
%package devel
8745a8
Summary: Development files for %{name}
8745a8
Requires: %{name}%{?_isa} = %{version}-%{release}
8745a8
8745a8
%description devel
8745a8
The %{name}-devel package contains libraries and header files for
8745a8
developing applications that use %{name}.
8745a8
8745a8
%package doc
8745a8
Summary: Documentation of %{name} API
8745a8
BuildArch: noarch
8745a8
8745a8
%description doc
8745a8
The %{name}-doc package contains documentation files for %{name}.
8745a8
8745a8
%package tools
8745a8
Summary: Tools to transform the supported formats into other formats
8745a8
Requires: %{name}%{?_isa} = %{version}-%{release}
8745a8
8745a8
%description tools
8745a8
Tools to transform the supported document formats into other formats.
8745a8
Supported output formats are CSV, HTML, SVG, plain text and raw.
8745a8
8745a8
%prep
8745a8
%autosetup -p1
8745a8
8745a8
%build
8745a8
%configure --disable-static --disable-werror --disable-zip --enable-docs
8745a8
sed -i \
8745a8
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
8745a8
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
8745a8
    libtool
8745a8
make %{?_smp_mflags} V=1
8745a8
8745a8
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
8745a8
help2man -N -n 'convert Mac spreadsheet into CSV' -o mwaw2csv.1 ./src/conv/csv/.libs/mwaw2csv
8745a8
help2man -N -n 'debug the conversion library' -o mwaw2raw.1 ./src/conv/raw/.libs/mwaw2raw
8745a8
help2man -N -n 'convert Mac text document into HTML' -o mwaw2html.1 ./src/conv/html/.libs/mwaw2html
8745a8
help2man -N -n 'convert Mac drawing into SVG' -o mwaw2svg.1 ./src/conv/svg/.libs/mwaw2svg
8745a8
help2man -N -n 'convert Mac text document into plain text' -o mwaw2text.1 ./src/conv/text/.libs/mwaw2text
8745a8
8745a8
%install
8745a8
make install DESTDIR=%{buildroot}
8745a8
rm -f %{buildroot}/%{_libdir}/*.la
8745a8
# it seems this tool is only useful on MacOS
8745a8
rm -f %{buildroot}/%{_bindir}/mwawFile
8745a8
# rhbz#1001297 we install API docs directly from build
8745a8
rm -rf %{buildroot}/%{_docdir}/%{name}
8745a8
8745a8
install -m 0755 -d %{buildroot}/%{_mandir}/man1
8745a8
install -m 0644 mwaw2*.1 %{buildroot}/%{_mandir}/man1
8745a8
8745a8
%post -p /sbin/ldconfig
8745a8
%postun -p /sbin/ldconfig
8745a8
8745a8
%files
8745a8
%doc CHANGES COPYING.* README
8745a8
%{_libdir}/%{name}-%{apiversion}.so.*
8745a8
8745a8
%files devel
8745a8
%doc HACKING
8745a8
%{_includedir}/%{name}-%{apiversion}
8745a8
%{_libdir}/%{name}-%{apiversion}.so
8745a8
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
8745a8
8745a8
%files doc
8745a8
%doc COPYING.*
8745a8
%doc docs/doxygen/html
8745a8
8745a8
%files tools
8745a8
%{_bindir}/mwaw2csv
8745a8
%{_bindir}/mwaw2html
8745a8
%{_bindir}/mwaw2raw
8745a8
%{_bindir}/mwaw2svg
8745a8
%{_bindir}/mwaw2text
8745a8
%{_mandir}/man1/mwaw2csv.1*
8745a8
%{_mandir}/man1/mwaw2html.1*
8745a8
%{_mandir}/man1/mwaw2raw.1*
8745a8
%{_mandir}/man1/mwaw2svg.1*
8745a8
%{_mandir}/man1/mwaw2text.1*
8745a8
8745a8
%changelog
8745a8
* Tue May 26 2015 David Tardon <dtardon@redhat.com> - 0.3.5-1
8745a8
- Resolves: rhbz#1207757 rebase to 0.3.5
8745a8
8745a8
* Tue May 05 2015 David Tardon <dtardon@redhat.com> - 0.3.4-2
8745a8
- Related: rhbz#1207757 coverity fix
8745a8
8745a8
* Fri Apr 17 2015 David Tardon <dtardon@redhat.com> - 0.3.4-1
8745a8
- Resolves: rhbz#1207757 rebase to 0.3.4
8745a8
8745a8
* Fri Aug 22 2014 David Tardon <dtardon@redhat.com> - 0.2.0-4
8745a8
- Resolves: rhbz#1132070 rebase to 0.2.0
8745a8
8745a8
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.1.11-3
8745a8
- Mass rebuild 2014-01-24
8745a8
8745a8
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.1.11-2
8745a8
- Mass rebuild 2013-12-27
8745a8
8745a8
* Mon Sep 09 2013 David Tardon <dtardon@redhat.com> - 0.1.11-1
8745a8
- new upstream release
8745a8
8745a8
* Fri Aug 30 2013 David Tardon <dtardon@redhat.com> - 0.1.10-3
8745a8
- Resolves: rhbz#1001297 duplicate documentation files / potentially conflicting
8745a8
8745a8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-2
8745a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8745a8
8745a8
* Thu Jun 27 2013 David Tardon <dtardon@redhat.com> - 0.1.10-1
8745a8
- new release
8745a8
8745a8
* Tue May 14 2013 David Tardon <dtardon@redhat.com> - 0.1.9-1
8745a8
- new release
8745a8
8745a8
* Tue Apr 30 2013 David Tardon <dtardon@redhat.com> - 0.1.8-1
8745a8
- new upstream release
8745a8
8745a8
* Sat Apr 27 2013 David Tardon <dtardon@redhat.com> - 0.1.7-2
8745a8
- minor fixes
8745a8
8745a8
* Tue Mar 19 2013 David Tardon <dtardon@redhat.com> 0.1.7-1
8745a8
- initial import