|
@@ -1,19 +1,17 @@
|
|
|
Summary: Kill and destroy as many targets as possible within 3 minutes
|
|
|
Summary(ja): 3分間で出来るだけ多くの敵を倒すゲーム
|
|
|
Name: barrage
|
|
|
-Version: 1.0.1
|
|
|
-Release: 2%{?_dist_release}
|
|
|
-License: GPL
|
|
|
+Version: 1.0.4
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+License: GPLv2
|
|
|
Group: Applications/Games
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
-Source1: %{name}.desktop
|
|
|
-Source2: %{name}.bmp
|
|
|
-URL: http://lgames.sourceforge.net/index.php?project=Barrage
|
|
|
-Prefix: /usr
|
|
|
+URL: http://lgames.sourceforge.net
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
-Packager: OOI Keita <ooik.ovwqlsjxcqwg4dc@privango.jp>
|
|
|
+
|
|
|
+Requires(post,postun): desktop-file-utils
|
|
|
BuildRequires: SDL-devel >= 1.2.0
|
|
|
Requires: SDL >= 1.2.0
|
|
|
BuildRequires: SDL_mixer-devel >= 1.2.0
|
|
@@ -36,32 +34,46 @@ not that easy to get high scores.
|
|
|
%setup
|
|
|
|
|
|
%build
|
|
|
-./configure --prefix=%{prefix}
|
|
|
-make
|
|
|
+%configure --prefix=%{_prefix}
|
|
|
+%__make
|
|
|
|
|
|
%install
|
|
|
-rm -fR $RPM_BUILD_ROOT
|
|
|
-make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
+%__rm -fR $RPM_BUILD_ROOT
|
|
|
+%__make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
-# add desktop
|
|
|
-mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
|
|
|
-install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
|
|
|
+%clean
|
|
|
+%__rm -fR $RPM_BUILD_ROOT
|
|
|
|
|
|
-# add desktop icon
|
|
|
-mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
|
|
|
-install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT/%{_datadir}/pixmaps/%{name}.bmp
|
|
|
+%post
|
|
|
+touch --no-create %{_datadir}/icons/hicolor
|
|
|
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
+fi
|
|
|
+%{_bindir}/update-desktop-database --quiet %{_datadir}/applications || :
|
|
|
+
|
|
|
+%postun
|
|
|
+%{_bindir}/update-desktop-database --quiet %{_datadir}/applications
|
|
|
+touch --no-create %{_datadir}/icons/hicolor
|
|
|
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
+fi || :
|
|
|
|
|
|
-%clean
|
|
|
-rm -fR $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
|
%defattr(-, root, root)
|
|
|
-%{prefix}/share/games/*
|
|
|
-%{prefix}/bin/*
|
|
|
+%{_datadir}/games/*
|
|
|
+%{_bindir}/*
|
|
|
%{_datadir}/applications/*
|
|
|
-%{_datadir}/pixmaps/*
|
|
|
+%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Feb 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.0.4-1
|
|
|
+- new upstream release
|
|
|
+- updated License tag
|
|
|
+- added Requires(post,postun): desktop-file-utils
|
|
|
+- dropped barrage.desktop and barrage.bmp
|
|
|
+ - use official desktop file
|
|
|
+
|
|
|
* Fri Sep 19 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.1-2vl5
|
|
|
- applied new versioning policy, spec in utf-8
|
|
|
|