%global gem_name power_assert Name: rubygem-%{gem_name} Version: 2.0.3 Release: 1 Summary: Power Assert for Ruby License: Ruby or BSD URL: https://github.com/k-tsj/power_assert Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source1: %{gem_name}-tests-%{version}.tar.gz Source2: create-power_assert-test-files.sh BuildRequires: rubygems-devel rubygem(test-unit) rubygem(byebug) rubygem(pry) ruby-irb BuildArch: noarch %description Power Assert for Ruby. Power Assert shows each value of variables and method calls in the expression. It is useful for testing, providing which value wasn't correct when the condition is not satisfied. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} -a 1 mv ../%{gem_name}-%{version}.gemspec . %build gem build %{gem_name}-%{version}.gemspec %gem_install cp -a ./test ./%{gem_instdir}/ %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ rm -f %{buildroot}%{gem_cache} pushd %{buildroot}%{gem_instdir} rm -rf \ .gitignore .travis.yml \ .github/ \ Gemfile \ Rakefile \ *gemspec \ benchmarks \ bin/ \ test/ \ %{nil} popd %check pushd .%{gem_instdir} LANG=C.utf8 ruby -Ilib:. \ -e \ 'Dir.glob("test/**/*_test.rb").each {|f| require f}' popd %files %dir %{gem_instdir} %license %{gem_instdir}/BSDL %license %{gem_instdir}/COPYING %license %{gem_instdir}/LEGAL %doc %{gem_instdir}/README.md %{gem_libdir} %{gem_spec} %exclude %{gem_cache} %files doc %doc %{gem_docdir} %changelog * Sat Sep 02 2023 wulei - 2.0.3-1 - Update to 2.0.3 * Thu Jul 30 2020 maminjie - 1.1.6-1 - package init