%define ver      2.2.8
%define rel      1
%define prefix   /usr

Name: sitescooper
Summary: Convert websites for reading on a Palm.
Version: %ver
Release: %rel
Copyright: GPL

Group: Applications/Internet
URL: http://sitescooper.cx/

Source: http://sitescooper.cx/released/sitescooper.tar.gz
BuildRoot: /tmp/sitescooper-%{ver}-root
Packager: Justin Mason <jm@jmason.org>

Requires: perl
Prefix: /usr

%description

Sitescooper automatically retrieves the stories from several news websites,
trims off extraneous HTML, and converts them into formats you can read on your
Palm computing device later, on-the-move.  Even if you don't have a Palm
handheld, it's still handy for simple website-to-text conversion. 

Sitescooper requires perl to be installed, along with the LWP set of perl
modules. If you don't have these, you should install the "sitescooper-modules"
RPM as well.

%prep
%setup

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
make PREFIX=$RPM_BUILD_ROOT/usr RAW_PREFIX=/usr ETC=$RPM_BUILD_ROOT/etc install

%clean
[ "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%post

%postun

%files
%defattr(-,root,root)

%{prefix}/bin/sitescooper
%{prefix}/bin/rss-to-site
%{prefix}/bin/subs-to-site
%{prefix}/man/man1/sitescooper.1
%{prefix}/man/man1/rss-to-site.1
%{prefix}/man/man1/subs-to-site.1
%{prefix}/share/sitescooper/*

%config	/etc/sitescooper.cf

%doc	README.txt CHANGES.txt
%doc	doc/*

