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