# Generated from licensee-9.13.1.gem by gem2rpm -*- rpm-spec -*- %global gem_name licensee Name: rubygem-%{gem_name} Version: 9.13.1 Release: 1%{?dist} Summary: A Ruby Gem to detect open source project licenses License: MIT URL: https://github.com/benbalter/licensee Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby > 2.3 BuildRequires: rubygem(mustache) >= 0.9 BuildRequires: rubygem(rspec) >= 3.5 BuildRequires: rubygem(webmock) >= 3.1 BuildArch: noarch %description Licensee automates the process of reading LICENSE files and compares their contents to known licenses using a fancy maths. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %if 0%{?rhel} <= 7 gem unpack %{SOURCE0} gem specification %{SOURCE0} -l --ruby > %{gem_name}-%{version}.gemspec %endif %setup -q -D -n %{gem_name}-%{version} %build gem build ../%{gem_name}-%{version}.gemspec %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} #rspec -Ilib -rlicensee spec popd %files %dir %{gem_instdir} %{_bindir}/licensee %license %{gem_instdir}/LICENSE.md %{gem_instdir}/bin %{gem_libdir} %{gem_instdir}/vendor %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %license %{gem_instdir}/licensee.gemspec %{gem_instdir}/spec %changelog * Thu Mar 19 2020 Pavel Valena - 9.13.1-1 - Initial package