summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manaplus.spec.in3
-rwxr-xr-xmanaplustest3
2 files changed, 5 insertions, 1 deletions
diff --git a/manaplus.spec.in b/manaplus.spec.in
index e7c323824..6e563af68 100644
--- a/manaplus.spec.in
+++ b/manaplus.spec.in
@@ -45,6 +45,8 @@ diverse interactive world.
%install
rm -rf %{buildroot}
%makeinstall
+mkdir -p %{buildroot}%{_bindir}/
+cp -p %{_builddir}/%{name}-%{version}/manaplustest %{buildroot}%{_bindir}/
%find_lang %{name}
@@ -54,6 +56,7 @@ rm -rf %{buildroot}
%files -f %{name}.lang
%attr(-, root, root) %doc AUTHORS ChangeLog COPYING docs/*.txt NEWS README
%attr(0755, root, root) %{_bindir}/%{name}
+%attr(0755, root, root) %{_bindir}/manaplustest
%attr(-, root, root) %{_datadir}/%{name}
%attr(-, root, root) %{_datadir}/pixmaps/%{name}.png
%attr(-, root, root) %{_datadir}/applications/%{name}.desktop
diff --git a/manaplustest b/manaplustest
index 2c7d3bc08..12bdc2b8a 100755
--- a/manaplustest
+++ b/manaplustest
@@ -1,4 +1,5 @@
#!/bin/sh
-cd /usr/games
+cd $(dirname $(whereis -b manaplus|cut -d " " -f 2))
+
manaplus --tests