# Generated from bitmap_cmd_editor-1.0.4.gem by gem2rpm -*- rpm-spec -*- %global gem_name bitmap_cmd_editor Name: rubygem-%{gem_name} Version: 1.0.4 Release: 1%{?dist} Summary: Produce a Ruby 2.0 program that simulates a basic interactive bitmap editor. Bitmaps are represented as an M x N matrix of pixels with each element representing a colour License: MIT Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0.0 # BuildRequires: rubygem(shoulda-matchers) = 2.8.0 # BuildRequires: rubygem(rspec-expectations) = 3.2.0 # BuildRequires: rubygem(cucumber) = 2.0.0 # BuildRequires: rubygem(aruba) # BuildRequires: rubygem(yard) BuildArch: noarch %description The input consists of a string containing a sequence of commands, where a command is represented by a single capital letter at the beginning of the line. Parameters of the command are separated by white spaces and they follow the command character. Pixel co-ordinates are a pair of integers: a column number between 1 and 250, and a row number between 1 and 250. Bitmaps starts at coordinates 1,1. Colours are specified by capital letters. %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} # cucumber popd %files %dir %{gem_instdir} %{_bindir}/bitmap_cmd_editor %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/bitmap_cmd_editor.gemspec %doc %{gem_instdir}/doc %{gem_instdir}/features %changelog * Mon Apr 18 2022 mockbuilder - 1.0.4-1 - Initial package