summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-03-31 21:56:44 -0400
committerB Stack <bgstack15@gmail.com>2019-03-31 21:56:44 -0400
commit7a8214e083fc991009a33b18dbc4dcfc5dccff55 (patch)
treeacc16193ae0c32e7efd514038eed171aba276f03
parentbeyond-the-titanic dpkg (diff)
downloadstackrpms-7a8214e083fc991009a33b18dbc4dcfc5dccff55.tar.gz
stackrpms-7a8214e083fc991009a33b18dbc4dcfc5dccff55.tar.bz2
stackrpms-7a8214e083fc991009a33b18dbc4dcfc5dccff55.zip
beyond-the-titanic rpm
-rw-r--r--beyond-the-titanic/beyond-the-titanic.spec94
1 files changed, 94 insertions, 0 deletions
diff --git a/beyond-the-titanic/beyond-the-titanic.spec b/beyond-the-titanic/beyond-the-titanic.spec
new file mode 100644
index 0000000..4a0fbc4
--- /dev/null
+++ b/beyond-the-titanic/beyond-the-titanic.spec
@@ -0,0 +1,94 @@
+%global use_git 1
+%if 0%{use_git}
+%global vername master
+%else
+%global vername %{version}
+%endif
+
+# turn off debug package
+%define debug_package %{nil}
+
+Name: beyond-the-titanic
+Version: 0.0.1
+Release: 1%{?dist}
+Summary: Text adventure game from 1988
+
+Group: Games/AdventureGame
+License: AGPL
+URL: https://gitlab.com/bgstack15/%{name}
+Source0: %{URL}/-/archive/%{vername}/%{name}-%{vername}.tar.gz
+
+Packager: B Stack <bgstack15@gmail.com>
+BuildRequires: fpc
+BuildRequires: desktop-file-utils
+Requires: hicolor-icon-theme
+
+%description
+Beyond the Titanic is a 1988 text adventure game published by Apogee.
+In 2009 the source code was released under the GPL. This fork is
+derived from the jxself release.
+
+%prep
+%setup -n %{name}-%{vername}
+
+%build
+%make_build
+
+%install
+%make_install
+
+# desktop files
+# handled by upstream makefile
+
+# application start script
+# handled by upstream makefile
+
+# man pages
+# none
+
+# mimetypes
+# 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}
+ for icon in %{name} ; do
+ convert ship.svg -filter Lanczos -resize ${res}x${res} \
+ ${dir}/${icon}.png
+ done
+done
+
+%clean
+%{__rm} -rf %{buildroot} || :
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+update-desktop-database &> /dev/null || :
+
+%preun
+# is it a final removal?
+#if test "$1" = "0" ;
+#then
+#fi
+
+%postun
+update-desktop-database &> /dev/null || :
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+#%license %attr(444, -, -) License.txt
+#%doc %attr(444, -, -) Changelog.txt
+%license %attr(444, -, -) %{_licensedir}/*
+%doc %attr(444, -, -) %{_pkgdocdir}/*
+%{_bindir}/%{name}
+%{_datadir}/applications/*.desktop
+%{_datadir}/icons/hicolor/*x*/apps/*.png
+%{_datadir}/%{name}
+
+%changelog
+* Sun Mar 31 2019 B Stack <bgstack15@gmail.com> - 0.0.1-1
+- Initial rpm built
bgstack15