Mystro256 bef77bf
%undefine _hardened_build
Mystro256 bef77bf
Mystro256 bef77bf
%global shortname vbam
Mystro256 fdd3cc5
#Upstream git tag/commit:
Mystro256 fed311d
%global upstreamtag 2.1.4
Mystro256 fdd3cc5
#Sanitized RC name (for fedora)
Mystro256 c1f9026
#global rctagfedora git78cd223
Mystro256 fdd3cc5
#RC Version that appears in app
Mystro256 c1f9026
#global rcversion Beta3-07032017
Mystro256 bef77bf
Mystro256 bef77bf
Name:           visualboyadvance-m
Mystro256 bbf1c6f
Version:        %{upstreamtag}
Mystro256 010015e
Release:        3%{?rctagfedora:.%{rctagfedora}}%{?dist}
Mystro256 bef77bf
Summary:        High compatibility Gameboy Advance Emulator combining VBA builds
Mystro256 bef77bf
Mystro256 bef77bf
License:        GPLv2
Mystro256 bef77bf
Url:            http://www.vba-m.com
Mystro256 c1f9026
Source0:        https://github.com/%{name}/%{name}/archive/v%{upstreamtag}.tar.gz#/%{name}-%{version}%{?rctagfedora:-%{rctagfedora}}.tar.gz
Mystro256 270fea1
#Upstream patch:
Mystro256 270fea1
#https://github.com/visualboyadvance-m/visualboyadvance-m/commit/af0de1c4b308ef8d9a081ecf407805b75a99d877
Mystro256 270fea1
Patch0:         0001-xbrz-fix-inline-asm-check.patch
Mystro256 010015e
#https://github.com/visualboyadvance-m/visualboyadvance-m/commit/410ede543c98c8c6dd89c25484da3bffb46f4187
Mystro256 010015e
Patch1:         0001-Check-for-null-pointer-in-soundReset.patch
Igor Gnatenko d4f17a0
BuildRequires:  gcc
Igor Gnatenko d4f17a0
BuildRequires:  gcc-c++
Mystro256 bef77bf
BuildRequires:  cairo-devel
Mystro256 bef77bf
BuildRequires:  cmake
Mystro256 bef77bf
BuildRequires:  libjpeg-turbo-devel
Mystro256 bef77bf
BuildRequires:  libpng-devel
Mystro256 bef77bf
BuildRequires:  libtiff-devel
Mystro256 bef77bf
BuildRequires:  mesa-libGL-devel
Mystro256 bef77bf
BuildRequires:  nasm
Mystro256 bef77bf
BuildRequires:  openal-soft-devel
Mystro256 bef77bf
BuildRequires:  SDL2-devel
Mystro256 bef77bf
BuildRequires:  SFML-devel
Mystro256 bef77bf
BuildRequires:  wxGTK3-devel
Mystro256 bef77bf
BuildRequires:  zlib-devel
Mystro256 bef77bf
BuildRequires:  zip
Mystro256 bef77bf
Mystro256 bef77bf
BuildRequires:  gettext
Mystro256 bef77bf
BuildRequires:  desktop-file-utils
Mystro256 bef77bf
BuildRequires:  hicolor-icon-theme
Mystro256 bef77bf
BuildRequires:  libappstream-glib
Mystro256 bef77bf
Mystro256 bef77bf
Requires:  hicolor-icon-theme
Mystro256 bef77bf
Mystro256 bef77bf
#Using info from here: http://vba-m.com/about.html and debian files
Mystro256 bef77bf
%description
Mystro256 bef77bf
VisualBoyAdvance-M is a Nintendo Game Boy Emulator with high compatibility with
Mystro256 bef77bf
commercial games. It emulates the Nintendo Game Boy Advance hand held console,
Mystro256 bef77bf
in addition to the original Game Boy hand held systems and its Super and Color
Mystro256 bef77bf
variants. VBA-M is a continued development of the now inactive VisualBoy
Mystro256 bef77bf
Advance project, with many improvements from various developments of VBA.
Mystro256 bef77bf
Mystro256 bef77bf
%package        sdl
Mystro256 bef77bf
Summary:        SDL version (no GUI) for VBA-M, a high compatibility Gameboy Advance Emulator
Mystro256 bef77bf
Mystro256 bef77bf
%description    sdl
Mystro256 bef77bf
This package provides the no-GUI, SDL only version of VisualBoyAdvance-M.
Mystro256 bef77bf
VisualBoyAdvance-M is a Nintendo Game Boy Emulator with high compatibility with
Mystro256 bef77bf
commercial games. It emulates the Nintendo Game Boy Advance hand held console,
Mystro256 bef77bf
in addition to the original Game Boy hand held systems and its Super and Color
Mystro256 bef77bf
variants. VBA-M is a continued development of the now inactive VisualBoy
Mystro256 bef77bf
Advance project, with many improvements from various developments of VBA.
Mystro256 bef77bf
Mystro256 bef77bf
%prep
Mystro256 fdd3cc5
%autosetup -p1 -n %{name}-%{upstreamtag}
Mystro256 67bc3fc
sed -i 's/ -mtune=generic//g' CMakeLists.txt
Mystro256 fdd3cc5
#Some odd permission issues:
Mystro256 fdd3cc5
chmod -x src/wx/rpi.h
Mystro256 bef77bf
Mystro256 bef77bf
%build
Mystro256 bef77bf
%cmake . \
Mystro256 bef77bf
    -DCMAKE_SKIP_RPATH=ON \
Mystro256 fdd3cc5
    -DVERSION="%{version}%{?rcversion: %{rcversion}}" \
Mystro256 c1f9026
    -DVERSION_RELEASE=TRUE \
Mystro256 bef77bf
    -DENABLE_SDL=ON \
Mystro256 bef77bf
    -DENABLE_WX=ON \
Mystro256 bef77bf
    -DENABLE_FFMPEG=OFF \
Mystro256 c1f9026
    -DENABLE_LINK=ON
Mystro256 bef77bf
%make_build
Mystro256 bef77bf
Mystro256 bef77bf
%install
Mystro256 bef77bf
%make_install
Mystro256 bef77bf
%find_lang wx%{shortname}
Mystro256 bef77bf
Mystro256 bef77bf
%check
Mystro256 bef77bf
desktop-file-validate \
Mystro256 bef77bf
    %{buildroot}%{_datadir}/applications/wx%{shortname}.desktop
Mystro256 bef77bf
appstream-util validate-relax --nonet \
Mystro256 bef77bf
  %{buildroot}/%{_datadir}/appdata/*.appdata.xml
Mystro256 bef77bf
Mystro256 bef77bf
%files -f wx%{shortname}.lang
Mystro256 bef77bf
%license doc/gpl.txt doc/License.txt
Mystro256 bef77bf
%doc doc/ips.htm
Mystro256 bef77bf
%{_mandir}/man6/%{name}.*
Mystro256 bef77bf
%{_bindir}/%{name}
Mystro256 bef77bf
%{_datadir}/applications/wx%{shortname}.desktop
Mystro256 bef77bf
%{_datadir}/appdata/wx%{shortname}.appdata.xml
Mystro256 bef77bf
%{_datadir}/%{shortname}
Mystro256 bef77bf
%{_datadir}/icons/hicolor/*/apps/%{shortname}.*
Mystro256 bef77bf
Mystro256 bef77bf
%files sdl
Mystro256 bef77bf
%doc doc/ReadMe.SDL.txt
Mystro256 bef77bf
%license doc/gpl.txt doc/License.txt
Mystro256 bef77bf
%config(noreplace) %{_sysconfdir}/%{shortname}.cfg
Mystro256 bef77bf
%{_mandir}/man6/%{shortname}.*
Mystro256 bef77bf
%{_bindir}/%{shortname}
Mystro256 bef77bf
Mystro256 bef77bf
%changelog
Mystro256 010015e
* Wed Mar 11 2020 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.1.4-3
Mystro256 010015e
- Fix RHBZ#1776006
Mystro256 010015e
Mystro256 2962487
* Fri Mar 6 2020 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.1.4-2
Mystro256 270fea1
- Fix non x86 arches (backported a patch from upstream)
Mystro256 270fea1
2284d3a
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.4-1.1
2284d3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2284d3a
Mystro256 fed311d
 * Wed Dec 11 2019 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.1.4-1
Mystro256 fed311d
- Update to v2.1.4
Mystro256 fed311d
07219ea
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-1.1
07219ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
07219ea
Mystro256 0e23db1
 * Tue Apr 23 2019 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.1.3-1
Mystro256 0e23db1
- Update to v2.1.3
Mystro256 0e23db1
444cdc8
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2.1
444cdc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
444cdc8
Mystro256 bbf1c6f
 * Sat Sep 15 2018 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.1.0-2
Mystro256 bbf1c6f
- Actually use 2.1.0 sources
Mystro256 bbf1c6f
- Add performance patch for xserver
Mystro256 bbf1c6f
c1c39a1
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-1.1
c1c39a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c1c39a1
Mystro256 86776a5
 * Sun Jul 01 2018 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.1.0-1
Mystro256 86776a5
- Update to v2.1.0
Mystro256 86776a5
Mystro256 bf6f97c
* Thu Mar 15 2018 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.2-1
Mystro256 5b8d8b9
- Update to v2.0.2
Mystro256 5b8d8b9
- Cleanup old rpmfusion provides
Mystro256 5b8d8b9
d408b43
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-1.2
d408b43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d408b43
4c752d6
* Thu Jan 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.1-1.1
4c752d6
- Remove obsolete scriptlets
4c752d6
Mystro256 c1f9026
* Mon Dec 11 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.1-1
Mystro256 c1f9026
- Update to v2.0.1
Mystro256 c1f9026
- Cleanup
Mystro256 c1f9026
2f58182
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-0.18.git78cd223
2f58182
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2f58182
cb18109
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-0.17.git78cd223
cb18109
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cb18109
Mystro256 7c6d2f2
* Thu Mar 16 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.16.git78cd223
Mystro256 7c6d2f2
- Update to new git snapshot
Mystro256 567b4dc
Mystro256 811798c
* Sun Mar 05 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.15.git7b85964
Mystro256 811798c
- Update to new git snapshot
Mystro256 811798c
Mystro256 5a2e1f7
* Sun Mar 05 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.14.waylandplus
Mystro256 5a2e1f7
- Update to new version
Mystro256 5a2e1f7
- Add patch for SDL issues
Mystro256 5a2e1f7
- Fix incorrect bug tracker link
Mystro256 5a2e1f7
Mystro256 fdd3cc5
* Mon Feb 20 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.13.git6a7d494
Mystro256 fdd3cc5
- Update to git snapshot, fixes many issues
Mystro256 fdd3cc5
- Drop wayland and openal fixes (better fixes have been upstreamed)
Mystro256 fdd3cc5
- Better workaround patch for sound syncing issue
Mystro256 fdd3cc5
Mystro256 f86d1c6
* Wed Feb 15 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.12.Beta3
Mystro256 f86d1c6
- Rebuilt for SFML 2.4
Mystro256 f86d1c6
Mystro256 f86d1c6
* Sat Feb 11 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.11.Beta3
Mystro256 b6dd017
- Added missing obsoletes for vbam-common (from rpmfusion)
Mystro256 b6dd017
- Tweaking openal patch
Mystro256 b6dd017
b075ad8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-0.10.Beta3
b075ad8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b075ad8
Mystro256 23947a1
* Mon Jan 30 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.9.Beta3
Mystro256 23947a1
- Fix dynamic loading of openal library if openal-soft-devel is not installed
Mystro256 23947a1
Mystro256 6efd3c8
* Sun Jan 29 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.8.Beta3
Mystro256 6efd3c8
- Add patch to fix wayland drawing
Mystro256 6efd3c8
- Remove launcher to force xwayland
Mystro256 6efd3c8
Mystro256 28dad97
* Thu Jan 19 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.7.Beta3
Mystro256 28dad97
- Force X11/xwayland, rendering issues exist on Wayland
Mystro256 28dad97
- Enable cairo to fix wx segfaults on xwayland
Mystro256 28dad97
5011b44
* Thu Jan 19 2017 Dan HorĂ¡k <dan[at]danny.cz> - 2.0.0-0.6.Beta3
5011b44
- Don't override distro-wide -mtune option
5011b44
Mystro256 67bc3fc
* Wed Jan 18 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.5.Beta3
Mystro256 67bc3fc
- Added fix for armv7hl and pcc
Mystro256 67bc3fc
Mystro256 bef77bf
* Fri Dec 30 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.4.Beta3
Mystro256 bef77bf
- Added missing desktop scriptlet for f24
Mystro256 bef77bf
- Added missing build requires
Mystro256 bef77bf
- Missing hicolor-icon-theme require
Mystro256 28dad97
- Use sysconfdir macro in spec
Mystro256 bef77bf
Mystro256 bef77bf
* Wed Dec 21 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.3.Beta3
Mystro256 bef77bf
- Update to beta 3
Mystro256 bef77bf
- Dropping GTK, upstream no longer supports this
Mystro256 bef77bf
- Change packagename visualboyadvance-m to reflect upstream
Mystro256 bef77bf
- Various tweaks
Mystro256 bef77bf
Mystro256 bef77bf
* Sat Dec 10 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.2.beta2
Mystro256 bef77bf
- Added patch to fix audio syncing issues
Mystro256 bef77bf
- Added fixes for linux data files
Mystro256 bef77bf
Mystro256 bef77bf
* Fri Dec  9 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 2.0.0-0.1.beta2
Mystro256 bef77bf
- Update to 2.0.0 beta 2
Mystro256 bef77bf
- Re-enable wx GUI
Mystro256 bef77bf
- Rename common subpackage to data
Mystro256 bef77bf
- Added appdata
Mystro256 bef77bf
- Build Require cleanup
Mystro256 bef77bf
Mystro256 bef77bf
* Thu Jul  7 2016 Hans de Goede <j.w.r.degoede@gmail.com> - 1.8.0.1229-3
Mystro256 bef77bf
- Fix building with gcc6 / fix FTBFS
Mystro256 bef77bf
Mystro256 bef77bf
* Mon Jan 12 2015 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1229-2
Mystro256 bef77bf
- Fix typo in desktop file
Mystro256 bef77bf
Mystro256 bef77bf
* Sat Apr 5 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1229-1
Mystro256 bef77bf
- Update to latest "release" version
Mystro256 bef77bf
Mystro256 bef77bf
* Mon Nov 18 2013 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1228-3
Mystro256 bef77bf
- Update patch for SFML, thanks to Hans de Goede
Mystro256 bef77bf
Mystro256 bef77bf
* Sun Nov 17 2013 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1228-2
Mystro256 bef77bf
- Added patch for SFML
Mystro256 bef77bf
Mystro256 bef77bf
* Sun Nov 17 2013 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1228-1
Mystro256 bef77bf
- Updated to new snapshot version
Mystro256 bef77bf
Mystro256 bef77bf
* Fri Mar 1 2013 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1159-1
Mystro256 bef77bf
- Updated to new upstream version
Mystro256 bef77bf
- Fixed some spec date typos
Mystro256 bef77bf
Mystro256 bef77bf
* Mon Dec 10 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1149-1
Mystro256 bef77bf
- Updated to new upstream version
Mystro256 bef77bf
- FFMpeg dep removed due to only needed by wx and now disabled by default
Mystro256 bef77bf
Mystro256 bef77bf
* Thu Jul 5 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1097-1
Mystro256 bef77bf
- Updated to new upstream version
Mystro256 bef77bf
- Disabling WX because its not supported
Mystro256 bef77bf
- Removed extra sources as they are now included
Mystro256 bef77bf
- Removed FFMPEG fix
Mystro256 bef77bf
- Moved ips.htm doc file into common to avoid duplicates
Mystro256 bef77bf
- Various cleanup
Mystro256 bef77bf
Mystro256 bef77bf
* Wed Mar 28 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1054-6
Mystro256 bef77bf
- Added man pages
Mystro256 bef77bf
Mystro256 bef77bf
* Tue Feb 14 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1054-5
Mystro256 bef77bf
- Added Zip as a dependancy
Mystro256 bef77bf
Mystro256 bef77bf
* Tue Feb 14 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1054-4
Mystro256 bef77bf
- Changed building commands to avoid failed builds
Mystro256 bef77bf
Mystro256 bef77bf
* Sun Jan 29 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1054-3
Mystro256 bef77bf
- Added missing Build Requirement: openal-soft-devel
Mystro256 bef77bf
- Removed redundant license files
Mystro256 bef77bf
Mystro256 bef77bf
* Thu Jan 26 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1054-2
Mystro256 bef77bf
- Added DCMAKE_SKIP_RPATH=ON to cmake (fixes rpath error)
Mystro256 bef77bf
- Added more relevant package summaries
Mystro256 bef77bf
- Fixed up the descriptions a bit
Mystro256 bef77bf
- Enabled Linking Support
Mystro256 bef77bf
- Various tweaks
Mystro256 bef77bf
Mystro256 bef77bf
* Thu Jan 26 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1054-1
Mystro256 bef77bf
- Updated to new upstream version
Mystro256 bef77bf
- Added new WX subpackage for new GUI
Mystro256 bef77bf
- Adding WX requires gui common subpackage to avoid conflicts
Mystro256 bef77bf
- Added DVERSION cmake tag for aesthetic reasons
Mystro256 bef77bf
Mystro256 bef77bf
* Sun Jan 22 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1001-4
Mystro256 bef77bf
- Added vbam-common package to avoid conflicts with common files
Mystro256 bef77bf
- Added ImageMagick build dep, as cmake checks for it
Mystro256 bef77bf
- Building now uses cmake macro
Mystro256 bef77bf
- Turned off building shared libs
Mystro256 bef77bf
- Removed unnecessary lines
Mystro256 bef77bf
- Fixed debuginfo-without-sources issue
Mystro256 bef77bf
Mystro256 bef77bf
* Sun Jan 22 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1001-3
Mystro256 bef77bf
- Fixed SPM summary
Mystro256 bef77bf
- Cleaned up SPEC for easier reading
Mystro256 bef77bf
Mystro256 bef77bf
* Sun Jan 8 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1001-2
Mystro256 bef77bf
- Fixed up spec file
Mystro256 bef77bf
- Split into two packages: sdl, gtk
Mystro256 bef77bf
Mystro256 bef77bf
* Sun Dec 18 2011 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.8.0.1001-1
Mystro256 bef77bf
- Initial package SPEC created
Mystro256 bef77bf