Blame rubygem-cucumber-expressions.spec

72782fc
# Generated from cucumber-expressions-6.0.1.gem by gem2rpm -*- rpm-spec -*-
72782fc
%global gem_name cucumber-expressions
72782fc
72782fc
Name: rubygem-%{gem_name}
72782fc
Version: 6.0.1
72782fc
Release: 1%{?dist}
72782fc
Summary: A simpler alternative to Regular Expressions
72782fc
License: MIT
72782fc
URL: https://github.com/cucumber/cucumber-expressions-ruby#readme
72782fc
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
72782fc
BuildRequires: ruby(release)
72782fc
BuildRequires: rubygems-devel
72782fc
BuildRequires: ruby >= 1.9.3
72782fc
BuildRequires: %{_bindir}/rspec
72782fc
BuildRequires: rubygem(rspec-expectations)
72782fc
BuildArch: noarch
72782fc
72782fc
%description
72782fc
Cucumber Expressions - a simpler alternative to Regular Expressions.
72782fc
72782fc
72782fc
%package doc
72782fc
Summary: Documentation for %{name}
72782fc
Requires: %{name} = %{version}-%{release}
72782fc
BuildArch: noarch
72782fc
72782fc
%description doc
72782fc
Documentation for %{name}.
72782fc
72782fc
%prep
72782fc
%setup -q -n %{gem_name}-%{version}
72782fc
72782fc
%build
72782fc
# Create the gem as gem install only works on a gem file
72782fc
gem build ../%{gem_name}-%{version}.gemspec
72782fc
72782fc
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
72782fc
# by default, so that we can move it into the buildroot in %%install
72782fc
%gem_install
72782fc
72782fc
%install
72782fc
mkdir -p %{buildroot}%{gem_dir}
72782fc
cp -a .%{gem_dir}/* \
72782fc
        %{buildroot}%{gem_dir}/
72782fc
72782fc
%check
72782fc
pushd .%{gem_instdir}
72782fc
rspec spec
72782fc
popd
72782fc
72782fc
%files
72782fc
%dir %{gem_instdir}
72782fc
%exclude %{gem_instdir}/.*
72782fc
%license %{gem_instdir}/LICENSE
72782fc
%{gem_instdir}/Makefile
72782fc
%{gem_libdir}
72782fc
%exclude %{gem_cache}
72782fc
%{gem_spec}
72782fc
72782fc
%files doc
72782fc
%doc %{gem_docdir}
72782fc
%{gem_instdir}/Gemfile
72782fc
%doc %{gem_instdir}/README.md
72782fc
%{gem_instdir}/Rakefile
72782fc
%{gem_instdir}/cucumber-expressions.gemspec
72782fc
%{gem_instdir}/examples.txt
72782fc
%{gem_instdir}/spec
72782fc
72782fc
%changelog
72782fc
* Mon Jul 30 2018 jackorp <jar.prokop@volny.cz> - 6.0.1-1
72782fc
- Initial package