%global gem_name test_declarative Summary: Simply adds a declarative test method syntax to test/unit Name: rubygem-%{gem_name} Version: 0.0.6 Release: 2 License: MIT URL: http://github.com/svenfuchs/test_declarative Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem # wget https://github.com/svenfuchs/test_declarative/archive/refs/tags/test_declarative-0.0.6.tar.gz # tar -xvf test_declarative-0.0.6.tar.gz # cd test_declarative-0.0.6 # tar -cvf test_declarative_test-0.0.6.tar.gz test Source1: test_declarative_test-0.0.6.tar.gz BuildRequires: ruby(release) rubygems-devel rubygem(minitest) BuildRequires: rubygem(did_you_mean) BuildArch: noarch %description Simply adds a declarative test method syntax to test/unit. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -n %{gem_name}-%{version} -b 1 %build gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} ln -s %{_builddir}/test test cd test ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)' popd %files %dir %{gem_instdir} %exclude %{gem_cache} %{gem_libdir} %{gem_spec} %doc %{gem_instdir}/MIT-LICENSE %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %changelog * Tue Jan 09 2024 xu_ping <707078654@qq.com> - 0.0.6-2 - fix build error * Wed Nov 15 2023 Ge Wang - 0.0.6-1 - update to version 0.0.6 * Thu Aug 27 2020 tuShenmei - 0.0.5-2 - modify yaml * Tue Aug 18 2020 tuShenmei - 0.0.5-1 - package init