You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libmwaw/libmwaw.spec

156 lines
4.9 KiB

11 years ago
%global apiversion 0.2
12 years ago
Name: libmwaw
11 years ago
Version: 0.2.0
Release: 5%{?dist}
11 years ago
Summary: An import library for many old mac document formats
12 years ago
Group: System Environment/Libraries
License: LGPLv2+ or MPLv2.0
12 years ago
URL: http://sourceforge.net/projects/libmwaw/
12 years ago
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
12 years ago
BuildRequires: boost-devel
12 years ago
BuildRequires: doxygen
BuildRequires: help2man
BuildRequires: pkgconfig(libwpd-0.9)
BuildRequires: pkgconfig(libwpg-0.2)
12 years ago
Patch0: 0001-std-isfinite-is-C-11.patch
Patch1: 0002-use-correct-type.patch
Patch2: 0003-Correct-some-cppcheck-errors-change-code-to-avoid-ca.patch
Patch3: 0004-avoid-leak.patch
Patch4: 0005-ClarisWorks-parser-try-to-reconstruct-compressed-bit.patch
Patch5: 0006-ClarisWorks-parser-use-the-page-size-to-define-the-b.patch
Patch6: 0007-MacWrite-MacWrite-II-parser-try-to-accept-more-files.patch
Patch7: 0008-Correct-a-potential-out-of-bounds-problem.patch
12 years ago
%description
11 years ago
libmwaw contains import filters for many old mac documents, mostly text
formats like ClarisWorks, MacWrite or MS Word for Mac, but it has a
limited support for vector drawings and spreadsheets as well (limited in
the sense that it treats them as text documents). Full list of supported
formats is available at https://sourceforge.net/p/libmwaw/wiki/Home/ .
12 years ago
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package doc
Summary: Documentation of %{name} API
Group: Documentation
BuildArch: noarch
%description doc
The %{name}-doc package contains documentation files for %{name}.
%package tools
Summary: Tools to transform the supported formats into other formats
Group: Applications/Publishing
Requires: %{name}%{?_isa} = %{version}-%{release}
%description tools
Tools to transform the supported document formats into other formats.
11 years ago
Supported output formats are CSV, XHTML, text and raw.
12 years ago
%prep
%autosetup -p1
12 years ago
%build
%configure --disable-static --disable-werror --disable-zip --enable-docs
12 years ago
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
libtool
make %{?_smp_mflags} V=1
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
help2man -N -n 'convert Mac spreadsheet into CSV' -o mwaw2csv.1 ./src/conv/csv/.libs/mwaw2csv
help2man -N -n 'debug the conversion library' -o mwaw2raw.1 ./src/conv/raw/.libs/mwaw2raw
help2man -N -n 'convert Mac text document into HTML' -o mwaw2html.1 ./src/conv/html/.libs/mwaw2html
help2man -N -n 'convert Mac text document into plain text' -o mwaw2text.1 ./src/conv/text/.libs/mwaw2text
12 years ago
%install
make install DESTDIR=%{buildroot}
rm -f %{buildroot}/%{_libdir}/*.la
# it seems this tool is only useful on MacOS
rm -f %{buildroot}/%{_bindir}/mwawFile
# rhbz#1001297 we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}
12 years ago
install -m 0755 -d %{buildroot}/%{_mandir}/man1
install -m 0644 mwaw2*.1 %{buildroot}/%{_mandir}/man1
12 years ago
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc CHANGES COPYING.* README
%{_libdir}/%{name}-%{apiversion}.so.*
%files devel
11 years ago
%doc HACKING
12 years ago
%{_includedir}/%{name}-%{apiversion}
%{_libdir}/%{name}-%{apiversion}.so
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
%files doc
%doc COPYING.*
%doc docs/doxygen/html
12 years ago
%files tools
11 years ago
%{_bindir}/mwaw2csv
12 years ago
%{_bindir}/mwaw2html
%{_bindir}/mwaw2raw
%{_bindir}/mwaw2text
%{_mandir}/man1/mwaw2csv.1*
%{_mandir}/man1/mwaw2html.1*
%{_mandir}/man1/mwaw2raw.1*
%{_mandir}/man1/mwaw2text.1*
12 years ago
%changelog
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.2.0-5
- rebuild for boost 1.55.0
* Thu Apr 24 2014 David Tardon <dtardon@redhat.com> - 0.2.0-4
- avoid out-of-bounds access
- ... and other fixes from upstream 0.2 branch
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.2.0-3
- generate man pages
* Wed Jan 22 2014 David Tardon <dtardon@redhat.com> - 0.2.0-2
- update licenses to current (simpler) state
11 years ago
* Sat Nov 02 2013 David Tardon <dtardon@redhat.com> - 0.2.0-1
- new release
* Mon Sep 09 2013 David Tardon <dtardon@redhat.com> - 0.1.11-1
- new upstream release
* Fri Aug 30 2013 David Tardon <dtardon@redhat.com> - 0.1.10-3
- Resolves: rhbz#1001297 duplicate documentation files / potentially conflicting
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
12 years ago
* Thu Jun 27 2013 David Tardon <dtardon@redhat.com> - 0.1.10-1
- new release
12 years ago
* Tue May 14 2013 David Tardon <dtardon@redhat.com> - 0.1.9-1
- new release
* Tue Apr 30 2013 David Tardon <dtardon@redhat.com> - 0.1.8-1
- new upstream release
12 years ago
* Sat Apr 27 2013 David Tardon <dtardon@redhat.com> - 0.1.7-2
- minor fixes
* Tue Mar 19 2013 David Tardon <dtardon@redhat.com> 0.1.7-1
- initial import