playonlinux/playonlinux.spec

101 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

%define oname PlayOnLinux
Name: playonlinux
Version: 4.2.4
Release: 1mamba
Summary: Play your Windows games on Linux
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: openmamba WebBuild System <webbuild@openmamba.org>
URL: http://www.playonlinux.com/en
Source: http://www.playonlinux.com/script_files/PlayOnLinux/%{version}/PlayOnLinux_%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires: wxPython
Requires: ImageMagick
Requires: wget
Requires: gettext
Requires: unzip
Requires: cabextract
Requires: xz
Requires: p7zip
Requires: xterm
Requires: netcat
Requires: wine
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
%prep
%setup -q -n playonlinux
%build
%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
cat > %{buildroot}%{_bindir}/playonlinux << EOF
#!/bin/sh
cd %{_datadir}/playonlinux
./playonlinux "\$@"
cd /
EOF
chmod +x %{buildroot}%{_bindir}/playonlinux
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}/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/*
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/desktop-directories/%{oname}.directory
%doc LICENCE
%changelog
* Fri Jul 18 2014 Automatic Build System <autodist@mambasoft.it> 4.2.4-1mamba
- automatic version update by autodist
* Mon Jul 14 2014 Automatic Build System <autodist@mambasoft.it> 4.2.3-1mamba
- automatic version update by autodist
* Thu Jan 02 2014 Automatic Build System <autodist@mambasoft.it> 4.2.2-1mamba
- automatic version update by autodist
* Thu May 16 2013 openmamba WebBuild System <webbuild@openmamba.org> 4.2.1-5mamba
- Fixed permissions
* Wed May 15 2013 openmamba WebBuild System <webbuild@openmamba.org> 4.2.1-4mamba
- Added launcher in /usr/bin
* Wed May 15 2013 openmamba WebBuild System <webbuild@openmamba.org> 4.2.1-3mamba
- Fixed the specfile
* Wed May 15 2013 openmamba WebBuild System <webbuild@openmamba.org> 4.2.1-2mamba
- Fixed requirements
* Tue May 14 2013 openmamba WebBuild System <webbuild@openmamba.org> 4.2.1-1mamba
- package created by ercolinux using the webbuild interface