summaryrefslogtreecommitdiff
path: root/beyond-the-titanic/beyond-the-titanic.spec
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-04-05 20:23:52 -0400
committerB Stack <bgstack15@gmail.com>2019-04-05 20:23:52 -0400
commitbf660b0b1ed3fdda4bf3216d9560a8b15b27be1a (patch)
treed6d9c1f13d3ff6529b0ea729f5d954c76a334892 /beyond-the-titanic/beyond-the-titanic.spec
parentbeyond-the-titanic: fix minor spec problems (diff)
downloadstackrpms-bf660b0b1ed3fdda4bf3216d9560a8b15b27be1a.tar.gz
stackrpms-bf660b0b1ed3fdda4bf3216d9560a8b15b27be1a.tar.bz2
stackrpms-bf660b0b1ed3fdda4bf3216d9560a8b15b27be1a.zip
add 7w-0.0.1 rpm and add btt scalable icon
Diffstat (limited to 'beyond-the-titanic/beyond-the-titanic.spec')
-rw-r--r--beyond-the-titanic/beyond-the-titanic.spec17
1 files changed, 10 insertions, 7 deletions
diff --git a/beyond-the-titanic/beyond-the-titanic.spec b/beyond-the-titanic/beyond-the-titanic.spec
index b6f0434..2e62056 100644
--- a/beyond-the-titanic/beyond-the-titanic.spec
+++ b/beyond-the-titanic/beyond-the-titanic.spec
@@ -1,5 +1,5 @@
-%global use_git 1
-%if 0%{use_git}
+%global use_master 1
+%if 0%{use_master}
%global vername master
%else
%global vername %{version}
@@ -21,7 +21,8 @@ Source0: %{URL}/-/archive/%{vername}/%{name}-%{vername}.tar.gz
Packager: B Stack <bgstack15@gmail.com>
BuildRequires: fpc
BuildRequires: ImageMagick
-Requires: hicolor-icon-theme
+# do not require the icon theme. the rpm can make the dirs, and it won't hurt on terminal-only systems to have the directories with just these icons.
+#Requires: hicolor-icon-theme
%description
Beyond the Titanic is a 1988 text adventure game published by Apogee.
@@ -53,7 +54,6 @@ cd %{name}-*
# none
# icons
-
for res in 16 22 24 32 48 64 96 128 256 ;do
dir=%{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps
mkdir -p ${dir}
@@ -62,6 +62,9 @@ for res in 16 22 24 32 48 64 96 128 256 ;do
${dir}/${icon}.png
done
done
+scalable_dir="%{buildroot}%{_datadir}/icons/hicolor/scalable/apps"
+install -d "${scalable_dir}"
+install -m0644 ship.svg "${scalable_dir}"
%clean
%{__rm} -rf %{buildroot} || :
@@ -74,7 +77,7 @@ update-desktop-database &> /dev/null || :
# is it a final removal?
#if test "$1" = "0" ;
#then
-#fi
+#fi
%postun
update-desktop-database &> /dev/null || :
@@ -89,11 +92,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%doc %attr(444, -, -) %{_docdir}/*/*
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
-%{_datadir}/icons/hicolor/*x*/apps/*.png
+%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/%{name}
%changelog
-* Thu Apr 4 2019 B Stack <bgstack15@gmail.com> - 0.0.1-2
+* Fri Apr 5 2019 B Stack <bgstack15@gmail.com> - 0.0.1-2
- add build dependencies
- fix docdir for el
bgstack15