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 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
|
# generic defines used by all distributions.
#
%define ver 1.1.0
#
#
%define myrelease 1
%define mybuild 1
%define _rel %{myrelease}.%{mybuild}
# define the package groups. If they all followed the same naming convention,
# these would be the same. They don't, and so they aren't :(
#
%define suse_group System/Emulators/Others
%define mandriva_group Console/Emulators
%define fedora_group Console/Emulators
# defaults
#
%define group Console/Emulators
%define rel %{_rel}
%define my_suse 0
%define my_mandriva 0
%define my_fedora 0
%define my_centos 0
%if 0%{?suse_version:1}%{?sles_version:1}
%define my_suse 1
%endif
# if present, use %distversion to find out which Mandriva version is being built
# define %distversion and %_icondir in your .rpmmacros if build fails
#
%if 0%{?distversion:1}
%if 0%{?!mandriva_version:1}
%define mandriva_version %(echo $[%{distversion}/10])
%endif
%endif
%if 0%{?mandriva_version:1}
%define my_mandriva 1
%define my_vendor mandriva
%endif
# if present, decode %dist to find out which OS package is being built on
#
%if 0%{?dist:1}
# Centos or Fedora
#
%define my_which_os %(i=%{dist} ; if [ "${i::3}" == ".fc" ] ; then echo "1" ; else echo "0" ; fi )
%if %{my_which_os}
%if 0%{?!fedora_version:1}
%define fedora_version %(i=%{dist} ; echo "${i:3}" )
%endif
%else
%if 0%{?!centos_version:1}
%define centos_version %(i=%{dist} ; echo "${i:3}00" )
%endif
%endif
%endif
%if 0%{?fedora_version:1}
%define my_fedora 1
%define my_vendor fedora
%endif
%if 0%{?centos_version:1}
%define my_centos 1
%define my_vendor centos
%endif
%if %{my_suse}
%if %{suse_version}
%define rel %{myrelease}.suse%(echo $[%suse_version/10]).%{mybuild}
%else
%define rel %{myrelease}.sles%{sles_version}.%{mybuild}
%endif
%if %suse_version >= 930
%define debugrpm 1
%endif
%define group %{suse_group}
%endif
# building on a Mandriva/Mandrake Linux system.
#
# this should create a release that conforms to the Mandriva naming conventions.
#
%if %{my_mandriva}
%define rel %{myrelease}.mdv%{mandriva_version}.%{mybuild}
%define group %{mandriva_group}
%endif
# building on a Fedora Core Linux system.
#
# this should create a release that conforms to the Fedora naming conventions.
#
%if %{my_fedora}
%if 0%{?!fedora_version:1}
%define fedora_version %(i="%dist" ; echo "${i:3}")
%endif
%if 0%{?!dist:1}
%define dist .fc%{fedora_version}
%endif
%define rel %{myrelease}%{dist}.%{mybuild}
%define group %{fedora_group}
%endif
# building on a Centos Linux system.
#
# this should create a release that conforms to the Centos naming conventions.
#
%if %{my_centos}
%if 0%{?!centos_version:1}
%define centos_version %(i="%dist" ; echo "${i:3}")
%endif
%if 0%{?!dist:1}
%define dist .el%{centos_version}
%endif
%define rel %{myrelease}%{dist}.%{mybuild}
%define group %{fedora_group}
%endif
# move the icons into a standardised location
#
%if 0%{?!_icondir:1}
%define _icondir %{_datadir}/icons/hicolor/
%endif
# 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
%if %{my_suse}
Requires: libSDL-1_2-0 >= 1.2.12
Requires: libSDL_image-1_2-0 >= 1.2.5
Requires: zlib >= 1.2.3
Requires: libmpfr4 >= 3.0.0
Requires: libusb-1_0-0 >= 1.0.0
BuildRequires: libSDL-devel >= 1.2.12
BuildRequires: libSDL_image-devel >= 1.2.5
BuildRequires: zlib-devel >= 1.2.3
BuildRequires: mpfr-devel >= 3.0.0
BuildRequires: libusb-1_0-devel >= 1.0.0
BuildRequires: update-desktop-files
BuildRequires: make
%endif
%if %{my_mandriva}
Requires: libSDL1.2_0 >= 1.2.12
Requires: libSDL_image1.2_0 >= 1.2.5
Requires: zlib >= 1.2.3
Requires: libmpfr4 >= 3.0.0
Requires: libusb1.0_0 >= 1.0.0
BuildRequires: libSDL-devel >= 1.2.12
BuildRequires: libSDL_image-devel >= 1.2.5
BuildRequires: zlib-devel >= 1.2.3
BuildRequires: libmpfr-devel >= 3.0.0
BuildRequires: libusb1-devel >= 1.0.0
%endif
%if %{my_fedora}
Requires: SDL >= 1.2.12
Requires: SDL_image >= 1.2.5
Requires: zlib >= 1.2.3
Requires: mpfr >= 3.0.0
Requires: libusb1 >= 1.0.0
BuildRequires: SDL-devel >= 1.2.12
BuildRequires: SDL_image-devel >= 1.2.5
BuildRequires: zlib-devel >= 1.2.3
BuildRequires: mpfr-devel >= 3.0.0
BuildRequires: libusb1-devel >= 1.0.0
%endif
%if %{my_centos}
Requires: SDL >= 1.2.12
Requires: SDL_image >= 1.2.5
Requires: zlib >= 1.2.3
Requires: mpfr >= 2.4.1
Requires: libusb1 >= 1.0.0
BuildRequires: SDL-devel >= 1.2.12
BuildRequires: SDL_image-devel >= 1.2.5
BuildRequires: zlib-devel >= 1.2.3
BuildRequires: mpfr-devel >= 2.4.1
BuildRequires: libusb1-devel >= 1.0.0
%endif
# Now for the meat of the spec file
#
Name: aranym
Version: %{ver}
Release: %{rel}
License: GPLv2
Summary: 32-bit Atari personal computer (similar to Falcon030 but better) virtual machine
URL: https://aranym.github.io/
Group: %{group}
Source0: http://prdownloads.sourceforge.net/aranym/%{name}_%{version}.orig.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: hicolor-icon-theme
BuildRequires: hicolor-icon-theme
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
#Patch0: aranym-0.9.7beta-desktop.patch
%description
ARAnyM is a software only TOS clone - a virtual machine that allows you
to run TOS, EmuTOS, FreeMiNT, MagiC and Linux-m68k operating systems
and their applications.
Authors:
Ctirad Fertr, Milan Jurik, Standa Opichal, Petr Stehlik, Johan Klockars,
Didier MEQUIGNON, Patrice Mandin and others (see AUTHORS for a full list).
%{?debugrpm:%debug_package}
%prep
%setup -q
#%%patch0
%build
%configure --enable-jit-compiler --enable-usbhost
%{__make} depend
%{__make}
%{__mv} aranym aranym-jit
%{__make} clean
%configure --enable-fullmmu --enable-lilo --enable-usbhost
%{__make} depend
%{__make}
%{__mv} aranym aranym-mmu
%{__make} clean
%configure --enable-usbhost
%{__make} depend
%{__make}
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
mkdir -p %{buildroot}/%{_datadir}/aranym
make install DESTDIR=%{buildroot}
install -m 755 aranym-mmu %{buildroot}%{_bindir}
# should be 4755 but build fails due to SUID bit set
#
install -m 755 aratapif %{buildroot}%{_bindir}
install -m 755 aranym-jit %{buildroot}%{_bindir}
# add a desktop menu entry
#
mkdir -p %{buildroot}/%{_datadir}/applications
mkdir -p %{buildroot}/%{_icondir}/32x32/apps
mkdir -p %{buildroot}/%{_icondir}/48x48/apps
install -m 644 contrib/icon-32.png %{buildroot}/%{_icondir}/32x32/apps/aranym.png
install -m 644 contrib/icon-48.png %{buildroot}/%{_icondir}/48x48/apps/aranym.png
%if %{my_suse}%{my_mandriva}
install -m 644 contrib/%{name}.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop
%if %{my_suse}
%suse_update_desktop_file -i %{name}
%endif
%if %{my_mandriva}
desktop-file-install \
--delete-original \
--dir %{buildroot}%{_datadir}/applications \
--add-category System \
--add-category Emulator \
%{buildroot}/%{_datadir}/applications/%{name}.desktop
%endif
%endif
%if %{my_fedora}%{my_centos}
install -m 644 contrib/%{name}.desktop %{buildroot}%{_datadir}/applications/%{my_vendor}-%{name}.desktop
desktop-file-install \
--delete-original \
--vendor %{my_vendor} \
--dir %{buildroot}%{_datadir}/applications \
--add-category X-Fedora \
--add-category System \
--add-category Emulator \
%{buildroot}/%{_datadir}/applications/%{my_vendor}-%{name}.desktop
%endif
%if %{my_suse}%{my_mandriva}
install -m 644 contrib/%{name}-jit.desktop %{buildroot}/%{_datadir}/applications/%{name}-jit.desktop
%endif
%if %{my_fedora}%{my_centos}
install -m 644 contrib/%{name}-jit.desktop %{buildroot}%{_datadir}/applications/%{my_vendor}-%{name}-jit.desktop
%endif
%if %{my_suse}%{my_mandriva}
install -m 644 contrib/%{name}-mmu.desktop %{buildroot}/%{_datadir}/applications/%{name}-mmu.desktop
%endif
%if %{my_fedora}%{my_centos}
install -m 644 contrib/%{name}-mmu.desktop %{buildroot}%{_datadir}/applications/%{my_vendor}-%{name}-mmu.desktop
%endif
%if %{my_mandriva}
%post
%update_menus
%endif
%if %{my_mandriva}
%postun
%clean_menus
%endif
%clean
%{__rm} -rf %{buildroot}
%{__rm} -rf %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%files
%defattr(-,root,root)
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/aratapif.1*
%{_datadir}/%{name}
%{_docdir}/%{name}
%{_icondir}/32x32/apps/%{name}.png
%{_icondir}/48x48/apps/%{name}.png
%{_datadir}/applications/*%{name}.desktop
%{_bindir}/aratapif
%{_bindir}/aranym
%{_bindir}/aranym-jit
%{_mandir}/man1/%{name}-jit.1*
%{_datadir}/applications/*%{name}-jit.desktop
%defattr(-,root,root)
%{_bindir}/aranym-mmu
%{_mandir}/man1/%{name}-mmu.1*
%{_datadir}/applications/*%{name}-mmu.desktop
%changelog
* Tue Feb 06 2018 Thorsten Otto <admin@tho-otto.de>
URL changed to aranym.github.io. Also updated in NEWS/README files.
* Wed Oct 10 2014 Petr Stehlik <pstehlik@sophics.cz> 1.0.0
New ARAnyM release.
Reset the minimal SDL version down to 1.2.12
* Tue Jul 08 2014 Thorsten Otto <thotto@users.sourceforge.net>
Bumped the minimal SDL version to 1.2.15
* Tue Jun 03 2014 Jens Heitmann <jens.heitmann@stc-de.com>
Desktop copy added for CentOS; dependencies for centos (JIT version crashes with SDL < 1.2.15)
* Mon Apr 12 2014 Petr Stehlik <pstehlik@sophics.cz> 0.9.16
New upstream ARAnyM release. JIT supported on 64-bit now.
* Mon Apr 15 2013 Petr Stehlik <pstehlik@sophics.cz> 0.9.15
New ARAnyM release.
* Fri Mar 23 2012 Petr Stehlik <pstehlik@sophics.cz> 0.9.13
New ARAnyM release.
Make use of two new desktop files.
Mandriva desktop files without the vendor prefix.
* Sat Mar 17 2012 Petr Stehlik <pstehlik@sophics.cz> 0.9.12
New ARAnyM release.
New FPU emulation for MMU mode (using MPFR)
New Native Features enabled (PCI, USB)
New dependencies (zlib, mpfr, libusb)
* Wed May 26 2010 Petr Stehlik <pstehlik@sophics.cz> 0.9.10
New ARAnyM release.
Icons moved to icons dir.
Source archive filename follows Debian convention.
* Sat Sep 05 2009 Petr Stehlik <pstehlik@sophics.cz> 0.9.9
New ARAnyM release.
* Sat Apr 25 2009 Petr Stehlik <pstehlik@sophics.cz>
New ARAnyM release.
* Sat Nov 08 2008 Petr Stehlik <pstehlik@sophics.cz>
New ARAnyM release.
* Wed Jan 30 2008 Petr Stehlik <pstehlik@sophics.cz>
Added SDL_image to Requires:
Bumped the minimal SDL version to 1.2.10
Enabled the Requires: for mandriva (still untested)
* 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
|