# Generated from cli-topic-0.9.13.gem by gem2rpm -*- rpm-spec -*- %global gem_name cli-topic Name: rubygem-%{gem_name} Version: 0.9.13 Release: 1%{?dist} Summary: ["Small framework to build CLI.", "Small framework to build CLI organised in topics/subcommands.", "https://gitlab.com/ant31/cli-topics", ["Antoine Legrand"], ["ant.legrand@gmail.com"], ["README.md", "License", "Changelog", "lib/clitopic.rb", "lib/clitopic/cli.rb", "lib/clitopic/command.rb", "lib/clitopic/command/base.rb", "lib/clitopic/command/clito.rb", "lib/clitopic/command/help.rb", "lib/clitopic/command/version.rb", "lib/clitopic/commands.rb", "lib/clitopic/helpers.rb", "lib/clitopic/parser/dummy.rb", "lib/clitopic/parser/option_parser.rb", "lib/clitopic/parsers.rb", "lib/clitopic/topic.rb", "lib/clitopic/topic/base.rb", "lib/clitopic/topics.rb", "lib/clitopic/utils.rb", "lib/clitopic/version.rb"]] License: MIT URL: https://gitlab.com/ant31/cli-topics Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0.0 # BuildRequires: rubygem(rspec) >= 2.0.0 BuildArch: noarch %description Small framework to build CLI organised in topics/subcommands. %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} %license %{gem_instdir}/License %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/Changelog %doc %{gem_instdir}/README.md %{gem_instdir}/spec %changelog * Mon Feb 07 2022 mockbuilder - 0.9.13-1 - Initial package