# Generated from rubymacros-0.1.6.gem by gem2rpm -*- rpm-spec -*- %global gem_name rubymacros Name: rubygem-%{gem_name} Version: 0.1.6 Release: 1%{?dist} Summary: RubyMacros is a lisp-like macro pre-processor for Ruby License: LGPL-2.1 URL: http://github.com/coatl/rubymacros Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch %description RubyMacros is a lisp-like macro pre-processor for Ruby. More than just a purely textual substitution scheme, RubyMacros can manipulate and morph Ruby parse trees (in the form of RedParse Nodes) at parse time in just about any way you see fit. Macros are programmed in ruby itself. And since parse trees are represented in RedParse format, they're easier to use (programatically) and more object- oriented than other available ruby parsetree formats. (RedParse Node format is actually designed to be straightforward to use and to represent the structure of ruby source code very closely.). %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} # Run the test suite. popd %files %dir %{gem_instdir} %license %{gem_instdir}/COPYING.LGPL %{gem_instdir}/Makefile %{gem_instdir}/Manifest.txt %{gem_instdir}/TODO %{gem_instdir}/bin %{gem_instdir}/example %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/History.txt %doc %{gem_instdir}/README.txt %{gem_instdir}/rubymacros.gemspec %{gem_instdir}/test %changelog * Wed Apr 20 2022 mockbuilder - 0.1.6-1 - Initial package