added needed requirements [release 4.4-3mamba;Mon Jan 10 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 10:21:32 +01:00
parent a8b7f4cd3a
commit b02dfafdc9
2 changed files with 48 additions and 45 deletions

View File

@ -1,4 +1,3 @@
# playonlinux
is a piece of software which allows you to easily install and use numerous games and apps designed to run with Microsoft® Windows®.

View File

@ -1,18 +1,22 @@
%define oname PlayOnLinux
Name: playonlinux
Version: 4.3.4
Release: 1mamba
Version: 4.4
Release: 3mamba
Summary: Play your Windows games on Linux
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.playonlinux.com/en
Source: http://www.playonlinux.com/script_files/PlayOnLinux/%{version}/PlayOnLinux_%{version}.tar.gz
URL: https://www.playonlinux.com/en
Source: https://github.com/PlayOnLinux/POL-POM-4.git/%{version}/POL-POM-4-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libglvnd-devel
## AUTOBUILDREQ-END
Requires: wxPython
Requires: python-wxPython-py3
Requires: python-natsort-py3
Requires: jq
Requires: ImageMagick
Requires: wget
Requires: gettext
@ -28,57 +32,57 @@ Requires: /usr/bin/nc
Requires: wine
#% endif
Requires: icoutils
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
is a piece of software which allows you to easily install and use numerous games and apps designed to run with Microsoft® Windows®.
%debug_package
#% debug_package
%prep
%setup -q -n playonlinux
%setup -q -n POL-POM-4-%{version}
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/desktop-directories
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
%makeinstall
cat > %{buildroot}%{_bindir}/playonlinux << EOF
#!/bin/sh
cd %{_datadir}/playonlinux
./playonlinux "\$@"
cd /
EOF
chmod +x %{buildroot}%{_bindir}/playonlinux
install -d -m0755 %{buildroot}%{_sysconfdir}
#mv %{buildroot}%{_datadir}/%{name}/etc %{buildroot}%{_sysconfdir}/%{name}
#ln -s ../../../etc/%{name} %{buildroot}%{_datadir}/%{name}/etc
cp -a * %{buildroot}%{_datadir}/%{name}
cp etc/PlayOnLinux.desktop %{buildroot}%{_datadir}/applications/%{oname}.desktop
cp %{buildroot}%{_datadir}/%{name}/etc/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
cp %{buildroot}%{_datadir}/%{name}/etc/PlayOnLinux.directory %{buildroot}%{_datadir}/desktop-directories/%{oname}.directory
cp -rf etc/* %{buildroot}%{_sysconfdir}/%{name}/
%find_lang pol
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%files -f pol.lang
%defattr(-,root,root)
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/*
#%dir %{_sysconfdir}/%{name}
#%{_sysconfdir}/%{name}/*
%{_bindir}/%{name}
%{_bindir}/playonlinux-pkg
%{_prefix}/libexec/playonlinux-check_dd
%{_datadir}/appdata/PlayOnLinux.appdata.xml
%{_datadir}/applications/PlayOnLinux.desktop
%{_datadir}/pixmaps/playonlinux*.png
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/desktop-directories/%{oname}.directory
%{_mandir}/man1/playonlinux-pkg.1*
%{_mandir}/man1/playonlinux.1*
%doc LICENCE
%changelog
* Mon Jan 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4-3mamba
- added needed requirements
* Tue Apr 20 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4-2mamba
- don't move internal etc dir to sysconfdir (upgrade problem and may not be useful)
* Sun Apr 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4-1mamba
- update to 4.4
* Fri Dec 28 2018 Automatic Build System <autodist@mambasoft.it> 4.3.4-1mamba
- automatic version update by autodist