4586de4
%global apiversion 0.1
c3b8e03
c3b8e03
Name: libabw
abcedb6
Version: 0.1.1
8a6526c
Release: 4%{?dist}
c3b8e03
Summary: A library for import of AbiWord files
c3b8e03
c3b8e03
License: MPLv2.0
df25d58
URL: https://wiki.documentfoundation.org/DLP/Libraries/libabw
df25d58
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
c3b8e03
c3b8e03
BuildRequires: boost-devel
c3b8e03
BuildRequires: doxygen
c3b8e03
BuildRequires: gperf
e431ffb
BuildRequires: help2man
4586de4
BuildRequires: pkgconfig(librevenge-0.0)
35b19fb
BuildRequires: pkgconfig(libxml-2.0)
c3b8e03
8a6526c
Patch0: 0001-coverity-1259904-dereference-before-null-check.patch
8a6526c
Patch1: 0001-coverity-1259905-do-not-let-AbiDocument-parse-throw.patch
8a6526c
c3b8e03
%description
c3b8e03
%{name} is a library for import of AbiWord files.
c3b8e03
c3b8e03
%package devel
c3b8e03
Summary: Development files for %{name}
c3b8e03
Requires: %{name}%{?_isa} = %{version}-%{release}
c3b8e03
c3b8e03
%description devel
c3b8e03
The %{name}-devel package contains libraries and header files for
c3b8e03
developing applications that use %{name}.
c3b8e03
c3b8e03
%package doc
c3b8e03
Summary: Documentation of %{name} API
c3b8e03
BuildArch: noarch
c3b8e03
c3b8e03
%description doc
c3b8e03
The %{name}-doc package contains documentation files for %{name}.
c3b8e03
c3b8e03
%package tools
c3b8e03
Summary: Tools to transform AbiWord files into other formats
c3b8e03
Requires: %{name}%{?_isa} = %{version}-%{release}
c3b8e03
c3b8e03
%description tools
c3b8e03
Tools to transform AbiWord files into other formats. Currently
c3b8e03
supported: XHTML, raw, text.
c3b8e03
c3b8e03
%prep
8a6526c
%autosetup -p1
c3b8e03
c3b8e03
%build
c3b8e03
%configure --disable-silent-rules --disable-static --disable-werror
c3b8e03
sed -i \
c3b8e03
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
c3b8e03
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
c3b8e03
    libtool
c3b8e03
make %{?_smp_mflags}
c3b8e03
fa27d66
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fa27d66
help2man -N -n 'debug the conversion library' -o abw2raw.1 ./src/conv/raw/.libs/abw2raw
fa27d66
help2man -N -n 'convert AbiWord document into HTML' -o abw2html.1 ./src/conv/html/.libs/abw2html
fa27d66
help2man -N -n 'convert AbiWord document into plain text' -o abw2text.1 ./src/conv/text/.libs/abw2text
e431ffb
c3b8e03
%install
c3b8e03
make install DESTDIR=%{buildroot}
c3b8e03
rm -f %{buildroot}/%{_libdir}/*.la
c3b8e03
# we install API docs directly from build
c3b8e03
rm -rf %{buildroot}/%{_docdir}/%{name}
c3b8e03
e431ffb
mkdir -p %{buildroot}/%{_mandir}/man1
e431ffb
install -m 0644 abw2*.1 %{buildroot}/%{_mandir}/man1
e431ffb
c3b8e03
%post -p /sbin/ldconfig
c3b8e03
c3b8e03
%postun -p /sbin/ldconfig
c3b8e03
c3b8e03
%files
c3b8e03
%doc CREDITS COPYING.MPL README
c3b8e03
%{_libdir}/%{name}-%{apiversion}.so.*
c3b8e03
c3b8e03
%files devel
c3b8e03
%doc ChangeLog
c3b8e03
%{_includedir}/%{name}-%{apiversion}
c3b8e03
%{_libdir}/%{name}-%{apiversion}.so
c3b8e03
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
c3b8e03
c3b8e03
%files doc
c3b8e03
%doc COPYING.MPL
c3b8e03
%doc docs/doxygen/html
c3b8e03
c3b8e03
%files tools
c3b8e03
%{_bindir}/abw2raw
c3b8e03
%{_bindir}/abw2text
c3b8e03
%{_bindir}/abw2html
e431ffb
%{_mandir}/man1/abw2raw.1*
e431ffb
%{_mandir}/man1/abw2text.1*
e431ffb
%{_mandir}/man1/abw2html.1*
c3b8e03
c3b8e03
%changelog
8a6526c
* Mon May 04 2015 David Tardon <dtardon@redhat.com> - 0.1.1-4
8a6526c
- fix two potential crashes
8a6526c
e71f9df
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.1.1-3
e71f9df
- Rebuilt for GCC 5 C++11 ABI change
e71f9df
Petr Machata 2610ac0
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 0.1.1-2
Petr Machata 2610ac0
- Rebuild for boost 1.57.0
Petr Machata 2610ac0
abcedb6
* Sat Dec 20 2014 David Tardon <dtardon@redhat.com> - 0.1.1-1
abcedb6
- new upstream release
abcedb6
f9a5747
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-3
f9a5747
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f9a5747
0a60d4c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
0a60d4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0a60d4c
4586de4
* Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.1.0-1
4586de4
- new upstream release
4586de4
Petr Machata 382f8d0
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 0.0.2-2
Petr Machata 382f8d0
- Rebuild for boost 1.55.0
Petr Machata 382f8d0
a7bb386
* Mon Feb 10 2014 David Tardon <dtardon@redhat.com> - 0.0.2-1
a7bb386
- new upstream release 0.0.2
e431ffb
- generate man pages for the tools
a7bb386
c3b8e03
* Wed Jan 15 2014 David Tardon <dtardon@redhat.com> - 0.0.1-1
c3b8e03
- new upstream release
c3b8e03
c3b8e03
* Mon Jan 13 2014 David Tardon <dtardon@redhat.com> - 0.0.0-1
c3b8e03
- initial import