# Generated from praxis-blueprints-3.5.gem by gem2rpm -*- rpm-spec -*- %global gem_name praxis-blueprints Name: rubygem-%{gem_name} Version: 3.5 Release: 1%{?dist} Summary: Attributes, views, rendering and example generation for common Blueprint Structures License: MIT URL: https://github.com/rightscale/praxis-blueprints Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.1 # BuildRequires: rubygem(redcarpet) < 3.0 # BuildRequires: rubygem(yard) # BuildRequires: rubygem(guard) >= 2 # BuildRequires: rubygem(guard) < 3 # BuildRequires: rubygem(guard-rspec) # BuildRequires: rubygem(rspec) # BuildRequires: rubygem(rspec-its) # BuildRequires: rubygem(rspec-collection_matchers) # BuildRequires: rubygem(pry) # BuildRequires: rubygem(pry-byebug) # BuildRequires: rubygem(pry-stack_explorer) # BuildRequires: rubygem(fuubar) # BuildRequires: rubygem(coveralls) # BuildRequires: rubygem(rubocop) # BuildRequires: rubygem(guard-rubocop) BuildArch: noarch %description Praxis Blueprints is a library that allows for defining a reusable class structures that has a set of typed attributes and a set of views with which to render them. Instantiations of Blueprints resemble ruby Structs which respond to methods of the attribute names. Rendering is format-agnostic in that it results in a structured hash instead of an encoded string. Blueprints can automatically generate object structures that follow the attribute definitions. %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}/.gitignore %exclude %{gem_instdir}/.rubocop.yml %exclude %{gem_instdir}/.travis.yml %{gem_instdir}/Guardfile %license %{gem_instdir}/LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.md %{gem_instdir}/Rakefile %{gem_instdir}/praxis-blueprints.gemspec %{gem_instdir}/spec %changelog * Tue Aug 24 2021 mockbuilder - 3.5-1 - Initial package