###
### RPM spec file for FreeGuide
### 
### Adapted from jEdit's spec file http://www.jedit.org
###

### To create the RPM from CVS, cd to src/install/linux and run:
### ./buildrpm
###
### This will place the built RPMs into installers/

### You will need to have ant installed
### for this to work.

Summary: A TV Guide
Name: FreeGuide
Version: 0.8.6
Release: 1
# REMINDER: bump this with each RPM
Copyright: GPL
Group: Accessories/
Source0: FreeGuide-0.8.6.tar.gz
URL: http://freeguide-tv.sourceforge.net/
Vendor: Andy Balaam <axis3x3@users.sourceforge.net>
Packager: Andy Balaam <axis3x3@users.sourceforge.net>
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
FreeGuide is a TV guide program. It uses parser programs to extract TV
information from web pages and stores them for viewing without the need to
connect to the Internet. The viewer allows the user to view television listings
and create customised TV guides by selecting programmes and by building up a
favourites list.

It works with listings for Canada, Denmark, Finland, France, Germany, Hungary, Italy, Japan (Linux only), the Netherlands, Norway, Portugal, Romania, Spain, Sweden, the UK and the US.

FreeGuide requires a recent version of XMLTV and Java 2 version 1.4.

%prep
%setup

%build
ant FreeGuide-Linux-NoXMLTV

%install
ant -Dinstall_share_dir=$RPM_BUILD_ROOT/%{_datadir} -Dinstall_bin_dir=$RPM_BUILD_ROOT/%{_bindir} -Dinstall_doc_dir=$RPM_BUILD_ROOT/%{_datadir}/doc/freeguide -Dinstall_real_doc_dir=%{_datadir}/doc/freeguide install-Linux-NoXMLTV-files

%clean
ant clean

%files
%{_bindir}/freeguide
%{_datadir}/freeguide/FreeGuide.jar
%{_datadir}/pixmaps/freeguide.png
%{_datadir}/pixmaps/freeguide/logo-16x16.png
%{_datadir}/pixmaps/freeguide/logo-32x32.png
%{_datadir}/pixmaps/freeguide/logo-48x48.png
%{_datadir}/pixmaps/freeguide/logo-64x64.png
%{_datadir}/pixmaps/freeguide/logo-72x72.png
%{_datadir}/pixmaps/freeguide/logo-96x96.png
%{_datadir}/applications/freeguide.desktop
%{_datadir}/man/man1/freeguide.1.gz
%{_datadir}/doc/freeguide/contributors.html
%{_datadir}/doc/freeguide/COPYING
%{_datadir}/doc/freeguide/design.html
%{_datadir}/doc/freeguide/developers.html
%{_datadir}/doc/freeguide/developers-compiling.html
%{_datadir}/doc/freeguide/developers-cvs.html
%{_datadir}/doc/freeguide/developers-translating.html
%{_datadir}/doc/freeguide/FAQ.html
%{_datadir}/doc/freeguide/FreeGuide-0_7-Linux-MetalLookAndFeel.png
%{_datadir}/doc/freeguide/index.html
%{_datadir}/doc/freeguide/INSTALL-linux-noxmltv.html
%{_datadir}/doc/freeguide/LookAndFeel.html
%{_datadir}/doc/freeguide/README.html
%{_datadir}/doc/freeguide/stylesheet.css
%{_datadir}/doc/freeguide/timezone.html
%{_datadir}/doc/freeguide/TODO
%{_datadir}/doc/freeguide/userguide.html

