# Generated from insist-1.0.0.gem by gem2rpm -*- rpm-spec -*- %define gem_name insist %define version 1.0.0 %define release 1 Summary: A simple block-driven assertion library for both testing and for production code Name: rubygem-%{gem_name} Version: %{version} Release: %{release} Group: Development/Ruby License: Apache-2.0 URL: https://github.com/jordansissel/ruby-insist Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby BuildRequires: rubygems-devel BuildArch: noarch %description A simple block-driven assertion library for both testing and for production code %package doc Summary: Documentation for %{name} # Directory ownership issue Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -n %{gem_name}-%{version} mv ../%{gem_name}-%{version}.gemspec . %build gem build ./%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/ # cleanup pushd %{buildroot}%{gem_instdir} rm -rf \ .batcave .gitignore .travis.yml \ Gemfile Gemfile.lock \ Makefile \ insist.gemspec \ notify-failure.sh \ spec \ test %{nil} popd %files %dir %{gem_instdir} %exclude %{gem_cache} %{gem_libdir} %{gem_spec} %license %{gem_instdir}/LICENSE %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %changelog * Sat Feb 01 2025 curtisy - 1.0.0-1 - Initial version of the package