File vilistextum.spec of Package vilistextum
Summary: vilistextum - A html to text / ascii converter.
Name: vilistextum
Version: 2.6.9
Release: 1
License: GPLv2
Group: System
Source0: vilistextum-2.6.9.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtool autoconf
%description
%{name} is a html to text / ascii converter specifically programmed to
get the best out of incorrect html.
%prep
%setup -q
%build
./configure --prefix=/usr --mandir=/usr/share/man
myarch=$(/usr/share/libtool/config/config.guess | cut -d - -f 1)
if [ "$myarch" == "i686" -o "$myarch" == "i586" ]; then
mycflags="-O2 -Wall -march=i686"
else
mycflags="-O2 -Wall"
fi
make CFLAGS="$mycflags"
%install
make install DESTDIR=%{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc CHANGES COPYING INSTALL README
%doc %{_mandir}/man1/*
%{_bindir}/*
%doc doc/*.html
%doc src/kilistextum.kaptn
%changelog