|
| 1 | +# Generated from jwt-1.5.6.gem by gem2rpm -*- rpm-spec -*- |
| 2 | +%global gem_name jwt |
| 3 | + |
| 4 | +Name: rubygem-%{gem_name} |
| 5 | +Version: 1.5.6 |
| 6 | +Release: 1%{?dist} |
| 7 | +Summary: JSON Web Token implementation in Ruby |
| 8 | +License: MIT |
| 9 | +URL: http://github.com/jwt/ruby-jwt |
| 10 | +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem |
| 11 | +BuildRequires: ruby(release) |
| 12 | +BuildRequires: rubygems-devel |
| 13 | +BuildRequires: ruby |
| 14 | +# BuildRequires: rubygem(json) < 2.0 |
| 15 | +# BuildRequires: rubygem(rspec) |
| 16 | +# BuildRequires: rubygem(simplecov) |
| 17 | +# BuildRequires: rubygem(simplecov-json) |
| 18 | +# BuildRequires: rubygem(codeclimate-test-reporter) |
| 19 | +BuildArch: noarch |
| 20 | + |
| 21 | +%description |
| 22 | +A pure ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) |
| 23 | +standard. |
| 24 | + |
| 25 | + |
| 26 | +%package doc |
| 27 | +Summary: Documentation for %{name} |
| 28 | +Requires: %{name} = %{version}-%{release} |
| 29 | +BuildArch: noarch |
| 30 | + |
| 31 | +%description doc |
| 32 | +Documentation for %{name}. |
| 33 | + |
| 34 | +%prep |
| 35 | +%setup -q -n %{gem_name}-%{version} |
| 36 | + |
| 37 | +%build |
| 38 | +# Create the gem as gem install only works on a gem file |
| 39 | +gem build ../%{gem_name}-%{version}.gemspec |
| 40 | + |
| 41 | +# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir |
| 42 | +# by default, so that we can move it into the buildroot in %%install |
| 43 | +%gem_install |
| 44 | + |
| 45 | +%install |
| 46 | +mkdir -p %{buildroot}%{gem_dir} |
| 47 | +cp -a .%{gem_dir}/* \ |
| 48 | + %{buildroot}%{gem_dir}/ |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +%check |
| 53 | +pushd .%{gem_instdir} |
| 54 | +# rspec spec |
| 55 | +popd |
| 56 | + |
| 57 | +%files |
| 58 | +%dir %{gem_instdir} |
| 59 | +%{gem_instdir}/.codeclimate.yml |
| 60 | +%exclude %{gem_instdir}/.gitignore |
| 61 | +%exclude %{gem_instdir}/.rubocop.yml |
| 62 | +%exclude %{gem_instdir}/.travis.yml |
| 63 | +%license %{gem_instdir}/LICENSE |
| 64 | +%{gem_instdir}/Manifest |
| 65 | +%{gem_libdir} |
| 66 | +%exclude %{gem_cache} |
| 67 | +%{gem_spec} |
| 68 | + |
| 69 | +%files doc |
| 70 | +%doc %{gem_docdir} |
| 71 | +%exclude %{gem_instdir}/.rspec |
| 72 | +%doc %{gem_instdir}/CHANGELOG.md |
| 73 | +%{gem_instdir}/Gemfile |
| 74 | +%doc %{gem_instdir}/README.md |
| 75 | +%{gem_instdir}/Rakefile |
| 76 | +%{gem_instdir}/ruby-jwt.gemspec |
| 77 | +%{gem_instdir}/spec |
| 78 | + |
| 79 | +%changelog |
| 80 | +* Wed Sep 12 2018 Shirshendu Mukherjee <shirshendu.mukherjee.88@gmail.com> - 1.5.6-1 |
| 81 | +- Initial package |
0 commit comments