rpm spec file

Paul F. Johnson paul at all-the-johnsons.co.uk
Wed Nov 14 13:45:09 UTC 2007


Hi,

> %define version 1.22
> %define rel     1
> %define prefix /usr/

None of these are required

> Summary: VICE, the Versatile Commodore Emulator
> Name: vice
> Version: %version

Version 1.22

> Release: %rel

Release 1?{%dist}

> License: GPL
> Group: X11/Applications/Emulators

Please remember that for emulators, you cannot redistribute the ROMS

> %build
> CFLAGS="$RPM_OPT_FLAGS -DNO_REGPARM" ./configure --prefix=%{prefix}
> --enable-gnomeui make

Unless there is something seriously up with the configure script, prefix
should not be needed
 
> %install
> rm -rf $RPM_BUILD_ROOT
> mkdir -p $RPM_BUILD_ROOT%{prefix}

You don't usually need this

%make DESTDIR=$RPM_BUILD_ROOT install

does the trick

> 
> %clean
> rm -rf $RPM_BUILD_ROOT
> 
> %files
> 
> %doc AUTHORS FEEDBACK INSTALL README
> 
> %{prefix}/bin/x64
%{_bindir}/x64

> %{prefix}/lib/vice/

Bad idea - what happens if you're not on x86?

%{_libdir}/vice/

> %{prefix}/man/man1/*

%{_mandir}/man1/

> %{prefix}/include/resid/*

%{_includedir}/resid/*

--
Get your free @ukpost.com account now
http://www.ukpost.com/




More information about the fedora-list mailing list