# Generated from wizards-castle-0.0.5.gem by gem2rpm -*- rpm-spec -*- %global gem_name wizards-castle Name: rubygem-%{gem_name} Version: 0.0.5 Release: 1%{?dist} Summary: Explore the Wizard's Castle and seek treasure, defeat monsters, and try to locate the incredible ORB OF ZOT! License: MIT URL: http://github.com/gbirchmeier/wizards-castle Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2 BuildArch: noarch %description == Wizard's Castle A Ruby port of a classic BASIC game, this is a text-based adventure through a randomly-generated castle full of monsters, traps, and treasure. The original version was written by Joseph R. Power for Exidy Sorcerer BASIC and published in the July/August 1980 issue of Recreational Computing magazine. It was subsequently ported to Heath Microsoft Basic by J.F. Stetson. This Ruby port is based on the Stetson version. It needs no Gem dependencies to run, and should work on all 2.x versions of Ruby. *To* *run*: Just run +wizards-castle+ on your command line. Use +--manual+ to see the game manual. Please report any crashes as {Github issues}[https://github.com/gbirchmeier/wizards-castle/issues] or contact me via Twitter @GrantBirchmeier. . %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %{_bindir}/wizards-castle %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/docs %changelog * Thu Sep 16 2021 mockbuilder - 0.0.5-1 - Initial package