be037e
%global apiversion 0.1
be037e
be037e
Name: libmspub
be037e
Version: 0.1.4
be037e
Release: 17%{?dist}
be037e
Summary: A library for import of Microsoft Publisher documents
be037e
be037e
License: MPLv2.0
be037e
URL: http://wiki.documentfoundation.org/DLP/Libraries/libmspub
be037e
Source: http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
be037e
be037e
Patch0: gcc10.patch
be037e
be037e
BuildRequires: boost-devel
be037e
BuildRequires: doxygen
be037e
BuildRequires: gcc-c++
be037e
BuildRequires: help2man
be037e
BuildRequires: pkgconfig(icu-i18n)
be037e
BuildRequires: pkgconfig(librevenge-0.0)
be037e
BuildRequires: pkgconfig(librevenge-generators-0.0)
be037e
BuildRequires: pkgconfig(librevenge-stream-0.0)
be037e
BuildRequires: pkgconfig(zlib)
be037e
BuildRequires: make
be037e
be037e
%description
be037e
Libmspub is library providing ability to interpret and import Microsoft
be037e
Publisher content into various applications. You can find it being used
be037e
in libreoffice.
be037e
be037e
%package devel
be037e
Summary: Development files for %{name}
be037e
Requires: %{name}%{?_isa} = %{version}-%{release}
be037e
be037e
%description devel
be037e
The %{name}-devel package contains libraries and header files for
be037e
developing applications that use %{name}.
be037e
be037e
%package doc
be037e
Summary: Documentation of %{name} API
be037e
BuildArch: noarch
be037e
be037e
%description doc
be037e
The %{name}-doc package contains documentation files for %{name}.
be037e
be037e
%package tools
be037e
Summary: Tools to transform Microsoft Publisher documents into other formats
be037e
Requires: %{name}%{?_isa} = %{version}-%{release}
be037e
be037e
%description tools
be037e
Tools to transform Microsoft Publisher documents into other formats.
be037e
Currently supported: XHTML, raw.
be037e
be037e
%prep
be037e
%autosetup -p1
be037e
be037e
%build
be037e
%configure --disable-static --disable-silent-rules
be037e
sed -i \
be037e
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
be037e
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
be037e
    libtool
be037e
%make_build
be037e
be037e
%install
be037e
%make_install
be037e
rm -f %{buildroot}/%{_libdir}/*.la
be037e
# rhbz#1001245 we install API docs directly from build
be037e
rm -rf %{buildroot}/%{_docdir}/%{name}
be037e
be037e
# generate and install man pages
be037e
 export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
be037e
 for tool in pub2raw pub2xhtml; do
be037e
     help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
be037e
 done
be037e
install -m 0755 -d %{buildroot}/%{_mandir}/man1
be037e
install -m 0644 pub2*.1 %{buildroot}/%{_mandir}/man1
be037e
be037e
%ldconfig_scriptlets
be037e
be037e
%files
be037e
%doc AUTHORS NEWS README
be037e
%license COPYING.MPL
be037e
%{_libdir}/%{name}-%{apiversion}.so.*
be037e
be037e
%files devel
be037e
%doc ChangeLog
be037e
%{_includedir}/%{name}-%{apiversion}
be037e
%{_libdir}/%{name}-%{apiversion}.so
be037e
%{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
be037e
be037e
%files doc
be037e
%license COPYING.MPL
be037e
%doc docs/doxygen/html
be037e
be037e
%files tools
be037e
%{_bindir}/pub2raw
be037e
%{_bindir}/pub2xhtml
be037e
%{_mandir}/man1/pub2raw.1*
be037e
%{_mandir}/man1/pub2xhtml.1*
be037e
be037e
%changelog
be037e
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.1.4-17
be037e
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
be037e
  Related: rhbz#1991688
be037e
be037e
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.1.4-16
be037e
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
be037e
be037e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-15
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
be037e
be037e
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-14
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
be037e
be037e
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 0.1.4-13
be037e
- Use make macros
be037e
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
be037e
be037e
* Sat May 16 2020 Pete Walter <pwalter@fedoraproject.org> - 0.1.4-12
be037e
- Rebuild for ICU 67
be037e
be037e
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-11
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
be037e
be037e
* Sat Dec 14 2019 Jeff Law <law@redhat.com> - 0.1.4-10
be037e
- Fix missing #include for gcc-10
be037e
be037e
* Fri Nov 01 2019 Pete Walter <pwalter@fedoraproject.org> - 0.1.4-9
be037e
- Rebuild for ICU 65
be037e
be037e
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-8
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
be037e
be037e
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-7
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
be037e
be037e
* Fri Jan 25 2019 Jonathan Wakely <jwakely@redhat.com> - 0.1.4-6
be037e
- Rebuilt for Boost 1.69
be037e
be037e
* Wed Jan 23 2019 Pete Walter <pwalter@fedoraproject.org> - 0.1.4-5
be037e
- Rebuild for ICU 63
be037e
be037e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-4
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
be037e
be037e
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 0.1.4-3
be037e
- Rebuild for ICU 62
be037e
be037e
* Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 0.1.4-2
be037e
- Rebuild for ICU 61.1
be037e
be037e
* Wed Feb 28 2018 David Tardon <dtardon@redhat.com> - 0.1.4-1
be037e
- new upstream release
be037e
be037e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-3
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
be037e
be037e
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 0.1.3-2
be037e
- Rebuilt for Boost 1.66
be037e
be037e
* Tue Jan 02 2018 David Tardon <dtardon@redhat.com> - 0.1.3-1
be037e
- new upstream release
be037e
be037e
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 0.1.2-19
be037e
- Rebuild for ICU 60.1
be037e
be037e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-18
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
be037e
be037e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-17
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
be037e
be037e
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 0.1.2-16
be037e
- Rebuilt for Boost 1.64
be037e
be037e
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-15
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
be037e
be037e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-14
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
be037e
be037e
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.1.2-13
be037e
- Rebuilt for Boost 1.63
be037e
be037e
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 0.1.2-12
be037e
- Rebuilt for Boost 1.63
be037e
be037e
* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 0.1.2-11
be037e
- rebuild for ICU 57.1
be037e
be037e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.2-10
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
be037e
be037e
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 0.1.2-9
be037e
- Rebuilt for Boost 1.60
be037e
be037e
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 0.1.2-8
be037e
- rebuild for ICU 56.1
be037e
be037e
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 0.1.2-7
be037e
- Rebuilt for Boost 1.59
be037e
be037e
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-6
be037e
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
be037e
be037e
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 0.1.2-5
be037e
- rebuild for Boost 1.58
be037e
be037e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-4
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
be037e
be037e
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.1.2-3
be037e
- Rebuilt for GCC 5 C++11 ABI change
be037e
be037e
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 0.1.2-2
be037e
- Rebuild for boost 1.57.0
be037e
be037e
* Tue Dec 30 2014 David Tardon <dtardon@redhat.com> - 0.1.2-1
be037e
- new upstream release
be037e
be037e
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 0.1.1-3
be037e
- rebuild for ICU 53.1
be037e
be037e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-2
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
be037e
be037e
* Tue Jul 01 2014 David Tardon <dtardon@redhat.com> - 0.1.0-1
be037e
- new upstream release
be037e
be037e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.0-2
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
be037e
be037e
* Mon May 26 2014 David Tardon <dtardon@redhat.com> - 0.1.0-1
be037e
- new upstream release
be037e
be037e
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.0.6-7
be037e
- Rebuild for boost 1.55.0
be037e
be037e
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.0.6-6
be037e
- generate man pages
be037e
be037e
* Thu Feb 13 2014 David Tardon <dtardon@redhat.com> - 0.0.6-5
be037e
- rebuild for new ICU
be037e
be037e
* Fri Aug 30 2013 David Tardon <dtardon@redhat.com> - 0.0.6-4
be037e
- Resolves: rhbz#1001245 duplicate documentation files / potentially conflicting
be037e
be037e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.6-3
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
be037e
be037e
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 0.0.6-2
be037e
- Rebuild for boost 1.54.0
be037e
be037e
* Tue May 14 2013 David Tardon <dtardon@redhat.com> - 0.0.6-1
be037e
- new release
be037e
be037e
* Wed Feb 20 2013 David Tardon <dtardon@redhat.com> - 0.0.5-1
be037e
- new release
be037e
be037e
* Wed Jan 30 2013 David Tardon <dtardon@redhat.com> - 0.0.4-1
be037e
- new release
be037e
be037e
* Fri Aug 24 2012 David Tardon <dtardon@redhat.com> - 0.0.3-1
be037e
- new release
be037e
be037e
* Fri Jul 27 2012 David Tardon <dtardon@redhat.com> - 0.0.2-3
be037e
- rebuilt for boost 1.50
be037e
be037e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.2-2
be037e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
be037e
be037e
* Mon Jul 16 2012 David Tardon <dtardon@redhat.com> - 0.0.2-1
be037e
- Resolves: rhbz#840445 new release
be037e
be037e
* Thu Jul 12 2012 David Tardon <dtardon@redhat.com> 0.0.1-1
be037e
- new release
be037e
be037e
* Thu Jun 07 2012 David Tardon <dtardon@redhat.com> 0.0.0-1
be037e
- initial import