Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
games
notpacman
notpacman.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File notpacman.spec of Package notpacman
# # spec file for package notpacman # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: notpacman Version: 1.0.4 Release: 0 Summary: Pacman meets physics License: WTFPL Group: Amusements/Games/Action/Arcade Url: http://stabyourself.net/notpacman/ Source0: %{name}-source.zip Source1: %{name}.appdata.xml Source2: %{name}.desktop Source3: %{name}.png BuildRequires: ImageMagick BuildRequires: dos2unix BuildRequires: hicolor-icon-theme BuildRequires: love-0_7_2 BuildRequires: unzip BuildRequires: update-desktop-files Requires: love-0_7_2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description Ever wondered how Pacman would be like with physics? No? Well, it's revolutionary. This mashup of "Not" and "Pacman" puts The Pac and the Ghosts in a in a Pacworld cage, at mercy of gravity and the level's shape, controlled solely by you. Ghosts still don't like you very much, so you should be careful to make Pacman avoid them. %prep %setup -q -c mv not_pacman.love %{name}.love # Some docs have the DOS line ends dos2unix README sed -i 's|L.ve|Love|' README %build %install # install wrapper mkdir -p %{buildroot}%{_bindir} cat > %{buildroot}%{_bindir}/%{name} << EOF #!/bin/sh exec love-0.7.2 %{_datadir}/%{name}/notpacman.love "${@}" EOF # install zip packet install -Dm 0644 %{name}.love %{buildroot}%{_datadir}/%{name}/%{name}.love # install the appdata.xml install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml # install icons for res in 256 128 96 64 32 24 16; do mkdir -p "%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps" convert -strip %{SOURCE3} -resize "$res"x"$res" "%{buildroot}%{_datadir}/icons/hicolor/$res"x"$res/apps/%{name}.png" done # install Desktop file install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop %if 0%{?suse_version} %suse_update_desktop_file %{name} %endif %post %icon_theme_cache_post %postun %icon_theme_cache_postun %files %defattr(-,root,root,-) %doc README %attr(0755,root,root) %{_bindir}/%{name} %{_datadir}/appdata/%{name}.appdata.xml %if %{?suse_version} < 1320 %dir %{_datadir}/appdata %endif %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor