1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
|
# generic defines used by all distributions.
#
%define name aranym
%define ver 0.9.6beta2
%define _rel 1
%define copy GPL
%define joy Petr Stehlik <pstehlik@sophics.cz>
%define group Console/Emulators
%define realname aranym-%{ver}
%define src aranym-%{ver}.tar.gz
%define rel %{_rel}
# ensure where RPM thinks the docs should be matches reality
# gets around SUSE using %{_prefix}/share/doc/packages and
# fedora using %{_defaultdocdir}
#
%define _docdir %{_prefix}/share/doc
#
# now for distribution-specific modifications
#
# figure out which distribution we're being built on. choices so far are (open)SUSE, Mandriva and Fedora Core.
#
%define _suse %(if [ -f /etc/SuSE-release ]; then echo 1; else echo 0; fi)
%if %{_suse}
%define _mandriva 0
%define _fedora 0
%else
%define _mandriva %(if [ -f /etc/mandriva-release ]; then echo 1; else echo 0; fi)
%if %{_mandriva}
%define _fedora 0
%else
%define _fedora %(if [ -f /etc/fedora-release ]; then echo 1; else echo 0; fi)
%endif
%endif
# building on a (open)SUSE Linux system so make a release identifier for the (open)SUSE version
#
%if %_suse
%define _suse_version %(grep VERSION /etc/SuSE-release|cut -f3 -d" ")
%define _suse_vernum %(echo "%{_suse_version}"|tr -d '.')
%define rel %{_rel}.suse%{_suse_vernum}
%define _distribution SUSE Linux %{_suse_version}
%define group System/Emulators/Other
%define _icondir %{_datadir}/pixmaps/
# distro name change for SUSE >= 10.2 to openSUSE
%if %suse_version >= 1020
%define _distribution openSUSE %{_suse_version}
%endif
Requires: SDL >= 1.2.0
BuildRequires: SDL-devel >= 1.2.0
BuildRequires: update-desktop-files
%endif
# building on a Mandriva/Mandrake Linux system so use the standard Mandriva release string
#
# this is experimental and untested as yet, but should work.
#
%if %{_mandriva}
%define _mandriva_version %(cat /etc/mandriva-release|cut -f4 -d" ")
%define _distribution Mandriva %{_mandriva_version}
%define rel %{_rel}.mdv
%define group Emulators
#Requires: libSDL >= 1.2.0
#BuildRequires: libSDL-devel >= 1.2.0
%endif
# building on a Fedora Core Linux system. not sure if there's a release string, but create one anyway
#
# this is experimental and untested as yet, but should work.
#
%if %{_fedora}
%define _fedora_version %(cat /etc/fedora-release|cut -f3 -d" ")
%define _distribution Fedora Core %{_fedora_version}
%define rel %{_rel}.fc%{_fedora_version}
%define _icondir %{_datadir}/pixmaps/
BuildRequires: desktop-file-utils
Requires: SDL >= 1.2.0
BuildRequires: SDL-devel >= 1.2.0
%endif
Name: %{name}
Version: %{ver}
Release: %{rel}
License: %{copy}
%{?_distribution:Distribution:%{_distribution}}
Summary: 32-bit Atari personal computer (Falcon030/TT030) virtual machine.
Packager: %{joy}
URL: http://aranym.org/
Group: %{group}
Source0: http://prdownloads.sourceforge.net/aranym/%{src}
BuildRoot: /var/tmp/%{name}-root
#Patch: %{name}-%{version}.patch
%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.
Authors:
Ctirad Fertr, Milan Jurik, Standa Opichal, Petr Stehlik, Johan Klockars,
Didier MEQUIGNON, Patrice Mandin and others (see AUTHORS for a full list).
%prep
%{__rm} -rf %{realname}
[ -d "%{buildroot}" ] && %{__rm} -rf %{buildroot}
%setup -q -n %{realname}
#%patch0
%build
# JIT only works on i586
#
%ifarch %ix86
%configure --disable-nat-debug --enable-jit-compiler --enable-nfjpeg
%{__make} depend
%{__make}
%{__mv} aranym aranym-jit
%{__make} clean
%endif
%configure --disable-nat-debug --enable-addressing=direct --enable-fullmmu --enable-lilo --enable-fixed-videoram --enable-nfjpeg
%{__make} depend
%{__make}
%{__mv} aranym aranym-mmu
%{__make} clean
%configure --disable-nat-debug --enable-addressing=direct --enable-nfjpeg
%{__make} depend
%{__make}
%install
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
# add a desktop menu entry
#
%if %{_suse}
mkdir -p %{buildroot}/%{_icondir}
install -m644 contrib/icon-32.png %{buildroot}/%{_icondir}/aranym.png
install -D -m644 contrib/aranym.desktop %{buildroot}/%{_datadir}/applications/aranym.desktop
%suse_update_desktop_file -i aranym
%endif
%if %{_mandriva}
mkdir -p %{buildroot}%{_menudir}
cat > %{buildroot}%{_menudir}/%{name} <<EOF
?package(%{name}): \
command="%{_bindir}/aranym" \
icon="aranym.png" \
title="ARAnyM" \
longtitle="%{summary}" \
needs="x11" \
section="More Applications/Emulators"
EOF
%endif
%if %{_fedora}
mkdir -p %{buildroot}/%{_icondir}
install -m644 contrib/icon-32.png %{buildroot}/%{_icondir}/aranym.png
install -D -m644 contrib/aranym.desktop %{buildroot}/%{_datadir}/applications/aranym.desktop
desktop-file-install \
--delete-original \
--vendor fedora \
--dir %{buildroot}%{_datadir}/applications \
--add-category X-Fedora \
--add-category Application \
%{buildroot}/%{_datadir}/applications/%{name}.desktop
%endif
# Mandriva uses post-install and post-uninstall scripts for its desktop menu updates
#
%post
%if %{_mandriva}
%update_menus
%endif
%postun
%if %{_mandriva}
%clean_menus
%endif
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%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.gz
%{_mandir}/man1/aranym.1.gz
%{_mandir}/man1/aranym-mmu.1.gz
%{_mandir}/man1/aratapif.1.gz
%{_datadir}/aranym
%{_docdir}/aranym
# now for the desktop menu
#
%if %{_suse}
%{_icondir}/aranym.png
%attr(0644,root,root) %{_datadir}/applications/*
%endif
%if %{_fedora}
%{_icondir}/aranym.png
%attr(0644,root,root) %{_datadir}/applications/*
%endif
%if %{_mandriva}
%{_menudir}/%{name}
%endif
%changelog
* Tue Jan 29 2008 Petr Stehlik <pstehlik@sophics.cz>
Desktop file corrected and renamed to lowercase.
_icondir defined for Fedora. For other changes see ChangeLog.
* Mon Jan 28 2008 Petr Stehlik <pstehlik@sophics.cz>
The right icon added. Desktop file updated. Build system root changed.
New release. Version increased. Other changes in NEWS file.
* Mon Jul 09 2007 Petr Stehlik <pstehlik@sophics.cz>
New release. Version increased. Other changes in NEWS file.
* Tue Oct 11 2006 David Bolt <davjam@davjam.org> 0.9.4beta
Added an aranym.desktop file for inclusion in desktop menus.
Temporarily uses emulator.png as the menu icon.
Added bits to spec file to try and build packages for (open)SUSE, Mandriva
and Fedora Core distributions without any changes.
* Fri Sep 22 2006 Petr Stehlik <pstehlik@sophics.cz>
New release. Version increased. Other changes in NEWS file.
Thanks to David Bolt this spec file is nicely updated - does not fail
on 64bit anymore. Thanks, David!
* Mon Feb 20 2006 Petr Stehlik <pstehlik@sophics.cz>
URL changed to aranym.org. Version increased. Other changes in NEWS file.
* Sun Apr 17 2005 Petr Stehlik <pstehlik@sophics.cz>
Files list fixed.
* Thu Apr 14 2005 Petr Stehlik <pstehlik@sophics.cz>
Version increased. NFJPEG enabled.
* Tue Feb 22 2005 Petr Stehlik <pstehlik@sophics.cz>
Version increased. aranymrc.example removed.
* Sun Feb 20 2005 Petr Stehlik <pstehlik@sophics.cz>
Version increased. LILO enabled in the MMU version.
* Sun Nov 07 2004 Petr Stehlik <pstehlik@sophics.cz>
Version increased.
* Tue Jul 06 2004 Petr Stehlik <pstehlik@sophics.cz>
Version increased.
* Mon Jul 05 2004 Petr Stehlik <pstehlik@sophics.cz>
Version increased. tools/createdisk/ removed. tools/arabridge added.
For other changes see the NEWS file.
* Sun Feb 15 2004 Petr Stehlik <pstehlik@sophics.cz>
Version increased. For other changes see the NEWS file.
* Sun Feb 08 2004 Petr Stehlik <pstehlik@sophics.cz>
Version increased. For other changes see the NEWS file.
* Wed Jan 07 2004 Petr Stehlik <pstehlik@sophics.cz>
Version increased. For other changes see the NEWS file.
* Sat Jan 03 2004 Petr Stehlik <pstehlik@sophics.cz>
font8.bmp removed.
* Sat Oct 04 2003 Petr Stehlik <pstehlik@sophics.cz>
Version increased. NFCDROM.BOS added.
* Fri Apr 11 2003 Petr Stehlik <pstehlik@sophics.cz>
Man dir fixed. Debug info disabled.
* Mon Apr 08 2003 Petr Stehlik <pstehlik@sophics.cz>
Various fixes for the 0.8.0. And full 68040 PMMU build added as aranym-mmu.
Also manual page added.
* Mon Mar 24 2003 Petr Stehlik <pstehlik@sophics.cz>
HostFS and network drivers added. ARATAPIF installed setuid root.
Ethernet enabled.
* Sun Mar 23 2003 Petr Stehlik <pstehlik@sophics.cz>
Version increased for the new release. See the NEWS file for details.
* Fri Mar 07 2003 Petr Stehlik <pstehlik@sophics.cz>
Fixed paths to share/aranym folder.
* Wed Jan 29 2003 Petr Stehlik <pstehlik@sophics.cz>
New release. Updated list of provided files.
* Tue Oct 22 2002 Petr Stehlik <pstehlik@sophics.cz>
aranym-jit (JIT compiler for m68k CPU) generated.
* Sun Oct 20 2002 Petr Stehlik <pstehlik@sophics.cz>
EmuTOS image file renamed back.
* Sat Oct 12 2002 Petr Stehlik <pstehlik@sophics.cz>
EmuTOS image file renamed. Updated for new release.
* Sun Jul 21 2002 Petr Stehlik <pstehlik@sophics.cz>
SDL GUI font and EmuTOS image files added.
* Sat Jul 20 2002 Petr Stehlik <pstehlik@sophics.cz>
Version increased.
* Thu Jun 06 2002 Petr Stehlik <pstehlik@sophics.cz>
Install path changed from /usr/local to /usr
* Mon Apr 22 2002 Petr Stehlik <pstehlik@sophics.cz>
Sound driver added
* Sun Apr 14 2002 Petr Stehlik <pstehlik@sophics.cz>
First working version
|