# Generated from drbservice-1.0.4.gem by gem2rpm -*- rpm-spec -*- %global gem_name drbservice Name: rubygem-%{gem_name} Version: 1.0.4 Release: 1%{?dist} Summary: DRbService is a framework we use at LAIKA for creating authenticated SSL-encrypted DRb services that provide access to privileged operations without the need to give shell access to everyone License: BSD URL: https://bitbucket.org/ged/drbservice Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.8.7 # BuildRequires: rubygem(hoe-mercurial) >= 1.2.1 # BuildRequires: rubygem(hoe-mercurial) < 1.3 # BuildRequires: rubygem(hoe-highline) >= 0.0.1 # BuildRequires: rubygem(hoe-highline) < 0.1 # BuildRequires: rubygem(rspec) >= 2.6 # BuildRequires: rubygem(rspec) < 3 # BuildRequires: rubygem(hoe) >= 2.10 # BuildRequires: rubygem(hoe) < 3 BuildArch: noarch %description DRbService is a framework we use at LAIKA for creating authenticated SSL-encrypted DRb services that provide access to privileged operations without the need to give shell access to everyone. There are a few examples in the `examples/` directory of the gem, which are stripped-down versions of the services we actually use. The current implementation is kind of a hack, but I intend to eventually finish a DRb protocol that does the same thing in a more elegant, less-hackish way, as well as a tool that can generate a new service along with support files for one of several different runtime environments. If you're curious, see the `drb/authsslprotocol.rb` file for the protocol. This will replace the current method-hiding code in `drbservice.rb`, but existing services should be able to switch over quite easily. Or that's the intention. %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}/ %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gemtest %license %{gem_instdir}/LICENSE %{gem_instdir}/Manifest.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/ChangeLog %doc %{gem_instdir}/History.rdoc %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/examples %{gem_instdir}/spec %changelog * Mon Apr 18 2022 mockbuilder - 1.0.4-1 - Initial package