commit ef8b4458c1eac566ad15dcae6da447ed08244487dd0bbdfebeb7e314f82d047f Author: Matthias Mailänder Date: Sun Nov 16 08:04:51 2014 +0000 Accepting request 261865 from home:nemysis Please accept this new RPM. OBS-URL: https://build.opensuse.org/request/show/261865 OBS-URL: https://build.opensuse.org/package/show/games/pongix?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/pongix-0.4.tar.gz b/pongix-0.4.tar.gz new file mode 100644 index 0000000..5ffb2c1 --- /dev/null +++ b/pongix-0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b72060ded5446f60e187aff1a35eb727484a3b2f798134dc920a16c75b09175e +size 207490 diff --git a/pongix.changes b/pongix.changes new file mode 100644 index 0000000..3eeb456 --- /dev/null +++ b/pongix.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Sun Nov 16 00:24:47 UTC 2014 - nemysis@gmx.ch + +- Add pongix.changes, forgotten in previous commit + +------------------------------------------------------------------- +Sun Nov 16 00:22:58 UTC 2014 - nemysis@gmx.ch + +- Initial package creation + diff --git a/pongix.desktop b/pongix.desktop new file mode 100644 index 0000000..1fbd83e --- /dev/null +++ b/pongix.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Pongix +GenericName=Pong +Comment=Free Pong-like game +Icon=pongix +Exec=pongix +Type=Application +Categories=Game;ArcadeGame;LogicGame; +StartupNotify=false diff --git a/pongix.png b/pongix.png new file mode 100644 index 0000000..d3d4c0a --- /dev/null +++ b/pongix.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ac78d4bd0083e22275c26d6433c26e5bd5f798898721bb4e32fa785d183b0c1 +size 2387 diff --git a/pongix.spec b/pongix.spec new file mode 100644 index 0000000..8ffb8c5 --- /dev/null +++ b/pongix.spec @@ -0,0 +1,78 @@ +# +# spec file for package pongix +# +# Copyright (c) 2014 SUSE LINUX Products 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: pongix +Version: 0.4 +Release: 0 +Summary: Free Pong-like game +License: GPL-2.0 +Group: Amusements/Games/Arcade/Logic +Url: http://www.losersjuegos.com.ar/juegos/pongix +# Not exist good SourceUrl link +Source0: %{name}-%{version}.tar.gz +Source1: %{name}.desktop +Source2: %{name}.png +%if 0%{?suse_version} +BuildRequires: fdupes +BuildRequires: update-desktop-files +%endif +BuildRequires: pkgconfig(SDL_image) +BuildRequires: pkgconfig(SDL_net) +BuildRequires: pkgconfig(sdl) + +%description +Pongix is a free game based on the classical Pong game with +support for net game. + +%prep +%setup -q + +# Fix int to main +sed -i 's|int paleta_|void paleta_|' src/paleta.c + +# Correct bad code, add -lm +sed -i 's|-lSDL $LIBS|-lSDL $LIBS -lm|' configure + +%build + +%configure +make %{?_smp_mflags} + +%install +%make_install + +# install icon +install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/pixmaps/%{name}.png + +# install Desktop file +install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop + +%if 0%{?suse_version} + %suse_update_desktop_file %{name} + %fdupes -s %{buildroot}%{_prefix} +%endif + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING README +%attr(0755,root,games) %{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/%{name} + +%changelog