Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > by-pkgid > 389258fc443ad5c2ea1900ba6a26820f > files > 2

ucon64-2.0.0-4plf2007.0.src.rpm

%define name ucon64
%define version 2.0.0
#define subversion 4
#define release	4.3plf
%define distsuffix plf
%define release %mkrel 4

Summary: Console ROM backup tool
Name: %{name}
Version: %{version}
Release: %{release}
Group: Emulators
License: GPL
URL: http://ucon64.sf.net/
#Source0: http://prdownloads.sourceforge.net/ucon64/%{name}-%{version}-%{subversion}-src.tar.bz2
Source0: http://prdownloads.sourceforge.net/ucon64/%{name}-%{version}-src.tar.bz2
Source1: http://prdownloads.sourceforge.net/ucon64/uf-FOX-1.0-src.tar.bz2
BuildRequires: libusb-devel
BuildRoot: %{_tmppath}/%{name}-root

%package -n %{name}-gui
Summary: GUI for Ucon64, a console ROM backup tool
Group: Emulators
BuildRequires: fox1.4-devel
Requires: %{name}

%description
uCON64 is a console ROM backup tool.

This package is in PLF because of Mandriva policy regarding emulators and 
related tools.

%description -n %{name}-gui
GUI for Ucon64, a console ROM backup tool

This package is in PLF because of Mandriva policy regarding emulators and
related tools.

%prep
#setup -q -n %{name}-%{version}-%{subversion}-src
%setup -q -n %{name}-%{version}-src -a 1

#no configure script for the gui :(
perl -pi -e "s/local\///g" uf-FOX-1.0-src/Makefile
LIBFOX_VERSION=$(perl -e "\$_=\"$(rpm -q --whatprovides libfox-devel)\"; if ( /libfox(.*)-devel/ ) { print \"\$1\";}")
perl -pi -e "s/1\.3/$LIBFOX_VERSION/g" uf-FOX-1.0-src/Makefile

%build
cd src

%configure --enable-libcd64 --with-libusb --enable-ppdev

%make

pushd ../uf-FOX-1.0-src
make
popd

%install
rm -rf %{buildroot}
# don't use %%makeinstall here
install -d $RPM_BUILD_ROOT%{_bindir}
install -m 755 src/%{name} $RPM_BUILD_ROOT%{_bindir}

#install gui
install -m 755 uf-FOX-1.0-src/uf $RPM_BUILD_ROOT%{_bindir}
chmod 644 uf-FOX-1.0-src/README.txt
#note : add a icon & menu entry

%files
%defattr(-,root,root)
%doc FILE_ID.DIZ VERSION *.html
%{_bindir}/ucon64

%files -n %{name}-gui
%defattr(-,root,root)
%doc uf-FOX-1.0-src/README.txt uf-FOX-1.0-src/gpl.txt
%{_bindir}/uf

%clean
rm -rf %{buildroot}

%changelog
* Fri Jul 21 2006 Guillaume Bedot <littletux@zarb.org> 2.0.0-4plf2007.0
- %%mkrel, plf reason update, space instead of tabs, clean install

* Wed Jun 22 2005 Guillaume Bedot <littletux@zarb.org> 2.0.0-3plf
- buildrequire fox1.4 libusb
- enable ppdev, libcd64 and libusb
- and don't forget to upload the binaries too...

* Sun Apr 03 2005 Guillaume Bedot <littletux@zarb.org> 2.0.0-2plf
- rebuilt for fox 1.4 (LE 2005).

* Fri Jan 21 2005 Guillaume Bedot <littletux@zarb.org> 2.0.0-1plf
- New release, added gui package.

* Mon Apr 26 2004 Guillaume Bedot <littletux@zarb.org> 1.9.8-4.3plf
- corrected too long description line

* Mon Apr 26 2004 Guillaume Bedot <littletux@zarb.org> 1.9.8-4.2plf
- added reason for plf

* Mon Apr 26 2004 Guillaume Bedot <littletux@zarb.org> 1.9.8-4.1plf
- update to 1.9.8-4 - removed flags which prenveted to compile

* Sun Oct 13 2002 David Walluck <david@anti-microsoft.org> 1.9.8-0.5.2plf
- what is it with the strange permissions on the source tarball all the
  time?

* Sun Oct 13 2002 David Walluck <david@anti-microsoft.org> 1.9.8-0.5.1plf
- new release
- build now uses autoconf
- fix previous changelog entry version

* Thu Apr 25 2002 David Walluck <david@anti-microsoft.org> 1.9.7-2plf 
- cleanup

* Wed Apr 24 2002 David Walluck <david@anti-microsoft.org> 1.9.7-1plf
- release