# Generated from git_remote_branch-0.3.8.gem by gem2rpm -*- rpm-spec -*- %global gem_name git_remote_branch Name: rubygem-%{gem_name} Version: 0.3.8 Release: 1%{?dist} Summary: git_remote_branch eases the interaction with remote branches License: MIT URL: http://github.com/webmat/git_remote_branch Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(test-unit) >= 2.5.4 # BuildRequires: rubygem(test-unit) < 2.6 # BuildRequires: rubygem(shoulda) >= 3.3.2 # BuildRequires: rubygem(shoulda) < 3.4 # BuildRequires: rubygem(mocha) >= 0.10.5 # BuildRequires: rubygem(mocha) < 0.11 # BuildRequires: rubygem(pry) >= 0.9.12 # BuildRequires: rubygem(pry) < 0.10 # BuildRequires: rubygem(pry-nav) >= 0.2.3 # BuildRequires: rubygem(pry-nav) < 0.3 BuildArch: noarch %description git_remote_branch is a learning tool to ease the interaction with remote branches in simple situations. %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}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %{_bindir}/git-remote-branch %{_bindir}/grb %exclude %{gem_instdir}/.gitignore %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_instdir}/etc %{gem_libdir} %{gem_instdir}/tasks %{gem_instdir}/vendor %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG %{gem_instdir}/Gemfile %{gem_instdir}/Gemfile.lock %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/git_remote_branch.gemspec %{gem_instdir}/test %changelog * Tue Apr 19 2022 mockbuilder - 0.3.8-1 - Initial package