|
| 1 | +# Generated from protobuf-3.10.3.gem by gem2rpm -*- rpm-spec -*- |
| 2 | +%global gem_name protobuf |
| 3 | + |
| 4 | +Name: rubygem-%{gem_name} |
| 5 | +Version: 3.10.3 |
| 6 | +Release: 1%{?dist} |
| 7 | +Summary: Google Protocol Buffers serialization and RPC implementation for Ruby |
| 8 | +License: MIT |
| 9 | +URL: https://github.com/localshred/protobuf |
| 10 | +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem |
| 11 | +BuildRequires: ruby(release) |
| 12 | +BuildRequires: rubygems-devel |
| 13 | +BuildRequires: ruby |
| 14 | +# BuildRequires: rubygem(benchmark-ips) |
| 15 | +# BuildRequires: rubygem(ffi-rzmq) |
| 16 | +# BuildRequires: rubygem(rspec) >= 3.0 |
| 17 | +# BuildRequires: rubygem(rubocop) >= 0.38.0 |
| 18 | +# BuildRequires: rubygem(rubocop) < 0.39 |
| 19 | +# BuildRequires: rubygem(parser) = 2.3.0.6 |
| 20 | +# BuildRequires: rubygem(simplecov) |
| 21 | +# BuildRequires: rubygem(timecop) |
| 22 | +# BuildRequires: rubygem(yard) |
| 23 | +# BuildRequires: rubygem(pry-byebug) |
| 24 | +# BuildRequires: rubygem(pry-stack_explorer) |
| 25 | +# BuildRequires: rubygem(varint) |
| 26 | +# BuildRequires: rubygem(ruby-prof) |
| 27 | +BuildArch: noarch |
| 28 | + |
| 29 | +%description |
| 30 | +Google Protocol Buffers serialization and RPC implementation for Ruby. |
| 31 | + |
| 32 | + |
| 33 | +%package doc |
| 34 | +Summary: Documentation for %{name} |
| 35 | +Requires: %{name} = %{version}-%{release} |
| 36 | +BuildArch: noarch |
| 37 | + |
| 38 | +%description doc |
| 39 | +Documentation for %{name}. |
| 40 | + |
| 41 | +%prep |
| 42 | +%setup -q -n %{gem_name}-%{version} |
| 43 | + |
| 44 | +%build |
| 45 | +# Create the gem as gem install only works on a gem file |
| 46 | +gem build ../%{gem_name}-%{version}.gemspec |
| 47 | + |
| 48 | +# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir |
| 49 | +# by default, so that we can move it into the buildroot in %%install |
| 50 | +%gem_install |
| 51 | + |
| 52 | +%install |
| 53 | +mkdir -p %{buildroot}%{gem_dir} |
| 54 | +cp -a .%{gem_dir}/* \ |
| 55 | + %{buildroot}%{gem_dir}/ |
| 56 | + |
| 57 | + |
| 58 | +mkdir -p %{buildroot}%{_bindir} |
| 59 | +cp -a .%{_bindir}/* \ |
| 60 | + %{buildroot}%{_bindir}/ |
| 61 | + |
| 62 | +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x |
| 63 | + |
| 64 | +%check |
| 65 | +pushd .%{gem_instdir} |
| 66 | +# rspec spec |
| 67 | +popd |
| 68 | + |
| 69 | +%files |
| 70 | +%dir %{gem_instdir} |
| 71 | +%{_bindir}/protoc-gen-ruby |
| 72 | +%{_bindir}/rpc_server |
| 73 | +%exclude %{gem_instdir}/.gitignore |
| 74 | +%exclude %{gem_instdir}/.rubocop.yml |
| 75 | +%exclude %{gem_instdir}/.rubocop_todo.yml |
| 76 | +%exclude %{gem_instdir}/.travis.yml |
| 77 | +%exclude %{gem_instdir}/.yardopts |
| 78 | +%{gem_instdir}/CHANGES.md |
| 79 | +%license %{gem_instdir}/LICENSE.txt |
| 80 | +%{gem_instdir}/bin |
| 81 | +%{gem_instdir}/install-protobuf.sh |
| 82 | +%{gem_libdir} |
| 83 | +%{gem_instdir}/profile.html |
| 84 | +%{gem_instdir}/proto |
| 85 | +%{gem_instdir}/varint_prof.rb |
| 86 | +%exclude %{gem_cache} |
| 87 | +%{gem_spec} |
| 88 | + |
| 89 | +%files doc |
| 90 | +%doc %{gem_docdir} |
| 91 | +%doc %{gem_instdir}/CONTRIBUTING.md |
| 92 | +%{gem_instdir}/Gemfile |
| 93 | +%doc %{gem_instdir}/README.md |
| 94 | +%{gem_instdir}/Rakefile |
| 95 | +%{gem_instdir}/protobuf.gemspec |
| 96 | +%{gem_instdir}/spec |
| 97 | + |
| 98 | +%changelog |
| 99 | +* Fri Oct 30 2020 Pavel Valena <pvalena@redhat.com> - 3.10.3-1 |
| 100 | +- Initial package |
0 commit comments