File icetea.spec of Package icetea
Name: icetea
License: GPL
Group: unsorted
Autoreqprov: on
Version: 1.3
Release: 0
Summary: Converts PSX games for PSP
Source: %name-20071121.tar.bz2
Source1: icetea1.3_win.zip
Patch: %name.patch
BuildRequires: wxGTK-compat wxGTK-devel gcc-c++ unzip unixODBC-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GUI application converting PlayStation One games to a format
playable on the PlayStation Portable. Requires custom firmware
(3.03 OE-C or better).
%prep
%setup -a 1 -n %name
cd beta
%patch
%build
cd beta
g++ -o %name $RPM_OPT_FLAGS `wx-config --cflags --unicode=no` *.cpp \
`wx-config --libs core,base,richtext --unicode=no`
%install
install -d -m 755 $RPM_BUILD_ROOT/usr/share/%name
install -m 644 icetea1.3_win/*.db $RPM_BUILD_ROOT/usr/share/%name/
install -D -m 755 beta/%name $RPM_BUILD_ROOT/usr/bin/%name
%files
%defattr(-,root,root)
%doc icetea1.3_win/*.txt
/usr/bin/%name
/usr/share/%name