8ec3f0
%global apiversion 0.1
8ec3f0
8ec3f0
Name: libmspub
8ec3f0
Version: 0.1.2
8ec3f0
Release: 1%{?dist}
8ec3f0
Summary: A library for import of Microsoft Publisher documents
8ec3f0
8ec3f0
License: MPLv2.0
8ec3f0
URL: http://wiki.documentfoundation.org/DLP/Libraries/libmspub
8ec3f0
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
8ec3f0
8ec3f0
BuildRequires: boost-devel
8ec3f0
BuildRequires: doxygen
8ec3f0
BuildRequires: help2man
8ec3f0
BuildRequires: pkgconfig(icu-i18n)
8ec3f0
BuildRequires: pkgconfig(librevenge-0.0)
8ec3f0
BuildRequires: pkgconfig(zlib)
8ec3f0
8ec3f0
%description
8ec3f0
Libmspub is library providing ability to interpret and import Microsoft
8ec3f0
Publisher content into various applications. You can find it being used
8ec3f0
in libreoffice.
8ec3f0
8ec3f0
%package devel
8ec3f0
Summary: Development files for %{name}
8ec3f0
Requires: %{name}%{?_isa} = %{version}-%{release}
8ec3f0
8ec3f0
%description devel
8ec3f0
The %{name}-devel package contains libraries and header files for
8ec3f0
developing applications that use %{name}.
8ec3f0
8ec3f0
%package doc
8ec3f0
Summary: Documentation of %{name} API
8ec3f0
BuildArch: noarch
8ec3f0
8ec3f0
%description doc
8ec3f0
The %{name}-doc package contains documentation files for %{name}.
8ec3f0
8ec3f0
%package tools
8ec3f0
Summary: Tools to transform Microsoft Publisher documents into other formats
8ec3f0
Requires: %{name}%{?_isa} = %{version}-%{release}
8ec3f0
8ec3f0
%description tools
8ec3f0
Tools to transform Microsoft Publisher documents into other formats.
8ec3f0
Currently supported: XHTML, raw.
8ec3f0
8ec3f0
%prep
8ec3f0
%setup -q
8ec3f0
8ec3f0
%build
8ec3f0
%configure --disable-static --disable-werror --disable-silent-rules
8ec3f0
sed -i \
8ec3f0
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
8ec3f0
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
8ec3f0
    libtool
8ec3f0
make %{?_smp_mflags}
8ec3f0
8ec3f0
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
8ec3f0
help2man -N -n 'debug the conversion library' -o pub2raw.1 ./src/conv/raw/.libs/pub2raw
8ec3f0
help2man -N -n 'convert Publisher document into SVG' -o pub2xhtml.1 ./src/conv/svg/.libs/pub2xhtml
8ec3f0
8ec3f0
%install
8ec3f0
make install DESTDIR=%{buildroot}
8ec3f0
rm -f %{buildroot}/%{_libdir}/*.la
8ec3f0
# rhbz#1001245 we install API docs directly from build
8ec3f0
rm -rf %{buildroot}/%{_docdir}/%{name}
8ec3f0
8ec3f0
install -m 0755 -d %{buildroot}/%{_mandir}/man1
8ec3f0
install -m 0644 pub2*.1 %{buildroot}/%{_mandir}/man1
8ec3f0
8ec3f0
%post -p /sbin/ldconfig
8ec3f0
%postun -p /sbin/ldconfig
8ec3f0
8ec3f0
%files
8ec3f0
%doc AUTHORS COPYING.*
8ec3f0
%{_libdir}/%{name}-%{apiversion}.so.*
8ec3f0
8ec3f0
%files devel
8ec3f0
%doc ChangeLog
8ec3f0
%{_includedir}/%{name}-%{apiversion}
8ec3f0
%{_libdir}/%{name}-%{apiversion}.so
8ec3f0
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
8ec3f0
8ec3f0
%files doc
8ec3f0
%doc COPYING.*
8ec3f0
%doc docs/doxygen/html
8ec3f0
8ec3f0
%files tools
8ec3f0
%{_bindir}/pub2raw
8ec3f0
%{_bindir}/pub2xhtml
8ec3f0
%{_mandir}/man1/pub2raw.1*
8ec3f0
%{_mandir}/man1/pub2xhtml.1*
8ec3f0
8ec3f0
%changelog
8ec3f0
* Fri Apr 17 2015 David Tardon <dtardon@redhat.com> - 0.1.2-1
8ec3f0
- Resolves: rhbz#1207755 rebase to 0.1.2
8ec3f0
8ec3f0
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.0.6-3
8ec3f0
- Mass rebuild 2014-01-24
8ec3f0
8ec3f0
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.0.6-2
8ec3f0
- Mass rebuild 2013-12-27
8ec3f0
8ec3f0
* Tue May 14 2013 David Tardon <dtardon@redhat.com> - 0.0.6-1
8ec3f0
- new release
8ec3f0
8ec3f0
* Wed Feb 20 2013 David Tardon <dtardon@redhat.com> - 0.0.5-1
8ec3f0
- new release
8ec3f0
8ec3f0
* Wed Jan 30 2013 David Tardon <dtardon@redhat.com> - 0.0.4-1
8ec3f0
- new release
8ec3f0
8ec3f0
* Fri Aug 24 2012 David Tardon <dtardon@redhat.com> - 0.0.3-1
8ec3f0
- new release
8ec3f0
8ec3f0
* Fri Jul 27 2012 David Tardon <dtardon@redhat.com> - 0.0.2-3
8ec3f0
- rebuilt for boost 1.50
8ec3f0
8ec3f0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-2
8ec3f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8ec3f0
8ec3f0
* Mon Jul 16 2012 David Tardon <dtardon@redhat.com> - 0.0.2-1
8ec3f0
- Resolves: rhbz#840445 new release
8ec3f0
8ec3f0
* Thu Jul 12 2012 David Tardon <dtardon@redhat.com> 0.0.1-1
8ec3f0
- new release
8ec3f0
8ec3f0
* Thu Jun 07 2012 David Tardon <dtardon@redhat.com> 0.0.0-1
8ec3f0
- initial import