%define _name degrees-of-lewdity-plus Name: DoLP Version: 0.741 Release: 1%{?dist} Summary: Degrees of Lewdity Plus is an erotic game. License: CC-BY-4.0 URL: https://gitgud.io/Frostberg/degrees-of-lewdity-plus Source: %{url}/-/archive/v%{version}/%{_name}-v%{version}.tar.gz BuildArch: noarch %description Degrees of Lewdity Plus is an erotic game. You play an 18-year-old in a town full of people with lewd intentions. Go to school and find honest work, turn to a life of crime, or sell your body in more carnal ways. The game has strong sexual themes, and lots of sex in general. It is inappropriate for minors %prep %autosetup -n %{_name}-v%{version} %build ./compile.sh %install mkdir -p %{buildroot}%{_datadir}/%{name}/ mkdir -p %{buildroot}%{_datadir}/applications/ cat < %{buildroot}%{_datadir}/applications/%{name}.desktop [Desktop Entry] Type=Application Version=1.0 Name=DoLP GenericName=Degrees of Lewdity Plus Comment=An erotic game. Exec=firefox /usr/share/DoLP/'Degrees of Lewdity.html' Icon=/usr/share/DoLP/img/ui/JeweledCoinDull.png Terminal=false Categories=Game;Simulation; StartupNotify=true EOF install -m644 'Degrees of Lewdity.html' %{buildroot}%{_datadir}/%{name}/ cp -a game %{buildroot}%{_datadir}/%{name}/ cp -a img %{buildroot}%{_datadir}/%{name}/ cp -a mod %{buildroot}%{_datadir}/%{name}/ cp -a modules %{buildroot}%{_datadir}/%{name}/ cp -a types %{buildroot}%{_datadir}/%{name}/ find %{buildroot}%{_datadir}/%{name}/game -type d -exec chmod 755 {} \; find %{buildroot}%{_datadir}/%{name}/game -type f -exec chmod 644 {} \; find %{buildroot}%{_datadir}/%{name}/img -type d -exec chmod 755 {} \; find %{buildroot}%{_datadir}/%{name}/img -type f -exec chmod 644 {} \; find %{buildroot}%{_datadir}/%{name}/mod -type d -exec chmod 755 {} \; find %{buildroot}%{_datadir}/%{name}/mod -type f -exec chmod 644 {} \; find %{buildroot}%{_datadir}/%{name}/modules -type d -exec chmod 755 {} \; find %{buildroot}%{_datadir}/%{name}/modules -type f -exec chmod 644 {} \; find %{buildroot}%{_datadir}/%{name}/types -type d -exec chmod 755 {} \; find %{buildroot}%{_datadir}/%{name}/types -type f -exec chmod 644 {} \; %files %license LICENSE %doc README.md %{_datadir}/%{name}/* %attr(0644, root, root) %{_datadir}/applications/%{name}.desktop %changelog %autochangelog