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