f351c1
%global apiversion 0.3
f351c1
f351c1
Name: libmwaw
f351c1
Version: 0.3.14
f351c1
Release: 1%{?dist}
f351c1
Summary: A library for import of many old Mac document formats
f351c1
f351c1
License: LGPLv2+ or MPLv2.0
f351c1
URL: http://sourceforge.net/projects/libmwaw/
f351c1
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
f351c1
f351c1
BuildRequires: doxygen
f351c1
BuildRequires: gcc-c++
f351c1
BuildRequires: help2man
f351c1
BuildRequires: pkgconfig(librevenge-0.0)
f351c1
BuildRequires: pkgconfig(librevenge-generators-0.0)
f351c1
BuildRequires: pkgconfig(librevenge-stream-0.0)
f351c1
f351c1
%description
f351c1
%{name} is a library for import of old Mac documents. It supports many
f351c1
kinds of text documents, spreadsheets, databases, vector and bitmap
f351c1
images. Supported are, for example, documents created by BeagleWorks,
f351c1
ClarisWorks, MacPaint, MacWrite or Microsoft Word for Mac. A full list
f351c1
of supported formats is available at
f351c1
https://sourceforge.net/p/libmwaw/wiki/Home/ .
f351c1
f351c1
%package devel
f351c1
Summary: Development files for %{name}
f351c1
Requires: %{name}%{?_isa} = %{version}-%{release}
f351c1
f351c1
%description devel
f351c1
The %{name}-devel package contains libraries and header files for
f351c1
developing applications that use %{name}.
f351c1
f351c1
%package doc
f351c1
Summary: Documentation of %{name} API
f351c1
BuildArch: noarch
f351c1
f351c1
%description doc
f351c1
The %{name}-doc package contains documentation files for %{name}.
f351c1
f351c1
%package tools
f351c1
Summary: Tools to transform the supported formats into other formats
f351c1
Requires: %{name}%{?_isa} = %{version}-%{release}
f351c1
f351c1
%description tools
f351c1
Tools to transform the supported document formats into other formats.
f351c1
Supported output formats are CSV, HTML, SVG, plain text and raw.
f351c1
f351c1
%prep
f351c1
%autosetup -p1
f351c1
f351c1
%build
f351c1
%configure --disable-static --disable-werror --disable-zip --enable-docs --with-sharedptr=c++11
f351c1
sed -i \
f351c1
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
f351c1
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
f351c1
    libtool
f351c1
make %{?_smp_mflags} V=1
f351c1
f351c1
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
f351c1
help2man -N -n 'convert Mac spreadsheet into CSV' -o mwaw2csv.1 ./src/conv/csv/.libs/mwaw2csv
f351c1
help2man -N -n 'debug the conversion library' -o mwaw2raw.1 ./src/conv/raw/.libs/mwaw2raw
f351c1
help2man -N -n 'convert Mac text document into HTML' -o mwaw2html.1 ./src/conv/html/.libs/mwaw2html
f351c1
help2man -N -n 'convert Mac drawing into SVG' -o mwaw2svg.1 ./src/conv/svg/.libs/mwaw2svg
f351c1
help2man -N -n 'convert Mac text document into plain text' -o mwaw2text.1 ./src/conv/text/.libs/mwaw2text
f351c1
f351c1
%install
f351c1
make install DESTDIR=%{buildroot}
f351c1
rm -f %{buildroot}/%{_libdir}/*.la
f351c1
# it seems this tool is only useful on MacOS
f351c1
rm -f %{buildroot}/%{_bindir}/mwawFile
f351c1
# rhbz#1001297 we install API docs directly from build
f351c1
rm -rf %{buildroot}/%{_docdir}/%{name}
f351c1
f351c1
install -m 0755 -d %{buildroot}/%{_mandir}/man1
f351c1
install -m 0644 mwaw2*.1 %{buildroot}/%{_mandir}/man1
f351c1
f351c1
%post -p /sbin/ldconfig
f351c1
%postun -p /sbin/ldconfig
f351c1
f351c1
%files
f351c1
%doc CHANGES README
f351c1
%license COPYING.*
f351c1
%{_libdir}/%{name}-%{apiversion}.so.*
f351c1
f351c1
%files devel
f351c1
%doc HACKING
f351c1
%{_includedir}/%{name}-%{apiversion}
f351c1
%{_libdir}/%{name}-%{apiversion}.so
f351c1
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
f351c1
f351c1
%files doc
f351c1
%license COPYING.*
f351c1
%doc docs/doxygen/html
f351c1
f351c1
%files tools
f351c1
%{_bindir}/mwaw2csv
f351c1
%{_bindir}/mwaw2html
f351c1
%{_bindir}/mwaw2raw
f351c1
%{_bindir}/mwaw2svg
f351c1
%{_bindir}/mwaw2text
f351c1
%{_mandir}/man1/mwaw2csv.1*
f351c1
%{_mandir}/man1/mwaw2html.1*
f351c1
%{_mandir}/man1/mwaw2raw.1*
f351c1
%{_mandir}/man1/mwaw2svg.1*
f351c1
%{_mandir}/man1/mwaw2text.1*
f351c1
f351c1
%changelog
f351c1
* Tue Apr 24 2018 David Tardon <dtardon@redhat.com> - 0.3.14-1
f351c1
- new upstream release
f351c1
f351c1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.13-2
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f351c1
f351c1
* Tue Nov 14 2017 David Tardon <dtardon@redhat.com> - 0.3.13-1
f351c1
- new upstream release
f351c1
f351c1
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.12-3
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f351c1
f351c1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.12-2
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f351c1
f351c1
* Sat Jul 15 2017 David Tardon <dtardon@redhat.com> - 0.3.12-1
f351c1
- new upstream release
f351c1
f351c1
* Thu Jun 15 2017 David Tardon <dtardon@redhat.com> - 0.3.11-3
f351c1
- Resolves: rhbz#1461763 CVE-2017-9433 Out-of-bounds write in the
f351c1
  MsWrd1Parser::readFootnoteCorrespondence function
f351c1
f351c1
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.11-2
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
f351c1
f351c1
* Fri Mar 31 2017 David Tardon <dtardon@redhat.com> - 0.3.11-1
f351c1
- new upstream release
f351c1
f351c1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.10-2
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f351c1
f351c1
* Mon Jan 30 2017 David Tardon <dtardon@redhat.com> - 0.3.10-1
f351c1
- new upstream release
f351c1
f351c1
* Tue Nov 22 2016 David Tardon <dtardon@redhat.com> - 0.3.9-1
f351c1
- new upstream release
f351c1
f351c1
* Thu Jun 16 2016 David Tardon <dtardon@redhat.com> - 0.3.8-1
f351c1
- new upstream release
f351c1
f351c1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-3
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f351c1
f351c1
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.3.7-2
f351c1
- Rebuilt for Boost 1.60
f351c1
f351c1
* Thu Nov 26 2015 David Tardon <dtardon@redhat.com> - 0.3.7-1
f351c1
- new upstream release
f351c1
f351c1
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.3.6-2
f351c1
- Rebuilt for Boost 1.59
f351c1
f351c1
* Mon Aug 24 2015 David Tardon <dtardon@redhat.com> - 0.3.6-1
f351c1
- new upstream release
f351c1
f351c1
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-4
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
f351c1
f351c1
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.3.5-3
f351c1
- rebuild for Boost 1.58
f351c1
f351c1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-2
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f351c1
f351c1
* Sat May 16 2015 David Tardon <dtardon@redhat.com> - 0.3.5-1
f351c1
- new upstream release
f351c1
f351c1
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.3.4-4
f351c1
- Rebuilt for GCC 5 C++11 ABI change
f351c1
f351c1
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.3.4-3
f351c1
- Rebuild for boost 1.57.0
f351c1
f351c1
* Wed Jan 07 2015 David Tardon <dtardon@redhat.com> - 0.3.4-2
f351c1
- Resolves: fdo#88098 ClarisWorks: import empty starting lines/columns
f351c1
f351c1
* Sun Jan 04 2015 David Tardon <dtardon@redhat.com> - 0.3.4-1
f351c1
- new upstream release
f351c1
f351c1
* Tue Oct 14 2014 David Tardon <dtardon@redhat.com> - 0.3.3-1
f351c1
- new upstream release
f351c1
f351c1
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f351c1
f351c1
* Wed Aug 13 2014 David Tardon <dtardon@redhat.com> - 0.3.2-1
f351c1
- new upstream release
f351c1
f351c1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f351c1
f351c1
* Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.3.1-1
f351c1
- new upstream release
f351c1
f351c1
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.2.0-5
f351c1
- rebuild for boost 1.55.0
f351c1
f351c1
* Thu Apr 24 2014 David Tardon <dtardon@redhat.com> - 0.2.0-4
f351c1
- avoid out-of-bounds access
f351c1
- ... and other fixes from upstream 0.2 branch
f351c1
f351c1
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.2.0-3
f351c1
- generate man pages
f351c1
f351c1
* Wed Jan 22 2014 David Tardon <dtardon@redhat.com> - 0.2.0-2
f351c1
- update licenses to current (simpler) state
f351c1
f351c1
* Sat Nov 02 2013 David Tardon <dtardon@redhat.com> - 0.2.0-1
f351c1
- new release
f351c1
f351c1
* Mon Sep 09 2013 David Tardon <dtardon@redhat.com> - 0.1.11-1
f351c1
- new upstream release
f351c1
f351c1
* Fri Aug 30 2013 David Tardon <dtardon@redhat.com> - 0.1.10-3
f351c1
- Resolves: rhbz#1001297 duplicate documentation files / potentially conflicting
f351c1
f351c1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-2
f351c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f351c1
f351c1
* Thu Jun 27 2013 David Tardon <dtardon@redhat.com> - 0.1.10-1
f351c1
- new release
f351c1
f351c1
* Tue May 14 2013 David Tardon <dtardon@redhat.com> - 0.1.9-1
f351c1
- new release
f351c1
f351c1
* Tue Apr 30 2013 David Tardon <dtardon@redhat.com> - 0.1.8-1
f351c1
- new upstream release
f351c1
f351c1
* Sat Apr 27 2013 David Tardon <dtardon@redhat.com> - 0.1.7-2
f351c1
- minor fixes
f351c1
f351c1
* Tue Mar 19 2013 David Tardon <dtardon@redhat.com> 0.1.7-1
f351c1
- initial import