BuildRequires: libtool
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
%description
XmHTML provides a widget capable of displaying HTML 3.2 conforming
text.
# Argh! automake stuff outdated, imake stuff outdated even more,
# makefiles not outdated but don't support shared libraries :/
# Use automake with some patches/workarounds/etc
-(cd lib
+cd lib
mv -f common/*.c .
mv -f Motif/*.c .
-)
+cd ..
rm -f missing
%{__libtoolize}
CFLAGS="%{rpmcflags} \
-I`pwd`/include/XmHTML -I`pwd`/include/common \
%{!?debug:-DNDEBUG -Dproduction} -DVERSION=1107"
-%configure PNGINC="`pkg-config --cflags libpng12 2>/dev/null`"
+%configure \
+ PNGINC="`pkg-config --cflags libpng12 2>/dev/null`"
cd lib
%{__make}
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_includedir}/XmHTML
-%{__make} install -C lib DESTDIR=$RPM_BUILD_ROOT
+%{__make} install -C lib \
+ DESTDIR=$RPM_BUILD_ROOT
install include/XmHTML/{Balloon,HTML,HTMLStrings,XCC,XmHTML}.h \
include/common/LZWStream.h \