|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
Name: libwpg
|
|
|
|
|
Version: 0.2.2
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Release: 6%{?dist}
|
|
|
|
|
Summary: Library for reading WordPerfect Graphics images
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
@ -11,6 +11,8 @@ URL: http://libwpg.sourceforge.net/
|
|
|
|
|
Source0: http://download.sourceforge.net/libwpg/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: help2man
|
|
|
|
|
BuildRequires: perl(Getopt::Std)
|
|
|
|
|
BuildRequires: pkgconfig(libwpd-0.9)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -62,12 +64,22 @@ make %{?_smp_mflags} V=1
|
|
|
|
|
sed 's/\r//' -i ChangeLog
|
|
|
|
|
find docs/doxygen/html |xargs touch -r docs/doxygen/doxygen.cfg
|
|
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
|
help2man -N -n 'debug the conversion library' -o wpg2raw.1 ./src/conv/raw/.libs/wpg2raw
|
|
|
|
|
help2man -N -n 'convert WordPerfect Graphics into SVG' -o wpg2svg.1 ./src/conv/svg/.libs/wpg2svg
|
|
|
|
|
help2man -N -n 'batch convert WordPerfect Graphics files into SVG' \
|
|
|
|
|
--help-option=-h --no-discard-stderr \
|
|
|
|
|
-o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
# we install API docs directly from build
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}
|
|
|
|
|
|
|
|
|
|
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
|
|
|
|
install -m 0644 wpg2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
@ -88,8 +100,14 @@ rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}
|
|
|
|
|
%{_bindir}/wpg2raw
|
|
|
|
|
%{_bindir}/wpg2svg
|
|
|
|
|
%{_bindir}/wpg2svgbatch.pl
|
|
|
|
|
%{_mandir}/man1/wpg2raw.1*
|
|
|
|
|
%{_mandir}/man1/wpg2svg.1*
|
|
|
|
|
%{_mandir}/man1/wpg2svgbatch.pl.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.2.2-6
|
|
|
|
|
- generate man pages
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2013 David Tardon <dtardon@redhat.com> - 0.2.2-5
|
|
|
|
|
- bump revision
|
|
|
|
|
|
|
|
|
|