f99b28e
# This package depends on automagic byte compilation
f99b28e
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
f99b28e
%global _python_bytecompile_extra 1
f99b28e
Jiří Konečný edf6216
Name: playonlinux
3cfadf6
Version: 4.3.4
Jiří Konečný edf6216
Summary: Graphical front-end for Wine
Jiří Konečný edf6216
License: GPLv3
Jiří Konečný edf6216
URL: https://www.playonlinux.com
496934d
Release: 2%{?dist}
54563f8
Source0: https://github.com/PlayOnLinux/POL-POM-4/archive/%{version}.tar.gz
54563f8
54563f8
# Wine supported on these arches
54563f8
ExclusiveArch: %{arm} aarch64 %{ix86} x86_64
54563f8
Jiří Konečný edf6216
Requires: unzip
Jiří Konečný edf6216
Requires: wine
Jiří Konečný edf6216
Requires: wget
Jiří Konečný edf6216
Requires: xterm
Jiří Konečný edf6216
Requires: python2 > 2.4
Jiří Konečný edf6216
Requires: wxPython
Jiří Konečný edf6216
Requires: ImageMagick
Jiří Konečný edf6216
Requires: cabextract
Jiří Konečný edf6216
Requires: icoutils
Jiří Konečný edf6216
Requires: p7zip-plugins
75e21d8
Requires: jq
b9984c8
Requires: gnupg
a64e9a0
BuildRequires:  gcc
Jiří Konečný edf6216
BuildRequires: gzip
Jiří Konečný edf6216
BuildRequires: mesa-libGL-devel
Jiří Konečný edf6216
BuildRequires: python2 > 2.4
Jiří Konečný edf6216
BuildRequires: desktop-file-utils
Jiří Konečný edf6216
BuildRequires: gettext
Jiří Konečný edf6216
BuildRequires: libappstream-glib
Jiří Konečný edf6216
Jiří Konečný edf6216
%global BUILD_DIR %{buildroot}/%{_datadir}/%{name}
Jiří Konečný edf6216
Jiří Konečný edf6216
%description
Jiří Konečný edf6216
New users can often find Wine to be intimidating and difficult to use.
Jiří Konečný edf6216
PlayOnLinux simplifies much of this and makes installing and using
Jiří Konečný edf6216
Windows programs easier.
Jiří Konečný edf6216
PlayOnLinux has the database of Windows applications from which the user
Jiří Konečný edf6216
can install desired application with a few clicks. It will automatically
Jiří Konečný edf6216
setup your Wine prefix and download any required Windows libraries.
Jiří Konečný edf6216
Jiří Konečný edf6216
%prep
Jiri Konecny 0e88937
%autosetup -n POL-POM-4-%{version}
Jiří Konečný edf6216
Jiří Konečný edf6216
%build
66964c4
CFLAGS="$RPM_OPT_FLAGS" %make_build
Jiří Konečný edf6216
Jiří Konečný edf6216
%install
Jiří Konečný edf6216
%make_install
Jiří Konečný edf6216
%find_lang pol
Jiří Konečný edf6216
3cfadf6
sed -i '1{/^#!\//d}' %{BUILD_DIR}/python/setupwindow/gui_server.py \
3cfadf6
                     %{BUILD_DIR}/tests/python/test_versionlower.py \
3cfadf6
                     %{BUILD_DIR}/tests/bash/test-versionlower
Jiří Konečný edf6216
75e21d8
grep -lZsr "#!/usr/bin/env python" %{BUILD_DIR}/python/ | xargs -0 -l sed -i -e "s%#\!/usr/bin/env python%#\!/usr/bin/env python2%"
75e21d8
grep -lZsr "#!/usr/bin/python" %{BUILD_DIR}/python/ | xargs -0 -l sed -i -e "s%#\!/usr/bin/python%#\!/usr/bin/python2%"
75e21d8
Jiří Konečný edf6216
%check
Jiří Konečný edf6216
desktop-file-validate %{buildroot}/%{_datadir}/applications/PlayOnLinux.desktop
Jiří Konečný edf6216
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/PlayOnLinux.appdata.xml
Jiří Konečný edf6216
Jiří Konečný edf6216
%files -f pol.lang
Jiří Konečný edf6216
%doc README.md
Jiří Konečný edf6216
%license LICENCE doc/copyright
Jiří Konečný edf6216
%{_bindir}/*
Jiří Konečný edf6216
%{_mandir}/man1/*
Jiří Konečný edf6216
%{_datadir}/%{name}/
Jiří Konečný edf6216
%{_datadir}/pixmaps/*
Jiří Konečný edf6216
%{_datadir}/applications/*
Jiří Konečný edf6216
%{_datadir}/appdata/*
Jiří Konečný edf6216
%{_libexecdir}/playonlinux-check_dd
Jiří Konečný edf6216
Jiří Konečný edf6216
%changelog
496934d
* Mon Feb 11 2019 Jiri Konecny <jkonecny@redhat.com> - 4.3.4-2
496934d
- Add gnupg as new dependency (Artem Polishchuk <ego.cordatus@gmail.com>)
496934d
3cfadf6
* Sun Jan 06 2019 Jiri Konecny <jkonecny@redhat.com> - 4.3.4-1
3cfadf6
- Update to 4.3.4
3cfadf6
- Update position of gui_server source code for sed
3cfadf6
75e21d8
* Mon Dec 17 2018 Jiri Konecny <jkonecny@redhat.com> - 4.3.3-1
75e21d8
- Update to 4.3.3
75e21d8
- Fix python shebangs to python2
75e21d8
- Add new runtime dependency jq
75e21d8
344e134
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.12-5
344e134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
344e134
61df8b8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.12-4
61df8b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
61df8b8
3850f7a
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.12-3
3850f7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3850f7a
af93904
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.12-2
af93904
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
af93904
Jiri Konecny f1650dc
* Thu Jun 22 2017 Fedora Release Monitoring  <release-monitoring@fedoraproject.org> - 4.2.12-1
Jiri Konecny f1650dc
- Update to 4.2.12 (#1463027)
Jiri Konecny f1650dc
Jiri Konecny 0e88937
* Wed May 31 2017 Fedora Release Monitoring  <release-monitoring@fedoraproject.org> - 4.2.11-1
Jiri Konecny 0e88937
- Update to 4.2.11 (#1457013)
Jiri Konecny 0e88937
- Remove patches contained in the new release
Jiri Konecny 0e88937
017c48e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.10-11
017c48e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
017c48e
54563f8
* Sun Nov 13 2016 Peter Robinson <pbrobinson@fedoraproject.org> 4.2.10-10
54563f8
- Define ExclusiveArch with arches wine supports
54563f8
Jiri Konecny f2565ea
* Mon Oct 10 2016 Jiri Konecny <jkonecny@redhat.com> - 4.2.10-9
Jiri Konecny f2565ea
- Add patch to fix GUI layout issues on Wayland
Jiri Konecny f2565ea
Jiri Konecny 0263904
* Sat Sep  3 2016 Jiri Konecny <jkonecny@redhat.com> - 4.2.10-8
Jiri Konecny 0263904
- Add new patch for the updated appdata.xml file
Jiri Konecny 0263904
- Improve old Patch2 for desktop file
Jiri Konecny 0263904
- Rebase Patch6 and Patch7 on top of Patch2
Jiri Konecny 0263904
Jiří Konečný 96d74a5
* Wed Mar  9 2016 Jiri Konecny <jkonecny@redhat.com> - 4.2.10-7
Jiří Konečný 96d74a5
- Apply patch which fixing bad icon path in a desktop file
Jiří Konečný 96d74a5
66964c4
* Sat Mar  5 2016 Ville Skyttä <ville.skytta@iki.fi> - 4.2.10-6
66964c4
- Build with $RPM_OPT_FLAGS
66964c4
Jiří Konečný edf6216
* Fri Jan 22 2016 Jiri Konecny <jkonecny@redhat.com> 4.2.10-5
Jiří Konečný edf6216
- Add patch which will fix installation of locales to the system
Jiří Konečný edf6216
Jiří Konečný edf6216
* Wed Jan 20 2016 Jiri Konecny <jkonecny@redhat.com> 4.2.10-4
Jiří Konečný edf6216
- Change sed command to simpler and safer version
Jiří Konečný edf6216
- Change appdata patches
Jiří Konečný edf6216
- Fix installation of appdata
Jiří Konečný edf6216
- Better description
Jiří Konečný edf6216
Jiří Konečný edf6216
* Wed Jan 13 2016 Jiri Konecny <jkonecny@redhat.com> 4.2.10-3
Jiří Konečný edf6216
- Removed shebang and executable bit from scripts in /usr/share
Jiří Konečný edf6216
- Change of summary and description
Jiří Konečný edf6216
- Add 2 new patches which adding appdata.xml file
Jiří Konečný edf6216
- Add new build requires for appstream-util check
Jiří Konečný edf6216
Jiří Konečný edf6216
* Thu Jan 7 2016 Jiri Konecny <jkonecny@redhat.com> 4.2.10-2
Jiří Konečný edf6216
- Reworked patches for Makefile (Patch0, Patch1, Patch3 changed)
Jiří Konečný edf6216
- Using make_install and make_build macros
Jiří Konečný edf6216
Jiří Konečný edf6216
* Mon Jan 4 2016 Jiri Konecny <jkonecny@redhat.com> 4.2.10-1
Jiří Konečný edf6216
- New version 4.2.10
Jiří Konečný edf6216
- Use more macros
Jiří Konečný edf6216
- Add missing dependencies
Jiří Konečný edf6216
Jiří Konečný edf6216
* Thu Dec 10 2015 Jiri Konecny <jkonecny@redhat.com> 4.2.9-2
Jiří Konečný edf6216
- Fixed missing lang files
Jiří Konečný edf6216
- Remove exclude
Jiří Konečný edf6216
Jiří Konečný edf6216
* Wed Nov 11 2015 Jiri Konecny <jkonecny@redhat.com> 4.2.9-1
Jiří Konečný edf6216
- Package creation
Jiří Konečný edf6216