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