# Generated from metanorma-cli-1.4.16.gem by gem2rpm -*- rpm-spec -*- %global gem_name metanorma-cli Name: rubygem-%{gem_name} Version: 1.4.16 Release: 1%{?dist} Summary: Metanorma is the standard of standards; the metanorma gem allows you to create any standard document type supported by Metanorma License: BSD-2-Clause URL: https://www.metanorma.com Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.5.0 # BuildRequires: rubygem(byebug) >= 10.0 # BuildRequires: rubygem(byebug) < 11 # BuildRequires: rubygem(pry) # BuildRequires: rubygem(rspec) >= 3.0 # BuildRequires: rubygem(rspec) < 4 # BuildRequires: rubygem(rspec-command) >= 1.0.3 # BuildRequires: rubygem(rspec-command) < 1.1 # BuildRequires: rubygem(rspec-core) >= 3.4 # BuildRequires: rubygem(rspec-core) < 4 # BuildRequires: rubygem(simplecov) >= 0.15 # BuildRequires: rubygem(simplecov) < 1 # BuildRequires: rubygem(vcr) >= 5.0.0 # BuildRequires: rubygem(vcr) < 5.1 # BuildRequires: rubygem(webmock) # BuildRequires: rubygem(rubocop) >= 1.5.2 # BuildRequires: rubygem(rubocop) < 1.6 # BuildRequires: rubygem(sassc) BuildArch: noarch %description Executable to process any Metanorma standard. %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}/exe -type f | xargs chmod a+x %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/index.html %{_bindir}/index.xml %{_bindir}/metanorma %{_bindir}/metanorma-manifest %{_bindir}/metanorma.old %{_bindir}/rfc2629-other.ent %{_bindir}/rfc2629-xhtml.ent %{_bindir}/rfc2629.dtd %{_bindir}/rfc6350.adoc %{_bindir}/rfc6350.xml %{gem_instdir}/CODE_OF_CONDUCT.md %license %{gem_instdir}/LICENSE %{gem_instdir}/bin %{gem_instdir}/exe %{gem_instdir}/i18n.yaml %{gem_libdir} %{gem_instdir}/templates %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %doc %{gem_instdir}/README.adoc %{gem_instdir}/Rakefile %doc %{gem_instdir}/docs %{gem_instdir}/metanorma-cli.gemspec %changelog * Tue Sep 14 2021 mockbuilder - 1.4.16-1 - Initial package