1b9b77c
# src/types.h is set to issue error on i386 and warning on other architectures
1b9b77c
# when trying to enable position-independent code. It is not recommended for
1b9b77c
# performance reasons
5a46f88
%undefine _hardened_build
5a46f88
5a46f88
Name:           mednafen
18d2b94
Version:        1.22.2
35a53fe
Release:        1%{?dist}
5a46f88
Summary:        A multi-system emulator utilizing OpenGL and SDL
5a46f88
#mednafen incorporates several emulators hence the colourful licensing
5a46f88
License:        GPLv2+ and BSD and ISC and LGPLv2+ and MIT and zlib 
5a46f88
URL:            https://mednafen.github.io/
5a46f88
Source0:        https://mednafen.github.io/releases/files/%{name}-%{version}.tar.xz
35a53fe
BuildRequires:  gcc-c++
5a46f88
BuildRequires:  gettext
5a46f88
#1.3.0 is required
5a46f88
#BuildRequires:  libmpcdec-devel
5a46f88
#2.09 is required
5a46f88
#BuildRequires:  lzo-devel
5a46f88
BuildRequires:  pkgconfig(alsa)
5a46f88
BuildRequires:  pkgconfig(jack) => 1.0.2
5a46f88
BuildRequires:  pkgconfig(sdl2) => 2.0.5
5a46f88
BuildRequires:  pkgconfig(sndfile) => 1.0.2
5a46f88
BuildRequires:  pkgconfig(zlib)
5a46f88
5a46f88
%description
5a46f88
A portable, utilizing OpenGL and SDL, argument(command-line)-driven multi-system
5a46f88
emulator. Mednafen has the ability to remap hotkey functions and virtual system
5a46f88
inputs to a keyboard, a joystick, or both simultaneously. Save states are
5a46f88
supported, as is real-time game rewinding. Screen snapshots may be taken, in the
5a46f88
PNG file format, at the press of a button. Mednafen can record audiovisual
5a46f88
movies in the QuickTime file format, with several different lossless codecs
5a46f88
supported.
5a46f88
5a46f88
The following systems are supported(refer to the emulation module documentation
5a46f88
for more details):
5a46f88
35a53fe
* Apple II/II+
5a46f88
* Atari Lynx
5a46f88
* Neo Geo Pocket (Color)
5a46f88
* WonderSwan
5a46f88
* GameBoy (Color)
5a46f88
* GameBoy Advance
5a46f88
* Nintendo Entertainment System
5a46f88
* Super Nintendo Entertainment System/Super Famicom
5a46f88
* Virtual Boy
5a46f88
* PC Engine/TurboGrafx 16 (CD)
5a46f88
* SuperGrafx
5a46f88
* PC-FX
5a46f88
* Sega Game Gear
5a46f88
* Sega Genesis/Megadrive
5a46f88
* Sega Master System
5a46f88
* Sega Saturn (experimental, x86_64 only)
5a46f88
* Sony PlayStation
5a46f88
5a46f88
Due to the threaded model of emulation used in Mednafen, and limitations of SDL,
5a46f88
a joystick is preferred over a keyboard to play games, as the joystick will have
5a46f88
slightly less latency, although the latency differences may not be perceptible
5a46f88
to most people. 
5a46f88
5a46f88
5a46f88
%prep
5a46f88
%autosetup -n %{name}
5a46f88
5a46f88
# Permission cleanup
5a46f88
find \( -name \*.c\* -or -name \*.h\* -or -name \*.inc \) -exec chmod -x {} \;
5a46f88
5a46f88
5a46f88
%build
5a46f88
CFLAGS="$RPM_OPT_FLAGS -Wl,-z,relro -Wl,-z,now"
5a46f88
CXXFLAGS="$RPM_OPT_FLAGS -Wl,-z,relro -Wl,-z,now"
5a46f88
5a46f88
export CFLAGS
5a46f88
export CXXFLAGS
5a46f88
5a46f88
%configure --disable-rpath
5a46f88
#to be added once dependencies become available
5a46f88
#    --with-external-lzo
5a46f88
#    --with-external-mpcdec
5a46f88
#    --with-external-tremor
5a46f88
#    --with-external-trio
5a46f88
%make_build
5a46f88
5a46f88
5a46f88
%install
5a46f88
%make_install
5a46f88
5a46f88
# Documentation cleanup
5a46f88
rm -rf Documentation/*.def Documentation/*.php Documentation/generate.sh \
5a46f88
    Documentation/Makefile.* Documentation/docgen.inc
5a46f88
5a46f88
%find_lang %{name}
5a46f88
5a46f88
5a46f88
%files -f %{name}.lang
5a46f88
%license COPYING
5a46f88
%doc ChangeLog TODO Documentation/*
5a46f88
%{_bindir}/%{name}
5a46f88
5a46f88
5a46f88
%changelog
18d2b94
* Wed Apr 24 2019 Julian Sikorski <belegdol@fedoraproject.org> - 1.22.2-1
18d2b94
- Update to 1.22.2
18d2b94
35a53fe
* Tue Jan 29 2019 Julian Sikorski <belegdol@fedoraproject.org> - 1.22.1-1
35a53fe
- Update to 1.22.1
35a53fe
- Add gcc-c++ to BuildRequires
35a53fe
1b9b77c
* Mon May 14 2018 Julian Sikorski <belegdol@fedoraproject.org> - 1.21.3-2
1b9b77c
- Added an explanation why hardened build is disabled
1b9b77c
- Bumped release so that the Fedora package is newer than RPM Fusion one
1b9b77c
5a46f88
* Tue May 01 2018 Julian Sikorski <belegdol@fedoraproject.org> - 1.21.3-1
5a46f88
- Updated to 1.21.3
5a46f88
5a46f88
* Mon Apr 23 2018 Julian Sikorski <belegdol@fedoraproject.org> - 1.21.2-2
5a46f88
- Added pkgconfig(alsa) to BuildRequires as it is no longer pulled implicitly
5a46f88
5a46f88
* Sun Apr 15 2018 Julian Sikorski <belegdol@fedoraproject.org> - 1.21.2-1
5a46f88
- Updated to 1.21.2
5a46f88
- Switched to SDL2
5a46f88
- Added placeholders for system libs to be enabled once dependencies become available
5a46f88
5a46f88
* Fri Mar 02 2018 RPM Fusion Release Engineering <leigh123linux@googlemail.com> - 0.9.48-2
5a46f88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5a46f88
5a46f88
* Sat Oct 07 2017 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.48-1
5a46f88
- Updated to 0.9.48
5a46f88
5a46f88
* Thu Sep 07 2017 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.47-1
5a46f88
- Updated to 0.9.47
5a46f88
5a46f88
* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart@rpmfusion.org> - 0.9.43-2
5a46f88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5a46f88
5a46f88
* Sun Apr 02 2017 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.43-1
5a46f88
- Updated to 0.9.43
5a46f88
5a46f88
* Sun Mar 26 2017 RPM Fusion Release Engineering <kwizart@rpmfusion.org> - 0.9.39.2-2
5a46f88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5a46f88
5a46f88
* Sat Oct 29 2016 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.39.2-1
5a46f88
- Updated to 0.9.39.2
5a46f88
- Updated %%description
5a46f88
- Dropped gcc-6 fix
5a46f88
- Cleaned up the .spec file
5a46f88
- Disabled hardened build, see types.h
5a46f88
5a46f88
* Mon Jul 04 2016 Sérgio Basto <sergio@serjux.com> - 0.9.38.7-2
5a46f88
- Fix error compiling with GCC 6.x on Fedora 24
5a46f88
5a46f88
* Thu Dec 31 2015 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.38.7-1
5a46f88
- Updated to 0.9.38.7
5a46f88
5a46f88
* Sun Sep 27 2015 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.38.6-1
5a46f88
- Updated to 0.9.38.6
5a46f88
5a46f88
* Tue Jul 14 2015 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.38.5-1
5a46f88
- Updated to 0.9.38.5
5a46f88
5a46f88
* Mon Sep 01 2014 Sérgio Basto <sergio@serjux.com> - 0.9.33.3-2
5a46f88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5a46f88
5a46f88
* Tue Apr 29 2014 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.33.3-1
5a46f88
- Updated to 0.9.33.3
5a46f88
- Updared the Source URL
5a46f88
5a46f88
* Sun Nov 10 2013 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.32-0.1
5a46f88
- Updated to 0.9.32-WIP
5a46f88
5a46f88
* Tue May 14 2013 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.28-0.1
5a46f88
- Updated to 0.9.28-WIP
5a46f88
5a46f88
* Mon Apr 29 2013 Nicolas Chauvet <kwizart@gmail.com> - 0.9.25-0.3
5a46f88
- https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5a46f88
5a46f88
* Sun Dec 09 2012 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.25-0.1
5a46f88
- Updated to 0.9.25-WIP
5a46f88
5a46f88
* Sat Aug 25 2012 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.24-0.1
5a46f88
- Updated to 0.9.24-WIP
5a46f88
5a46f88
* Mon Jul 02 2012 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.22-0.1
5a46f88
- Updated to 0.9.22-WIP
5a46f88
5a46f88
* Wed May 02 2012 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.21-0.1
5a46f88
- Updated to 0.9.21-WIP
5a46f88
- Dropped upstreamed gcc-47 patch
5a46f88
5a46f88
* Fri Feb 10 2012 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.19-0.1
5a46f88
- Updated to 0.9.19-WIP
5a46f88
- Dropped obsolete Group, Buildroot, %%clean and %%defattr
5a46f88
- Updated %%description
5a46f88
5a46f88
* Thu Feb 09 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.9.18-0.2
5a46f88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5a46f88
5a46f88
* Sun Nov 27 2011 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.18-0.1
5a46f88
- Updated to 0.9.18-WIP
5a46f88
- Dropped the NES sound patch
5a46f88
5a46f88
* Sat Aug 27 2011 Julian Weissgerber <sloevenh1@googlemail.com> - 0.9.17-0.2
5a46f88
- Patch to fix segfault when NES sound is enabled
5a46f88
5a46f88
* Wed Jun 15 2011 Julian Sikorski <belegdol@fedoraproject.org> - 0.9.17-0.1
5a46f88
- Updated to 0.9.17-WIP
5a46f88
- Updated the License tag
5a46f88
5a46f88
* Thu Apr 29 2010 Julian Sikorski <belegdol@fedoraproject.org> - 0.8.12-2.0.8.C
5a46f88
- Rebuilt for new libcdio
5a46f88
5a46f88
* Thu Jul 09 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.12-1.0.8.C
5a46f88
- Updated to 0.8.C
5a46f88
- Dropped the upstreamed gcc44 patch
5a46f88
5a46f88
* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.8.11-2.0.8.B
5a46f88
- rebuild for new F11 features
5a46f88
5a46f88
* Sun Mar 08 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.11-1.0.8.B
5a46f88
- Updated to 0.8.B
5a46f88
- ExcludeArch: ppc64 on Fedora 11+
5a46f88
5a46f88
* Thu Nov  6 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.10-2.0.8.A
5a46f88
- Rebuilt. Something has mangled the x86_64 rpm
5a46f88
5a46f88
* Sun Nov  2 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.10-1.0.8.A
5a46f88
- Updated to 0.8.A
5a46f88
5a46f88
* Sat Sep 20 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8.9-1
5a46f88
- Updated to 0.8.9
5a46f88
- Dropped the rpath patch, does not seem to be necessary
5a46f88
5a46f88
* Tue Jan 08 2008 Ian Chapman <packages[AT]amiga-hardware.com> 0.8.7-1
5a46f88
- Upgrade to 0.8.7
5a46f88
5a46f88
* Sun Nov 25 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.8.5-1
5a46f88
- Upgrade to 0.8.5
5a46f88
5a46f88
* Sun Nov 18 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.8.4-1
5a46f88
- Upgrade to 0.8.4
5a46f88
- Removed several patches which have been applied upstream
5a46f88
- License change due to new guidelines
5a46f88
- New URL as project homepage has changed
5a46f88
5a46f88
* Sat Apr 28 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.8.1-2
5a46f88
- Added patch to fix crashes with wonderswan roms
5a46f88
- Added patch to fix compilation on ppc
5a46f88
5a46f88
* Thu Apr 26 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.8.1-1
5a46f88
- Upgrade to 0.8.1
5a46f88
5a46f88
* Tue Feb 13 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.2-1
5a46f88
- Upgrade to 0.7.2
5a46f88
5a46f88
* Wed Jan 03 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.7.1-1
5a46f88
- Upgrade to 0.7.1
5a46f88
- Updated rpath patch
5a46f88
- Added support for jack
5a46f88
5a46f88
* Fri Oct 06 2006 Ian Chapman <packages[AT]amiga-hardware.ocm> 0.6.5-2
5a46f88
- Rebuild for new version of libcdio in fc6
5a46f88
5a46f88
* Thu Sep 07 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.5-1
5a46f88
- Upgrade to 0.6.5
5a46f88
5a46f88
* Wed Aug 23 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.4-1
5a46f88
- Upgrade to 0.6.4
5a46f88
- Minor alteration to RPM description due to new features
5a46f88
5a46f88
* Sat Aug 12 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.3-1
5a46f88
- Upgrade to 0.6.3
5a46f88
- Drop the libtool buildrequire and use the patch for fixing rpath
5a46f88
5a46f88
* Mon Jun 19 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.2-1
5a46f88
- Upgrade to 0.6.2
5a46f88
5a46f88
* Sun Jun 04 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.1-2
5a46f88
- Removed gawk buildrequire. Doesn't seem to be needed.
5a46f88
- Removed bison buildrequire. Doesn't seem to be needed.
5a46f88
- Replaced xorg-x11-devel with libGLU-devel for compatibility reasons with
5a46f88
  modular and non modular X
5a46f88
- Removed SDL-devel buildrequire, implied by SDL_net-devel
5a46f88
5a46f88
* Tue May 23 2006 Ian Chapman <packages[AT]amiga-hardware.com> 0.6.1-1.iss
5a46f88
- Initial Release