Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Chrischaan:ARAnyM
aranym-20220417
aranym.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File aranym.spec of Package aranym-20220417
# generic defines used by all distributions. # %define ver 20220417 %define aver 1-19-e6e # # %define myrelease 1 %define mybuild 1 %define _rel %{myrelease}.%{mybuild} %define with_nfosmesa 0 # 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/Other %define fedora_group Console/Emulators # defaults # %define group Console/Emulators %define rel %{_rel} %define my_suse 0 %define my_sles 0 %define my_fedora 0 %define my_centos 0 %define my_rhel 0 %define my_scientificlinux 0 %define my_mageia 0 %define use_python2 0 %define use_python3 0 %define my_vendor unknown %define my_version 0 %define my_autogen 0 %if 0%{?suse_version:1}%{?sle_version:1} %define my_suse 1 %define my_vendor opensuse %endif %if 0%{?sle_version:1} %define my_sles 1 %define my_vendor suselinuxenterprise %endif %if 0%{?fedora_version:1} %define my_fedora 1 %define my_vendor fedora %endif %if 0%{?mageia:1} %define my_mageia 1 %define my_vendor mageia %endif %if 0%{?centos_version:1} %define my_centos 1 %define my_vendor centos %endif %if 0%{?rhel_version:1} %define my_rhel 1 %define my_vendor redhat %endif %if 0%{?scientificlinux_version:1} %define my_scientificlinux 1 %define my_vendor scientificlinux %endif %if %{my_suse} %if !%{my_sles} %define rel %{myrelease}.suse%(echo $[%suse_version/10]).%{mybuild} %define my_version %{suse_version} %if %suse_version >= 930 %define debugrpm 1 %endif %if %suse_version >= 1500 %define use_python3 1 %endif %else %define rel %{myrelease}.sles%{sle_version}.%{mybuild} %define my_version %{sle_version} %if %sle_version >= 120000 %define debugrpm 1 %endif %if %sle_version >= 150000 %define use_python3 1 %endif %endif %define group %{suse_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} %define my_version %{fedora_version} %if %fedora_version >= 30 %define use_python3 1 %endif %endif # building on a Mageia Linux system. # # this should create a release that conforms to the Mageia naming conventions. # %if %{my_mageia} %if 0%{?!mageia:1} %define mageia %(i="%dist" ; echo "${i:3}") %endif %if 0%{?!dist:1} %define dist .mga%{mageia} %endif %define rel %{myrelease}%{dist}.%{mybuild} %define group %{fedora_group} %define my_version %{mageia} %if %mageia >= 7 %define use_python3 1 %endif %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} %define my_version %{centos_version} %if %centos_version >= 800 %define use_python3 1 %endif %endif # building on a RHEL Linux system. # # this should create a release that conforms to the RHEL naming conventions. # %if %{my_rhel} %if 0%{?!rhel_version:1} %define rhel_version %(i="%dist" ; echo "${i:3}") %endif %if 0%{?!dist:1} %define dist .el%{rhel_version} %endif %define rel %{myrelease}%{dist}.%{mybuild} %define group %{fedora_group} %define my_version %{rhel_version} %if %rhel_version >= 800 %define use_python3 1 %endif %endif # building on a Scientific Linux system. # # this should create a release that conforms to the Scientific naming conventions. # %if %{my_scientificlinux} %if 0%{?!scientificlinux_version:1} %define scientificlinux_version %(i="%dist" ; echo "${i:3}") %endif %if 0%{?!dist:1} %define dist .el%{scientificlinux_version} %endif %define rel %{myrelease}%{dist}.%{mybuild} %define group %{fedora_group} %define my_version %{scientificlinux_version} %endif # move the icons into a standardised location # %if 0%{?!_icondir:1} %define _icondir %{_datadir}/icons/hicolor/ %endif %define _pixmapdir %{_datadir}/pixmaps # 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 %if %{suse_version} >= 1500 Requires: libmpfr6 >= 3.0.0 %else Requires: libmpfr4 >= 3.0.0 %endif Requires: libusb-1_0-0 >= 1.0.0 BuildRequires: libSDL-devel >= 1.2.12 %if %{my_sles} %else BuildRequires: libSDL_image-devel >= 1.2.5 %endif %if %{suse_version} >= 1200 BuildRequires: libOSMesa-devel %define with_nfosmesa 1 %endif 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 BuildRequires: automake BuildRequires: glibc BuildRequires: glibc-devel BuildRequires: unzip License: GPL-2.0-only %endif %if %{my_mageia} Requires: libSDL1.2_0 >= 1.2.12 Requires: zlib >= 1.2.3 Requires: libmpfr >= 3.0.0 Requires: libusb1.0_0 >= 1.0.0 BuildRequires: libSDL-devel >= 1.2.12 BuildRequires: zlib-devel >= 1.2.3 BuildRequires: libmpfr-devel >= 3.0.0 BuildRequires: libusb1-devel >= 1.0.0 BuildRequires: unzip License: GPLv2 %define __libtoolize true %endif %if %{my_fedora} Requires: SDL >= 1.2.12 Requires: zlib >= 1.2.3 Requires: mpfr >= 3.0.0 Requires: libusb1 >= 1.0.0 BuildRequires: SDL-devel >= 1.2.12 BuildRequires: zlib-devel >= 1.2.3 BuildRequires: mpfr-devel >= 3.0.0 BuildRequires: libusb1-devel >= 1.0.0 BuildRequires: unzip License: GPLv2 %endif %if %{my_centos} Requires: SDL >= 1.2.12 Requires: zlib >= 1.2.3 Requires: mpfr >= 2.4.1 Requires: libusb1 >= 1.0.0 BuildRequires: SDL-devel >= 1.2.12 BuildRequires: zlib-devel >= 1.2.3 BuildRequires: mpfr-devel >= 2.4.1 BuildRequires: libusb1-devel >= 1.0.0 BuildRequires: unzip License: GPLv2 %endif %if %{my_rhel} Requires: SDL >= 1.2.12 Requires: zlib >= 1.2.3 Requires: mpfr >= 2.4.1 Requires: libusb1 >= 1.0.0 BuildRequires: SDL-devel >= 1.2.12 BuildRequires: zlib-devel >= 1.2.3 BuildRequires: mpfr-devel >= 2.4.1 %if %{rhel_version} >= 700 BuildRequires: libusb1-devel >= 1.0.0 %endif BuildRequires: unzip License: GPLv2 %endif %if %{my_scientificlinux} Requires: SDL >= 1.2.12 Requires: zlib >= 1.2.3 Requires: mpfr >= 2.4.1 Requires: libusb1 >= 1.0.0 BuildRequires: SDL-devel >= 1.2.12 BuildRequires: zlib-devel >= 1.2.3 BuildRequires: mpfr-devel >= 2.4.1 BuildRequires: libusb1-devel >= 1.0.0 BuildRequires: unzip License: GPLv2 %endif # Now for the meat of the spec file # Name: aranym Version: %{ver} Release: %{rel} Summary: 32-bit Atari personal computer (similar to Falcon030 but better) virtual machine URL: http://aranym.org/ Group: %{group} Source: %{name}_%{version}.orig.tar.gz Source1: aranym-%{aver}.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires: hicolor-icon-theme BuildRequires: hicolor-icon-theme BuildRequires: desktop-file-utils BuildRequires: gcc-c++ %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 -n %{name}_%{version} -a 1 echo "Vendor: %{my_vendor} Version: %{my_version}" %build %define common_opts --enable-addressing=direct --enable-usbhost --disable-sdl2 --enable-blitmemmove %{?with_nfosmesa:--enable-nfosmesa} # JIT compiler for X86-32 and X86-64 %ifarch %ix86 x86_64 %define my_autogen 1 ./autogen.sh %common_opts --enable-jit-compiler --enable-jit-fpu %{__make} depend %{__make} %{__mv} aranym aranym-jit %{__make} clean %endif # JIT compiler for ARM %ifarch %arm %define my_autogen 1 ./autogen.sh %common_opts --enable-jit2 --enable-jit-fpu %{__make} depend %{__make} %{__mv} aranym aranym-jit %{__make} clean %endif %if %{my_autogen} %configure %common_opts --enable-fullmmu --enable-lilo --enable-protect2k %else ./autogen.sh %common_opts --enable-fullmmu --enable-lilo --enable-protect2k %endif %{__make} depend %{__make} %{__mv} aranym aranym-mmu %{__make} clean %configure %common_opts %{__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} %ifarch %ix86 x86_64 %arm install -m 755 aranym-jit %{buildroot}%{_bindir} %endif # aranym-1-19-xxx install cp -a aranym-%{aver} $RPM_BUILD_ROOT%{_datadir}/aranym/aranym-%{aver} find $RPM_BUILD_ROOT%{_datadir}/aranym/aranym-%{aver} -type d -name CVS -exec rm -rf {} + # 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_mageia} install -m 644 contrib/%{name}.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop %if %{my_suse} %suse_update_desktop_file -i %{name} %endif %if %{my_mageia} 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_mageia} %ifarch %ix86 x86_64 %arm install -m 644 contrib/%{name}-jit.desktop %{buildroot}/%{_datadir}/applications/%{name}-jit.desktop %endif %endif %if %{my_fedora}%{my_centos} %ifarch %ix86 x86_64 %arm install -m 644 contrib/%{name}-jit.desktop %{buildroot}%{_datadir}/applications/%{my_vendor}-%{name}-jit.desktop %endif %endif %if %{my_suse}%{my_mageia} 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_mageia} %post %update_menus %endif %if %{my_mageia} %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}/32x32/apps/%{name}-mmu.png %{_icondir}/48x48/apps/%{name}.png %{_icondir}/48x48/apps/%{name}-mmu.png %{_pixmapdir}/%{name}.png %{_pixmapdir}/%{name}-mmu.png %{_icondir}/32x32/apps/%{name}-jit.png %{_icondir}/48x48/apps/%{name}-jit.png %{_pixmapdir}/%{name}-jit.png %{_datadir}/applications/*%{name}.desktop %{_bindir}/aratapif %{_bindir}/aranym %ifarch %ix86 x86_64 %arm %{_bindir}/aranym-jit %endif %{_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. * Fri 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) * Sat 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. * Wed 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. * Tue 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor