Blame pcsxr.spec

Mystro256 a3a2c42
%global commit 62467b86871aee3d70c7445f3cb79f0858ec566e
Mystro256 ce6df99
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Mystro256 a3a2c42
%global gitdate 20190306
Mystro256 ce6df99
%global fgittag %{gitdate}.git%{shortcommit}
Mystro256 472d48d
%undefine _hardened_build
Mystro256 472d48d
Name:           pcsxr
Mystro256 472d48d
Version:        1.9.94
Mystro256 202abb6
Release:        23%{?fgittag:.%{fgittag}}%{?dist}
Mystro256 472d48d
Summary:        A plugin based PlayStation (PSX) emulator with high compatibility
Mystro256 472d48d
Mystro256 ce6df99
#All code is distributed as GPLv3+ except:
Mystro256 472d48d
# SOURCE/libpcsxcore/coff.h is BSD License (no advertising)
Mystro256 472d48d
# SOURCE/libpcsxcore/sjisfont.h is Public Domain
Mystro256 472d48d
# SOURCE/libpcsxcore/psemu_plugin_defs.h is Public Domain
Mystro256 ce6df99
License:        GPLv3+ and BSD and Public Domain
Mystro256 a3a2c42
Url:            https://github.com/iCatButler/pcsxr
Mystro256 a3a2c42
Source0:        https://github.com/iCatButler/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
Mystro256 3bd0c86
#Appdata:
Mystro256 3bd0c86
Source1:        %{name}.appdata.xml
Mystro256 fa7bb6c
#This is a hack to get it to build
Mystro256 fa7bb6c
#I would send a patch upstream if I knew how to fix this properly
Mystro256 fa7bb6c
Patch0:         0001-Fix-Pango-includedirs.patch
Mystro256 472d48d
Mystro256 ce6df99
BuildRequires:  alsa-lib-devel
Mystro256 ce6df99
BuildRequires:  pulseaudio-libs-devel
Mystro256 ce6df99
BuildRequires:  atk-devel
Mystro256 472d48d
BuildRequires:  SDL2-devel
Mystro256 ce6df99
BuildRequires:  cairo-devel
Mystro256 ce6df99
BuildRequires:  cmake
Mystro256 ce6df99
BuildRequires:  gcc
Mystro256 ce6df99
BuildRequires:  gcc-c++
Mystro256 ce6df99
BuildRequires:  gdk-pixbuf2-devel
Mystro256 472d48d
BuildRequires:  gettext
Mystro256 472d48d
BuildRequires:  glib2-devel
Mystro256 ce6df99
BuildRequires:  glibc-devel
Mystro256 ce6df99
BuildRequires:  gtk3-devel
Mystro256 fa7bb6c
BuildRequires:  harfbuzz-devel
Mystro256 ce6df99
BuildRequires:  libarchive-devel
Mystro256 ce6df99
BuildRequires:  libcdio-devel
Mystro256 ce6df99
BuildRequires:  libXtst-devel
Mystro256 ce6df99
BuildRequires:  libXv-devel
Mystro256 fa7bb6c
BuildRequires:  libXxf86vm-devel
Mystro256 ce6df99
BuildRequires:  mesa-libGL-devel
Mystro256 ce6df99
BuildRequires:  nasm
Mystro256 ce6df99
BuildRequires:  pango-devel
Mystro256 ce6df99
Mystro256 472d48d
BuildRequires:  desktop-file-utils
Mystro256 472d48d
BuildRequires:  libappstream-glib
Mystro256 ce6df99
BuildRequires:  hicolor-icon-theme
Mystro256 ce6df99
Mystro256 ce6df99
Requires:       hicolor-icon-theme
Mystro256 472d48d
Mystro256 472d48d
#modified from debian files
Mystro256 472d48d
%description
Mystro256 472d48d
PCSX-Reloaded is an advanced PlayStation (PSX) emulator, which uses a plugin
Mystro256 472d48d
architecture to provide full support for all components of the PSX. It has full
Mystro256 472d48d
emulation support for game pads, videos, sound, memory cards, and other
Mystro256 472d48d
important PSX components, and is able to play many games without problems.
Mystro256 472d48d
Mystro256 472d48d
%prep
Mystro256 a3a2c42
%autosetup -p1 -n %{name}-%{commit}
Mystro256 472d48d
#remove any unnecessary files:
Mystro256 472d48d
rm -f -r win32 macosx
Mystro256 ce6df99
#Remove changes to c/cxx flags, upstream strips out debug symbols
Mystro256 ce6df99
sed -i '/CMAKE_C.*_FLAGS/d' CMakeLists.txt
Mystro256 ce6df99
#Remove cmake rule to install license, the license macro install it instead
Mystro256 ce6df99
sed -i '/COPYING/d' doc/CMakeLists.txt
Mystro256 ce6df99
#Add snapshot info into about dialog
Mystro256 ce6df99
sed -i 's/"git"/"%{fgittag}"/' gui/AboutDlg.c
Mystro256 472d48d
Mystro256 472d48d
%build
Mystro256 202abb6
%cmake . -DUSE_LIBCDIO:BOOL=ON -DUSE_LIBARCHIVE:BOOL=ON \
Mystro256 202abb6
  -DCMAKE_EXE_LINKER_FLAGS="-zmuldefs -fno-pie" \
Mystro256 202abb6
  -DCMAKE_MODULE_LINKER_FLAGS="-zmuldefs"
Mystro256 472d48d
Mystro256 472d48d
%install
Mystro256 472d48d
%make_install
Mystro256 ce6df99
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
Mystro256 472d48d
#Install appdata.xml and verify
Mystro256 3bd0c86
install -p -D -m 0644 %{SOURCE1} \
Mystro256 472d48d
  %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
Mystro256 472d48d
appstream-util validate-relax --nonet \
Mystro256 472d48d
  %{buildroot}/%{_datadir}/appdata/*.appdata.xml
Mystro256 472d48d
#Find locale
Mystro256 472d48d
%find_lang %{name}
Mystro256 472d48d
Mystro256 472d48d
%files -f %{name}.lang
Mystro256 472d48d
%license COPYING
Mystro256 ce6df99
%{_docdir}/%{name}
Mystro256 472d48d
%{_mandir}/man1/%{name}.1*
Mystro256 472d48d
%{_bindir}/%{name}
Mystro256 472d48d
%{_libdir}/games/psemu
Mystro256 472d48d
%{_datadir}/applications/%{name}.desktop
Mystro256 472d48d
%{_datadir}/appdata/*.appdata.xml
Mystro256 ce6df99
%{_datadir}/icons/hicolor/*/apps/%{name}-icon.png
Mystro256 472d48d
Mystro256 472d48d
%changelog
Mystro256 202abb6
-* Sat May 16 2020 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-23.20190306.git62467b8
Mystro256 202abb6
-- Fix build
Mystro256 202abb6
1bcf6ec
* Tue Mar 31 2020 Adrian Reber <adrian@lisas.de> - 1.9.94-22.20190306.git62467b8
1bcf6ec
- Rebuilt for libcdio-2.1.0
1bcf6ec
Mystro256 c31d794
* Fri Mar 6 2020 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-21.20190306.git62467b8
Mystro256 fa7bb6c
- Update git snapshot
Mystro256 62656e3
- Fix Fedora 31 build issues
Mystro256 fa7bb6c
0653dbb
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.94-20.20181218.git7ce3857
0653dbb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0653dbb
7172c9a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.94-19.20181218.git7ce3857
7172c9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7172c9a
Mystro256 ce6df99
* Tue Feb 12 2019 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-18.20181218.git7ce3857
Mystro256 ce6df99
- Update to git version, old upstream is dead
Mystro256 ce6df99
227d2ff
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.94-17
227d2ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
227d2ff
effd174
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.94-16
effd174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
effd174
7c73c1e
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.94-15
7c73c1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7c73c1e
012b34b
* Thu Jan 25 2018 Adrian Reber <adrian@lisas.de> - 1.9.94-14
012b34b
- Rebuilt for libcdio-2.0.0
012b34b
dabffc0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.94-13
dabffc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dabffc0
df3bdc7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.94-12
df3bdc7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
df3bdc7
Mystro256 a1c269e
* Tue May 30 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-11
Mystro256 a1c269e
- Backport fix for overflow issues
Mystro256 a1c269e
Mystro256 7ac66ae
* Sun Feb 12 2017 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-10
Mystro256 7ac66ae
- Backport fix for zlib-1.2.9+
Mystro256 7ac66ae
b95a2f5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.94-9
b95a2f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b95a2f5
Mystro256 3bd0c86
* Thu Dec 22 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-8
Mystro256 3bd0c86
- Appdata fixes
Mystro256 3bd0c86
Mystro256 d7c21bf
* Sun Dec 4 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-7
Mystro256 d7c21bf
- Added patch for missing include
Mystro256 d7c21bf
Mystro256 472d48d
* Sat Nov 26 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-6
Mystro256 472d48d
- Remove assert patch (issue was fixed in 1.9.93)
Mystro256 472d48d
- Added appdata
Mystro256 472d48d
- Removed unnecessary build require libglade2
Mystro256 472d48d
- Updated source0 url
Mystro256 472d48d
Mystro256 472d48d
* Wed Nov 23 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-5
Mystro256 472d48d
- Remove static libraries
Mystro256 472d48d
- Use license macro for COPYING
Mystro256 472d48d
Mystro256 472d48d
* Wed Nov 23 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-4
Mystro256 472d48d
- Use make macros
Mystro256 472d48d
- Remove redundant prefix parameter in configure macro
Mystro256 472d48d
- Use autosetup
Mystro256 472d48d
Mystro256 472d48d
* Wed Nov 02 2016 Leigh Scott <leigh123linux@googlemail.com> - 1.9.94-3
Mystro256 472d48d
- Disable hardening (rfbz#4316)
Mystro256 472d48d
Mystro256 472d48d
* Tue Oct 28 2014 Nicolas Chauvet <kwizart@gmail.com> - 1.9.94-2
Mystro256 472d48d
- Restore dist tag
Mystro256 472d48d
Mystro256 472d48d
* Mon Oct 27 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.94-1
Mystro256 472d48d
- Updated to 1.9.94 release (marked as alpha on website)
Mystro256 472d48d
- Use SDL2
Mystro256 472d48d
Mystro256 472d48d
* Sat Apr 5 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.93-2.svn89782
Mystro256 472d48d
- Update to svn for Fedora 21 (beta 1.9.93 version doesn't build)
Mystro256 472d48d
Mystro256 472d48d
* Sat Apr 5 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.93-1
Mystro256 472d48d
- Updated to new beta release
Mystro256 472d48d
Mystro256 472d48d
* Thu May 30 2013 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-4.20130530svn85000
Mystro256 472d48d
- Updated to new SVN version
Mystro256 472d48d
Mystro256 472d48d
* Sat Feb 16 2013 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-3.20130216svn82923
Mystro256 472d48d
- Updated to new SVN version
Mystro256 472d48d
- Changing version numbering to match Guidelines
Mystro256 472d48d
Mystro256 472d48d
* Fri Jan 4 2013 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-2.20130104svn82044
Mystro256 472d48d
- Fixed missing gtk3 dependency
Mystro256 472d48d
Mystro256 472d48d
* Fri Jan 4 2013 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20130104svn82044
Mystro256 472d48d
- Updated to new SVN checkout version
Mystro256 472d48d
- Removed unnecessary zero length Doc file (NEWS)
Mystro256 472d48d
Mystro256 472d48d
* Mon Jul 23 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20120723svn78971
Mystro256 472d48d
- Added a patch to temporarily fix a 64bit-only problem
Mystro256 472d48d
Mystro256 472d48d
* Thu Jul 19 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20120719svn78971
Mystro256 472d48d
- Updated to new SVN checkout version
Mystro256 472d48d
- Removed unnessary hicolor icon updating
Mystro256 472d48d
Mystro256 472d48d
* Thu Jul 5 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20120705svn78288
Mystro256 472d48d
- Updated to new SVN checkout version
Mystro256 472d48d
Mystro256 472d48d
* Fri Mar 9 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20120421svn77577
Mystro256 472d48d
- Updated to new SVN checkout version
Mystro256 472d48d
Mystro256 472d48d
* Fri Mar 9 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20120309svn75683
Mystro256 472d48d
- Updated to new SVN checkout version
Mystro256 472d48d
- Changed define to global
Mystro256 472d48d
Mystro256 472d48d
* Sun Feb 19 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20120219svn75200
Mystro256 472d48d
- Updated to new SVN checkout version
Mystro256 472d48d
Mystro256 472d48d
* Sun Feb 19 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20120219svn75156
Mystro256 472d48d
- Updated to new SVN checkout version
Mystro256 472d48d
- Added svn macro
Mystro256 472d48d
- Removed incorrect disabling of opengl for 64bit
Mystro256 472d48d
Mystro256 472d48d
* Wed Feb 8 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-3.20120128svn73976
Mystro256 472d48d
- Minor source change for convenience.
Mystro256 472d48d
Mystro256 472d48d
* Wed Feb 8 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-2.20120128svn73976
Mystro256 472d48d
- Fixed and optimized source files for size and convenience.
Mystro256 472d48d
- Added missing file in license breakdown
Mystro256 472d48d
Mystro256 472d48d
* Sat Jan 28 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20120128svn73976
Mystro256 472d48d
- Fixed version number to be more specific
Mystro256 472d48d
- Fixed inproper license
Mystro256 472d48d
- Trimmed down the source, removed non-linux code
Mystro256 472d48d
Mystro256 472d48d
* Sat Jan 28 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 1.9.92-1.20120128svn
Mystro256 472d48d
- Initial package SPEC created