|
@@ -1,66 +1,67 @@
|
|
|
%define name xsoldier
|
|
|
-%define version 1.4
|
|
|
+%define version 1.8
|
|
|
%define release 1%{?_dist_release}
|
|
|
|
|
|
-Summary: xsoldier is a X11 shoot-em up game for Linux.
|
|
|
+Summary: X11 shoot-em up game
|
|
|
Summary(ja): X11上で動くシューティングゲーム
|
|
|
Name: %{name}
|
|
|
Version: %{version}
|
|
|
Release: %{release}
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
-License: GNU General Public License
|
|
|
+SOURCE10: %{name}.desktop
|
|
|
+SOURCE11: %{name}.png
|
|
|
+License: GPLv2+
|
|
|
Group: Applications/Games
|
|
|
URL: http://www.interq.or.jp/libra/oohara/xsoldier/
|
|
|
|
|
|
-Requires: SDL, SDL_image
|
|
|
-BuildRequires: SDL_image-devel
|
|
|
+Requires: SDL SDL_image libX11 libXpm
|
|
|
+BuildRequires: SDL_image-devel libX11-devel libXpm-devel
|
|
|
+BuildRequires: desktop-file-utils
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
|
%description
|
|
|
-xsoldier is a X11 shoot-em up game for Linux. It was created by Yuusuke HASHIMOTO <hachi@surfline.ne.jp>. The webpage of the original author is [http://www.surfline.ne.jp/hachi/xsoldier.html]. I took over the development of xsoldier.
|
|
|
-
|
|
|
-#%desctiption -l ja
|
|
|
+xsoldier is a X11 shoot-em up game for Linux.
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
|
+%__rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
|
-./configure --prefix=/usr --with-sdl
|
|
|
-make
|
|
|
+%configure --with-sdl
|
|
|
+%__make
|
|
|
|
|
|
%install
|
|
|
-make DESTDIR=${RPM_BUILD_ROOT} mandir=%{_mandir} install
|
|
|
-mkdir -p ${RPM_BUILD_ROOT}/usr/share/applications
|
|
|
-cat > ${RPM_BUILD_ROOT}/usr/share/applications/%{name}.desktop <<EOF
|
|
|
-[Desktop Entry]
|
|
|
-Name=xsoldier
|
|
|
-Comment=xsoldier is a X11 shoot-em up game for Linux.
|
|
|
-TryExec=xsoldier
|
|
|
-Exec=/usr/bin/xsoldier
|
|
|
-Icon=
|
|
|
-Terminal=0
|
|
|
-Type=Application
|
|
|
-Categories=GNOME;Application;Game
|
|
|
-EOF
|
|
|
+%__make DESTDIR=${RPM_BUILD_ROOT} mandir=%{_mandir} install
|
|
|
+%__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/applications
|
|
|
+%__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/
|
|
|
+desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE10}
|
|
|
+%__cp -a %{SOURCE11} %{buildroot}%{_datadir}/pixmaps/
|
|
|
|
|
|
%clean
|
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
|
+%__rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
-/usr/bin/xsoldier
|
|
|
-/usr/share/games/xsoldier
|
|
|
-/usr/var/games/xsoldier/xsoldier.scores
|
|
|
-/usr/share/applications/%{name}.desktop
|
|
|
-%{_mandir}/man6/xsoldier.6.gz
|
|
|
+%doc README LICENSE INSTALL GPL ChangeLog COPYING
|
|
|
+%{_bindir}/xsoldier
|
|
|
+%{_datadir}/games/xsoldier
|
|
|
+%attr(666,root,root) %{_localstatedir}/games/xsoldier/xsoldier.scores
|
|
|
+%{_datadir}/applications/%{name}.desktop
|
|
|
+%{_datadir}/pixmaps/%{name}.png
|
|
|
+%{_mandir}/man*/xsoldier.*.gz
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Mon Aug 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.8-1
|
|
|
+- new upstream release
|
|
|
+- stored xsoldier.scores to /var/games/xsoldier
|
|
|
+- added xsoldier.desktop
|
|
|
+- added BuildRequires: libX11-devel libXpm-devel desktop-file-utils
|
|
|
+
|
|
|
* Sat Sep 06 2008 Shu KONNO <owa@bg.wakwak.com> 1.4-1vl5
|
|
|
- applied new versioning policy, spec in utf-8
|
|
|
- updated man-path to %%{_mandir}
|