Пакет playonlinux: Specfile

%define  oname PlayOnLinux

Name:    playonlinux
Version: 4.4
Release: alt1

Summary: Play your Windows games on Linux
License: GPLv3
Group:   Games/Other
Url:     http://www.playonlinux.com
Packager: Denis Medvedev <nbr@altlinux.org>

Source: %name-%version.tar
# Source-url: https://github.com/PlayOnLinux/POL-POM-4/archive/%version/POL-POM-4-%version.tar.gz
Source1: playonlinux.sh
Source2: %oname.desktop
Patch: playonlinux-remove-capture-plugin.patch
Patch1: playonlinux-4.4-gita8fe4bb.patch

BuildRequires: rpm-build-python3
Requires: ImageMagick-tools
Requires: wget
Requires: gettext
Requires: unzip
Requires: cabextract
Requires: xterm
Requires: binutils
Requires: icoutils
Requires: jq

%add_findreq_skiplist %_datadir/%name/bash/*
%add_findreq_skiplist %_datadir/%name/lib/scripts.lib
%add_python3_path %_datadir/%name/python

ExclusiveArch: %ix86

%description
PlayOnLinux is a piece of sofware which allow you to install
and use easily numerous games and software designed to run
with Microsoft(R)'s Windows(R). Indeed, currently, still few
games are compatible with GNU/Linux, and it could be a factor
preventing from migrating to this system. PlayOnLinux brings an
accessible and efficient solution to this problem, cost-free
and respectful of the free software.

%prep
%setup
%patch -p1
%patch1 -p1

%install
mkdir %buildroot
mkdir -p %buildroot%_bindir/
mkdir -p %buildroot%_datadir/%name
mkdir -p %buildroot%_datadir/desktop-directories
mkdir -p %buildroot%_desktopdir
mkdir -p %buildroot%_pixmapsdir

cp -a * %buildroot%_datadir/%name

install -p %SOURCE1 %buildroot%_bindir/%name
rm %buildroot%_datadir/%name/LICENCE
cp %SOURCE2 %buildroot%_desktopdir/%oname.desktop
cp etc/%name.png %buildroot%_pixmapsdir/%name.png
cp etc/PlayOnLinux.directory %buildroot%_datadir/desktop-directories/%oname.directory
rm -f %buildroot%_datadir/%name/bin/smile
mkdir -p %buildroot%_libdir/%name
ln -sf /lib/libldap-2.4.so.2 %buildroot%_libdir/%name/libldap-2.4.so.2
ln -sf /usr/lib/alsa-lib/libasound_module_conf_pulse.so %buildroot%_libdir/%name/libasound_module_conf_pulse.so
ln -sf /usr/lib/libpulse.so.0 %buildroot%_libdir/%name/libpulse.so.0
ln -sf /lib/libnss_db.so.2 %buildroot%_libdir/%name/libnss_db.so.2

%files
%doc LICENCE CHANGELOG.md README.md TRANSLATORS
%_bindir/%name
%_datadir/%name
%_desktopdir/%oname.desktop
%_pixmapsdir/%name.png
%_datadir/desktop-directories/%oname.directory
%_libdir/%name/*

%changelog
* Sat Sep 25 2021 Anton Midyukov <antohami@altlinux.org> 4.4-alt1
- new version (4.4) with rpmgs script
- build with python3-module-wx

* Sun Jun 27 2021 Grigory Ustinov <grenka@altlinux.org> 4.3.4-alt3
- Fixed BR's (Closes: #40289).

* Fri Dec 11 2020 Grigory Ustinov <grenka@altlinux.org> 4.3.4-alt2
- Build new version (Closes: #39392).
- Add requirement on jq (Closes: #39404).
- Disable capture plugin (Closes: #39403).

* Mon Dec 07 2020 Grigory Ustinov <grenka@altlinux.org> 4.3.4-alt1
- Build new version.

* Tue Aug 25 2020 Grigory Ustinov <grenka@altlinux.org> 4.2.10-alt5
- Fix FTBFS.

* Tue Oct 02 2018 Grigory Ustinov <grenka@altlinux.org> 4.2.10-alt4
- Remove dependency on ImageMagick.

* Thu Apr 21 2016 Alexey Shabalin <shaba@altlinux.ru> 4.2.10-alt3.1
- rebuild with python-module-wx3.0

* Thu Jan 21 2016 Denis Medvedev <nbr@altlinux.org> 4.2.10-alt3
- Added i586 pulsaudio and nss libs for normal functioning of WoT

* Tue Jan 19 2016 Denis Medvedev <nbr@altlinux.org> 4.2.10-alt2
- icoutils and libldap dependency added for launcher of WoT

* Sat Jan 16 2016 Denis Medvedev <nbr@altlinux.org> 4.2.10-alt1
- New version

* Fri Jul 03 2015 Andrey Cherepanov <cas@altlinux.org> 4.2.8-alt1
- New version
- Fix conflict with python-module-wx3.0

* Thu Jul 02 2015 Andrey Cherepanov <cas@altlinux.org> 4.2.5-alt2
- Fix autorequires for gnustep
- Change packager name
- Fix build conflict with python-module-wx2.9

* Wed Jan 07 2015 Andrey Cherepanov <cas@altlinux.org> 4.2.5-alt1
- New version
- Remove obsolete encoding and add localization to desktop file
- Package documentation in md format and translatiors credits

* Tue May 21 2013 Gleb F-Malinovskiy <glebfm@altlinux.org> 4.2.1-alt1
- 4.2.1

* Tue Jan 22 2013 Gleb F-Malinovskiy <glebfm@altlinux.org> 4.1.9-alt1
- 4.1.9

* Mon Dec 10 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.1.8-alt1.1
- Rebuilt with gnustep-base 1.24.2

* Fri Nov 30 2012 Gleb F-Malinovskiy <glebfm@altlinux.org> 4.1.8-alt1
- 4.1.8
- drop /usr/bin/wine requirement

* Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 3.7.3-alt1.1
- Rebuild with Python-2.7

* Sun Mar 14 2010 Boris Savelev <boris@altlinux.org> 3.7.3-alt1
- new version
- add findreq skiplist (closes: #23149)

* Tue Jul 21 2009 Boris Savelev <boris@altlinux.org> 3.6-alt1
- new version

* Thu Mar 12 2009 Boris Savelev <boris@altlinux.org> 3.4-alt1
- initial build for Sisyphus

* Sat Mar 07 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 3.4-1mdv2009.1
+ Revision: 351817
- update to new version 3.4

* Fri Feb 13 2009 Guillaume Bedot <littletux@mandriva.org> 3.3.1-2mdv2009.1
+ Revision: 340055
- Make pol installable again
- Fix description

* Mon Feb 02 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 3.3.1-1mdv2009.1
+ Revision: 336455
- update to new version 3.3.1

* Mon Jan 26 2009 Tomasz Pawel Gajc <tpg@mandriva.org> 3.3-1mdv2009.1
+ Revision: 333868
- update to new version 3.3

* Mon Dec 29 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 3.2.2-2mdv2009.1
+ Revision: 320803
- rebuild for new python

* Mon Dec 15 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 3.2.2-1mdv2009.1
+ Revision: 314396
- update to new version 3.2.2

* Sun Nov 30 2008 Emmanuel Andry <eandry@mandriva.org> 3.2.1-1mdv2009.1
+ Revision: 308522
- New version (bugfix)

* Sat Nov 29 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 3.2-1mdv2009.1
+ Revision: 308015
- update to new version 3.2

* Tue Nov 11 2008 Emmanuel Andry <eandry@mandriva.org> 3.1.3-1mdv2009.1
+ Revision: 302278
- update to new version 3.1.3

* Mon Oct 20 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 3.1.2-1mdv2009.1
+ Revision: 295743
- update to new version 3.1.2
- fix executable script

* Thu Jul 10 2008 Olivier Blin <oblin@mandriva.com> 3.0.8-3mdv2009.0
+ Revision: 233490
- do not untar the main source two times
- improve helper (use sh, do not fork, keep return code)
- python-devel is not required to build
- require wxPythonGTK
- gnome-python-extras/pygtk2.0/python-dbus are not used anymore

* Thu Jul 10 2008 Olivier Blin <oblin@mandriva.com> 3.0.8-2mdv2009.0
+ Revision: 233481
- require mesa-demos (for glxinfo)
- require cabextract and lzma
- require binutils for ar

* Thu Jul 03 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 3.0.8-1mdv2009.0
+ Revision: 231165
- update to new version 3.0.8

* Wed Jun 25 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 3.0.7-1mdv2009.0
+ Revision: 228894
- update to new version 3.0.7

* Mon Jun 16 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 3.0.4-1mdv2009.0
+ Revision: 219635
- add source and spec file
- Created package structure for playonlinux.