# Generated from contracts-0.17.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name contracts Name: rubygem-%{gem_name} Version: 0.17.2 Release: 1%{?dist} Summary: Contracts for Ruby License: BSD-2-Clause URL: https://github.com/egonSchiele/contracts.ruby Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 3.0 BuildRequires: ruby < 4 BuildArch: noarch %description This library provides contracts for Ruby. Contracts let you clearly express how your code behaves, and free you from writing tons of boilerplate, defensive code. %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}/ %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %{gem_instdir}/.github %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.rubocop.yml %exclude %{gem_instdir}/.rubocop_todo.yml %license %{gem_instdir}/LICENSE %{gem_instdir}/TODO.markdown %{gem_instdir}/TUTORIAL.md %{gem_instdir}/benchmarks %{gem_instdir}/dependabot.yml %{gem_libdir} %{gem_instdir}/script %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/CHANGELOG.markdown %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/contracts.gemspec %{gem_instdir}/cucumber.yml %{gem_instdir}/features %{gem_instdir}/spec %changelog * Tue Oct 15 2024 mockbuilder - 0.17.2-1 - Initial package