# Generated from nicefn-0.1.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name nicefn Name: rubygem-%{gem_name} Version: 0.1.1 Release: 1%{?dist} Summary: This gem adds an alternative way of specifying one-liners in your project License: Unlicense URL: https://github.com/afaur/ruby-nicefn.git Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(simplecov) >= 0.16 # BuildRequires: rubygem(simplecov) < 1 # BuildRequires: rubygem(simplecov) >= 0.16.1 # BuildRequires: rubygem(test-unit) >= 3.2 # BuildRequires: rubygem(test-unit) < 4 # BuildRequires: rubygem(test-unit) >= 3.2.8 BuildArch: noarch %description Elixir and javascript have the capability of making good looking one liners, but what about Ruby? We can definitely make an awful looking one by adding a ';'. If you want to start defining some better looking one-liners then add the 'nicefn' gem to your project. Since the implementation files are small and this project has no required deps. You should also feel free to copy and paste the implementation directly into your project in an effort to avoid extra gems. %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} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %license %{gem_instdir}/LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/nicefn.gemspec %changelog * Tue Sep 14 2021 mockbuilder - 0.1.1-1 - Initial package