diff options
Diffstat (limited to 'beyond-the-titanic/beyond-the-titanic.spec')
-rw-r--r-- | beyond-the-titanic/beyond-the-titanic.spec | 97 |
1 files changed, 97 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..18492d8 --- /dev/null +++ b/beyond-the-titanic/beyond-the-titanic.spec @@ -0,0 +1,97 @@ +%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} +tar -zxf %{SOURCE0} + +%build +cd %{name}-* +%make_build + +%install +cd %{name}-* +%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 |