%define upstream_release beta Name: aranym Version: 0.9.7 Release: 0.1.%{upstream_release}%{?dist} License: GPLv2+ Summary: 32-bit Atari personal computer (Falcon030/TT030) virtual machine URL: http://aranym.org/ Group: Applications/Emulators Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}%{upstream_release}.tar.gz Source1: aranym.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: imake SDL-devel >= 1.2.0 SDL_image-devel libX11-devel zlib-devel Requires: afros %description ARAnyM is a software only TOS clone - a virtual machine that allows you to run TOS/FreeMiNT/MagiC operating systems and TOS/GEM applications. %prep %setup -q -n %{name}-%{version}%{upstream_release} # remove exec bit chmod a-x src/natfeat/*.cpp src/natfeat/*.h %build # JIT only works on i586 # %ifarch %ix86 %configure --enable-jit-compiler --enable-nfjpeg %{__make} depend %{__make} %{?_smp_mflags} %{__mv} aranym aranym-jit %{__make} clean %endif %configure --enable-addressing=direct --enable-fullmmu --enable-lilo --enable-fixed-videoram --enable-nfjpeg %{__make} depend %{__make} %{?_smp_mflags} %{__mv} aranym aranym-mmu %{__make} clean %configure --enable-addressing=direct --enable-nfjpeg %{__make} depend %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_mandir}/man1 mkdir -p %{buildroot}%{_datadir}/aranym make install DESTDIR=%{buildroot} install aranym %{buildroot}%{_bindir} install aranym-mmu %{buildroot}%{_bindir} install aratapif %{buildroot}%{_bindir} # JIT only works on i586 # %ifarch %ix86 install aranym-jit %{buildroot}%{_bindir} %endif desktop-file-install --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ %{SOURCE1} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %doc %attr(4755,root,root) %{_bindir}/aratapif %{_bindir}/aranym %{_bindir}/aranym-mmu # JIT only works on i586 # %ifarch %ix86 %{_bindir}/aranym-jit %endif %{_mandir}/man1/aranym-jit.1* %{_mandir}/man1/aranym.1* %{_mandir}/man1/aranym-mmu.1* %{_mandir}/man1/aratapif.1* %{_datadir}/%{name} %{_docdir}/%{name} %{_datadir}/applications/fedora-%{name}.desktop %changelog * Sat Nov 8 2008 Dan Horak 0.9.7-0.1.beta - update to 0.9.7beta * Wed Oct 22 2008 Dan Horak 0.9.6-0.1.beta2 - update to 0.9.6beta2 * Sat Oct 6 2007 Dan Horak 0.9.5-0.1.beta - initial Fedora version based on upstream