# Generated from xmp2assert-14.gem by gem2rpm -*- rpm-spec -*- %global gem_name xmp2assert Name: rubygem-%{gem_name} Version: 14 Release: 1%{?dist} Summary: auto-generate assertions from `# =>` comments License: MIT URL: https://github.com/shyouhei/xmp2assert Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.2 # BuildRequires: rubygem(github-markup) # BuildRequires: rubygem(pry) # BuildRequires: rubygem(rcodetools) # BuildRequires: rubygem(redcarpet) # BuildRequires: rubygem(rubocop) # BuildRequires: rubygem(seeing_is_believing) # BuildRequires: rubygem(simplecov) # BuildRequires: rubygem(yard) BuildArch: noarch %description In ruby we use `# =>` as a comment marker that mean the immediately adjacent expression's expected value. There are gems like xmpfilter / seening_is_believing, which are to generate such comments. They are very useful. But so far we lack feature that does vice-versa; to check if the comment is actually the output of the expression. This is the library that does it. %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}/exe -type f | xargs chmod a+x %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %{_bindir}/xmpcheck.rb %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.rubocop.yml %exclude %{gem_instdir}/.yardopts %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/Styleguide.md %{gem_instdir}/exe %{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}/xmp2assert.gemspec %changelog * Thu Sep 16 2021 mockbuilder - 14-1 - Initial package