Blame rubygem-generator_spec.spec

c953b87
%global gem_name generator_spec
c953b87
c953b87
Name: rubygem-%{gem_name}
d5bd5c2
Version: 0.9.4
2292b3d
Release: 4%{?dist}
c953b87
Summary: Test Rails generators with RSpec
c953b87
License: MIT
c953b87
URL: https://github.com/stevehodgkiss/generator_spec
c953b87
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
c953b87
BuildRequires: ruby(release)
c953b87
BuildRequires: rubygems-devel
c953b87
BuildRequires: rubygem(railties)
c953b87
BuildRequires: rubygem(rspec)
c953b87
BuildArch: noarch
c953b87
c953b87
%description
c953b87
Test Rails generators with RSpec.
c953b87
c953b87
c953b87
%package doc
c953b87
Summary: Documentation for %{name}
c953b87
Requires: %{name} = %{version}-%{release}
c953b87
BuildArch: noarch
c953b87
c953b87
%description doc
c953b87
Documentation for %{name}.
c953b87
c953b87
%prep
c953b87
gem unpack %{SOURCE0}
c953b87
c953b87
%setup -q -D -T -n  %{gem_name}-%{version}
c953b87
c953b87
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
c953b87
c953b87
%build
c953b87
# Create the gem as gem install only works on a gem file
c953b87
gem build %{gem_name}.gemspec
c953b87
c953b87
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
c953b87
# by default, so that we can move it into the buildroot in %%install
c953b87
%gem_install
c953b87
c953b87
%install
c953b87
mkdir -p %{buildroot}%{gem_dir}
c953b87
cp -a .%{gem_dir}/* \
c953b87
        %{buildroot}%{gem_dir}/
c953b87
c953b87
c953b87
c953b87
c953b87
# Run the test suite
c953b87
%check
c953b87
pushd .%{gem_instdir}
c953b87
  sed -i "/require 'bundler/ s/^/#/" spec/spec_helper.rb
c953b87
  rspec -rpathname -Ilib spec
c953b87
popd
c953b87
c953b87
%files
c953b87
%dir %{gem_instdir}
7eeb049
%doc %{gem_instdir}/README.md
c953b87
%license %{gem_instdir}/MIT-LICENSE
c953b87
%{gem_libdir}
c953b87
%{gem_spec}
7eeb049
%exclude %{gem_instdir}/.*
7eeb049
%exclude %{gem_cache}
c953b87
c953b87
%files doc
c953b87
%doc %{gem_docdir}
7eeb049
%exclude %{gem_instdir}/Gemfile
7eeb049
%exclude %{gem_instdir}/Rakefile
c953b87
%exclude %{gem_instdir}/generator_spec.gemspec
7eeb049
%exclude %{gem_instdir}/spec
c953b87
c953b87
%changelog
2292b3d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-4
2292b3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2292b3d
8715f67
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-3
8715f67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8715f67
53bb95e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-2
53bb95e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53bb95e
d5bd5c2
* Mon Jul 03 2017 Ilya Gradina <ilya.gradina@gmail.com> - 0.9.4-1
d5bd5c2
- update to 0.9.4
d5bd5c2
291541b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-5
291541b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
291541b
7eeb049
* Sun Mar 13 2016 Ilya Gradina <ilya.gradina@gmail.com> - 0.9.3-4
7eeb049
- changes in files 
7eeb049
6198f1c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-3
6198f1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6198f1c
c953b87
* Tue Sep 29 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.9.3-2
c953b87
- changes in files section
c953b87
- exclude gemspec from  section files doc
c953b87
- changes in check section
c953b87
- remove the BR: rubygem(bundler) and rubygem(activesupport)
c953b87
c953b87
* Fri Sep 18 2015 Ilya Gradina <ilya.gradina@gmail.com> - 0.9.3-1
c953b87
- Initial package