|
|
|
@ -58,17 +58,17 @@ sed -i \
|
|
|
|
|
libtool
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
|
for tool in raw/cdr2raw raw/cmx2raw svg/cdr2xhtml svg/cmx2xhtml text/cdr2text text/cmx2text; do
|
|
|
|
|
help2man -N -o `basename $tool`.1 ./src/conv/$tool
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
rm -f %{buildroot}/%{_libdir}/*.la
|
|
|
|
|
# rhbz#1001251 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 cdr2raw cmx2raw cdr2xhtml cmx2xhtml cdr2text cmx2text; do
|
|
|
|
|
help2man -N -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
|
|
|
|
|
done
|
|
|
|
|
mkdir -p %{buildroot}/%{_mandir}/man1
|
|
|
|
|
install -m 0644 cdr2*.1 cmx2*.1 %{buildroot}/%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|