# Generated from cookbooks-0.3.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name cookbooks Name: rubygem-%{gem_name} Version: 0.3.0 Release: 1%{?dist} Summary: THIS IS AN UNSTABLE RELEASE - THERE ARE PENDING BUG-FIXES AND SOME MORE STILL TO COME. I recommend to not download it and wait for a later release, which should come in a few ~days. The Cookbooks project attempts to provide the required dataset in order to compile or install programs from source, or from another location - recipes for installation and instructions on how to build something. The Cookbooks project currently has exactly 3340 "cookbooks" registered. For more documentation, see the link called documentation on at the bottom right side of the webpage here. This will also include all registered programs, their version number and the remote URL to that respective program License: GPL-2.0 URL: http://rubygems.org/gems/cookbooks Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel >= 2.7.6 BuildRequires: ruby >= 2.5.0 BuildArch: noarch %description THIS IS AN UNSTABLE RELEASE - THERE ARE PENDING BUG-FIXES AND SOME MORE STILL TO COME. I recommend to not download it and wait for a later release, which should come in a few ~days. The Cookbooks project attempts to provide the required dataset in order to compile or install programs from source, or from another location - recipes for installation and instructions on how to build something. The Cookbooks project currently has exactly 3340 "cookbooks" registered. For more documentation, see the link called documentation on at the bottom right side of the webpage here. This will also include all registered programs, their version number and the remote URL to that respective program. . %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.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}/ mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %{_bindir}/cookbooks %{gem_instdir}/USAGE.md %{gem_instdir}/bin %exclude %{gem_instdir}/cookbooks.gemspec %{gem_instdir}/img %{gem_libdir} %{gem_instdir}/www %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.md %doc %{gem_instdir}/doc %{gem_instdir}/test %changelog * Fri Mar 09 2018 mockbuilder - 0.3.0-1 - Initial package