File tofu.spec of Package tofu

Name: tofu
Version: 0.5.1
Release: 1
License: GPL
Group: Application/Multimedia
Source: %{name}-%{version}.tar.gz
Patch0: tofu-0.5.1-buildfix.diff
BuildRequires: libusb-devel
BuildRoot: %{_tmppath}/build-root-%{name}
Packager: Sami Vento <sami.vento@opensuse.fi>
Distribution: openSUSE
Prefix: /usr
Url: http://members.ozemail.com.au/~msteveb/topfield
Summary: Firmware updater for Topfield PVRs

%description
ToFu is a tool to allow the firmware in your PVR to be updated via a USB connection
from a Linux/UNIX system.

%prep
rm -rf $RPM_BUILD_ROOT 
mkdir $RPM_BUILD_ROOT

%setup -q
%patch0 -p1

%build
USE_LIBUSB=1 make

%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
install -c -m 0755 tofu  $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/doc/
install -c -m 0644 README.tofu $RPM_BUILD_ROOT/%{_datadir}/doc/
install -c -m 0644 LICENCE $RPM_BUILD_ROOT/%{_datadir}/doc/



%files
%defattr(-,root,root,0755)
%{_bindir}/tofu
%doc %{_datadir}/doc/LICENCE
%doc %{_datadir}/doc/README.tofu


%changelog
* Mon Jul 23 2008 - Sami Vento <sami.vento@opensuse.fi> 0.5.1
- build fixes
* Sun Jul 16 2007 - Sami Vento <sami.vento@opensuse.fi> 0.5.1
- Initial version.