commit b795f6ee3160f0937ffae14aba8916963f377f37f267542639e803632a71d0c6 Author: Dirk Stoecker Date: Tue Nov 25 08:35:24 2014 +0000 Accepting request 262869 from home:nemysis Please accept this new RPM. OBS-URL: https://build.opensuse.org/request/show/262869 OBS-URL: https://build.opensuse.org/package/show/games/xgalaga-sdl?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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/xgalaga-sdl-2.1.1.0-sdl.tar.bz2 b/xgalaga-sdl-2.1.1.0-sdl.tar.bz2 new file mode 100644 index 0000000..7726b69 --- /dev/null +++ b/xgalaga-sdl-2.1.1.0-sdl.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2bcafea534bc1901b736001e811dcbc1bc2d719de375ac4ebd609e55e14136bc +size 464114 diff --git a/xgalaga-sdl.changes b/xgalaga-sdl.changes new file mode 100644 index 0000000..7fc0da3 --- /dev/null +++ b/xgalaga-sdl.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Nov 24 15:53:18 UTC 2014 - nemysis@gmx.ch + +- Initial package creation + diff --git a/xgalaga-sdl.desktop b/xgalaga-sdl.desktop new file mode 100644 index 0000000..d133957 --- /dev/null +++ b/xgalaga-sdl.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=XGalaga-SDL +GenericName=Galaga +Comment=Classic single screen vertical shoot em up SDL +Icon=xgalaga-sdl +Exec=xgalaga-sdl +Type=Application +Categories=Game;ActionGame;ArcadeGame; +StartupNotify=false diff --git a/xgalaga-sdl.png b/xgalaga-sdl.png new file mode 100644 index 0000000..b5f69d1 --- /dev/null +++ b/xgalaga-sdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc14035e06fafc78057db52376fe2f809fd8da3f946f7bdccfe4fd5b431c6287 +size 3232 diff --git a/xgalaga-sdl.spec b/xgalaga-sdl.spec new file mode 100644 index 0000000..201b0ce --- /dev/null +++ b/xgalaga-sdl.spec @@ -0,0 +1,84 @@ +# +# spec file for package xgalaga-sdl +# +# 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: xgalaga-sdl +Version: 2.1.1.0 +Release: 0 +Summary: Classic single screen vertical shoot em up SDL +License: GPL-2.0 +Group: Amusements/Games/Action/Arcade/Shoot +Url: http://sourceforge.net/projects/xgalaga-sdl/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-sdl.tar.bz2 +Source1: %{name}.desktop +Source2: %{name}.png +%if 0%{?suse_version} +BuildRequires: fdupes +BuildRequires: update-desktop-files +%endif +BuildRequires: liberation-fonts +BuildRequires: pkgconfig(SDL_gfx) +BuildRequires: pkgconfig(SDL_image) +BuildRequires: pkgconfig(SDL_mixer) +BuildRequires: pkgconfig(SDL_ttf) +BuildRequires: pkgconfig(sdl) + +%description +XGalaga-SDL is a port of the popular X11 game XGalaga, +a clone of Galaga, using the SDL library. +XGalaga was originally written by Joe Rumsey. + +%prep +%setup -q -n %{name}-%{version}-sdl + +# Remove not needed files +sed -i -e 's|CREDITS||' \ + -i -e 's|fonts/copyright||' Makefile.in + +%build + +%configure --datadir=%{_datadir}/%{name} +make %{?_smp_mflags} + +%install +%make_install + +# install icon +install -Dm 0644 %{S:2} %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/%{name}.png + +# install Desktop file +install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop + +# Use system fonts instead of bundling our own +rm -f %{buildroot}%{_datadir}/%{name}/fonts/LiberationMono-Bold.ttf +ln -s ../../fonts/truetype/LiberationMono-Bold.ttf %{buildroot}%{_datadir}/%{name}/fonts/LiberationMono-Bold.ttf + +%if 0%{?suse_version} + %suse_update_desktop_file %{name} + %fdupes -s %{buildroot}%{_prefix} +%endif + +%files +%defattr(-,root,root,-) +%doc COPYING CREDITS README +%{_bindir}/%{name} +%{_mandir}/man6/%{name}.6x%{ext_man} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/ +%{_datadir}/%{name} + +%changelog