File sitescooper.spec of Package sitescooper

#
# spec file for package sitescooper (Version 3.1.2)
#
# Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#

# norootforbuild

Name:         sitescooper
BuildRequires: gcc-c++
License:      GPL, Artistic License
Group:        Hardware/Palm
Requires:     perl perl-HTML-Parser 
Autoreqprov:  on
Version:      3.1.2
Release:      422
Source0:      http://sitescooper.org/released/%{name}-%{version}.tar.bz2
Source1:      makedoc7.cpp 
Patch0:       %{name}-%{version}-makefile.patch
Patch1:       %{name}-%{version}-makefile2.patch
URL:          http://sitescooper.org/
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Summary:      Convert websites for reading on a Palm

%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.



Authors:
--------
    Justin Mason <jm@jmason.org>

%package -n sitescooper-makedoc
License:      distributable
Version:      0.7
Release:      501
Group:        Hardware/Palm
Summary:      Prepare text file for PilotDOC reader

%description -n sitescooper-makedoc
Compresses text files into a format that is ready to export to a Pilot
and work with Rick Bram's PilotDOC reader.



%prep
%setup
%patch0
%patch1
cp -v  %{S:1}  makedoc.cpp

%build
%{suse_update_config}
g++  -o makedoc makedoc.cpp  -DUNIX

%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
install -m 755  makedoc $RPM_BUILD_ROOT/usr/bin/

%clean
#rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc	README.txt CHANGES.txt OLD_CHANGES.txt
%doc	doc/*
%config	/etc/sitescooper.cf
/usr/bin/sitescooper
/usr/bin/rss-to-site
/usr/bin/subs-to-site
%doc /usr/share/man/man1/*
/usr/share/sitescooper/site_perl/
/usr/share/sitescooper/lib/
/usr/share/sitescooper/default_templates.html
/usr/share/sitescooper/profile_samples/
/usr/share/sitescooper/site_samples/
%dir /usr/share/sitescooper

%files -n sitescooper-makedoc
%defattr(-,root,root)
/usr/bin/makedoc

%changelog -n sitescooper
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jun 23 2004 - hmacht@suse.de
- building as non-root user
- fixed filepermissions
* Wed Mar 20 2002 - postadal@suse.cz
- added perl-HTML-Parser to Requires
- changed install path /usr/share/lib/sitescooper -> /usr/share/sitescooper in Makefile and added it /usr/share/sitescooper to file list
* Thu Aug 09 2001 - adostal@suse.cz
- update to version 3.1.2
- create makefile patch and fix spec file
* Mon Feb 12 2001 - pblaha@suse.cz
- create this package for get web documents on Palm
openSUSE Build Service is sponsored by