# Generated from rethoth-0.4.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name rethoth Name: rubygem-%{gem_name} Version: 0.4.2 Release: 1%{?dist} Summary: A simple to understand, run and maintain Ruby blogging engine License: BSD-3-Clause URL: https://github.com/pagojo/rethoth Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.3.0 # BuildRequires: rubygem(bacon) >= 1.2 # BuildRequires: rubygem(bacon) < 2 # BuildRequires: rubygem(bacon) >= 1.2.0 BuildArch: noarch %description Rethoth is a simple to understand, run and maintain Ruby blogging engine. Rethoth is written in Ruby and is based on the Ramaze web framework and the Sequel database toolkit. Rethoth is a modern port, to 2017, of the original Thoth created by @ryangrove. Rethoth demonstrates how to easily build a useful MVC-style app in Ruby without having to deal directly with meta-programming and DSL magic. Rethoth is an example of how to build a web application in Ruby without the need to learn Rails and ActiveRecord. Rethoth is ideal for newcomers to Ruby who have experience with other web frameworks and want to quickly appreciate the language and become productive with it. %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}/ mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # bacon -a popd %files %dir %{gem_instdir} %{_bindir}/thoth %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %changelog * Tue Sep 14 2021 mockbuilder - 0.4.2-1 - Initial package