|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
%global apiversion 0.1
|
|
|
|
|
|
|
|
|
|
Name: libmspub
|
|
|
|
|
Version: 0.1.2
|
|
|
|
|
Release: 19%{?dist}
|
|
|
|
|
Version: 0.1.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: A library for import of Microsoft Publisher documents
|
|
|
|
|
|
|
|
|
|
License: MPLv2.0
|
|
|
|
@ -14,6 +14,8 @@ BuildRequires: doxygen
|
|
|
|
|
BuildRequires: help2man
|
|
|
|
|
BuildRequires: pkgconfig(icu-i18n)
|
|
|
|
|
BuildRequires: pkgconfig(librevenge-0.0)
|
|
|
|
|
BuildRequires: pkgconfig(librevenge-generators-0.0)
|
|
|
|
|
BuildRequires: pkgconfig(librevenge-stream-0.0)
|
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -48,23 +50,24 @@ Currently supported: XHTML, raw.
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-static --disable-werror --disable-silent-rules
|
|
|
|
|
%configure --disable-static --disable-silent-rules
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
|
help2man -N -n 'debug the conversion library' -o pub2raw.1 ./src/conv/raw/.libs/pub2raw
|
|
|
|
|
help2man -N -n 'convert Publisher document into SVG' -o pub2xhtml.1 ./src/conv/svg/.libs/pub2xhtml
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
|
|
# rhbz#1001245 we install API docs directly from build
|
|
|
|
|
rm -rf %{buildroot}/%{_docdir}/%{name}
|
|
|
|
|
|
|
|
|
|
# generate and install man pages
|
|
|
|
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
|
for tool in pub2raw pub2xhtml; do
|
|
|
|
|
help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
|
|
|
|
|
done
|
|
|
|
|
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
|
|
install -m 0644 pub2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
|
|
|
|
|
@ -93,6 +96,9 @@ install -m 0644 pub2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
|
%{_mandir}/man1/pub2xhtml.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jan 02 2018 David Tardon <dtardon@redhat.com> - 0.1.3-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 0.1.2-19
|
|
|
|
|
- Rebuild for ICU 60.1
|
|
|
|
|
|
|
|
|
|