# originally from openSUSE, modified for integration with openEuelr package architecture %global gem_name abstract_method Name: rubygem-abstract_method Version: 1.2.1 Release: 0 %define mod_name abstract_method %define mod_full_name %{mod_name}-%{version} BuildRequires: ruby(release) rubygems-devel # try what happens if we don't have this # BuildRequires: rubygem-gem2rpm BuildRequires: rubygems-devel rubygem(rspec) >= 3 rubygem(did_you_mean) Url: https://github.com/openSUSE/abstract_method Source0: http://rubygems.org/gems/%{mod_full_name}.gem Summary: Tiny library enabling you to define abstract methods in Ruby classes License: MIT Group: Development/Languages/Ruby %description Abstract Method is a tiny library enabling you to define abstract methods in Ruby classes and modules. # maybe we have to follow other packages' routine %prep %autosetup -n %{mod_full_name} -p1 gem unpack %{SOURCE0} %build gem build ../%{mod_full_name}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %files %dir %{gem_instdir} %{gem_libdir} %{_datadir}/gems/doc/%{mod_full_name}/ %{_datadir}/gems/gems/%{mod_full_name}/ %exclude %{gem_cache} %{gem_spec} %changelog