Blame pcsxr.spec

Mystro256 472d48d
%global svnversion 87788
Mystro256 472d48d
%undefine _hardened_build
Mystro256 472d48d
Name:           pcsxr
Mystro256 472d48d
Version:        1.9.94
012b34b
Release:        14%{?dist}
Mystro256 472d48d
Summary:        A plugin based PlayStation (PSX) emulator with high compatibility
Mystro256 472d48d
Mystro256 472d48d
#All is GPLv2+ 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 472d48d
License:        GPLv2+ and BSD and Public Domain
Mystro256 472d48d
Url:            http://pcsxr.codeplex.com/
Mystro256 472d48d
#The source can be downloaded here (1.9.94 is a snapshot of svn 87788):
Mystro256 472d48d
#https://pcsxr.codeplex.com/downloads/get/756488
Mystro256 3bd0c86
Source0:        https://pcsxr.codeplex.com/downloads/get/756488#/%{name}-%{svnversion}.zip
Mystro256 3bd0c86
#Appdata:
Mystro256 3bd0c86
Source1:        %{name}.appdata.xml
Mystro256 b18fd95
#Missing include, bug filed upstream:
Mystro256 b18fd95
#https://pcsxr.codeplex.com/workitem/12408
Mystro256 3bd0c86
Patch0:         %{name}-%{version}-missinginclude.patch
Mystro256 7ac66ae
#Fix for zlib 1.2.9+, backported from upstream PR:
Mystro256 7ac66ae
#https://pcsxr.codeplex.com/SourceControl/network/forks/mgorny/pcsxr/contribution/9061
Mystro256 7ac66ae
Patch1:         %{name}-%{version}-zlib129fix.patch
Mystro256 a1c269e
#Submitted upstream in master:
Mystro256 a1c269e
#https://pcsxr.codeplex.com/SourceControl/changeset/69e178589897f8f89cf52812537935134ed14fe4
Mystro256 a1c269e
#https://pcsxr.codeplex.com/SourceControl/changeset/9f4f1ce8f87318b4503ecd0eb2763796b5505c6d
Mystro256 a1c269e
Patch2:         %{name}-%{version}-SDLjoyoverflowbug.patch
Mystro256 472d48d
Mystro256 472d48d
BuildRequires:  SDL2-devel
Mystro256 472d48d
BuildRequires:  gtk3-devel
Mystro256 472d48d
BuildRequires:  nasm
Mystro256 472d48d
BuildRequires:  mesa-libGL-devel
Mystro256 472d48d
BuildRequires:  gettext
Mystro256 472d48d
BuildRequires:  libXv-devel
Mystro256 472d48d
BuildRequires:  libXtst-devel
Mystro256 472d48d
BuildRequires:  libcdio-devel
Mystro256 472d48d
BuildRequires:  intltool
Mystro256 472d48d
BuildRequires:  glib2-devel
Mystro256 472d48d
BuildRequires:  libtool
Mystro256 472d48d
BuildRequires:  autoconf
Mystro256 472d48d
BuildRequires:  desktop-file-utils
Mystro256 472d48d
BuildRequires:  libappstream-glib
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 472d48d
%autosetup -p1 -n %{name}
Mystro256 472d48d
#remove any unnecessary files:
Mystro256 472d48d
rm -f -r win32 macosx
Mystro256 472d48d
Mystro256 472d48d
%build
Mystro256 472d48d
sh autogen.sh
Mystro256 472d48d
%configure --enable-libcdio --enable-opengl
Mystro256 472d48d
%make_build
Mystro256 472d48d
Mystro256 472d48d
%install
Mystro256 472d48d
%make_install
Mystro256 472d48d
#Install desktop file
Mystro256 472d48d
desktop-file-install \
Mystro256 472d48d
  --remove-key=Encoding \
Mystro256 472d48d
  --dir %{buildroot}%{_datadir}/applications \
Mystro256 472d48d
  data/%{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
#Remove static libraries
Mystro256 472d48d
find %{buildroot} -name '*.la' -exec rm -f {} ';'
Mystro256 472d48d
#Find locale
Mystro256 472d48d
%find_lang %{name}
Mystro256 472d48d
Mystro256 472d48d
%files -f %{name}.lang
Mystro256 472d48d
%doc doc/keys.txt doc/tweaks.txt AUTHORS README
Mystro256 472d48d
%license COPYING
Mystro256 472d48d
%{_mandir}/man1/%{name}.1*
Mystro256 472d48d
%{_datadir}/%{name}
Mystro256 472d48d
%{_datadir}/pixmaps/%{name}-icon.png
Mystro256 472d48d
%{_datadir}/psemu
Mystro256 472d48d
%{_bindir}/%{name}
Mystro256 472d48d
%{_libdir}/games/psemu
Mystro256 472d48d
%{_datadir}/applications/%{name}.desktop
Mystro256 472d48d
%{_datadir}/appdata/*.appdata.xml
Mystro256 472d48d
Mystro256 472d48d
%changelog
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