# Generated from diff-lcs-1.5.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name diff-lcs Name: rubygem-%{gem_name} Version: 1.5.0 Release: 1%{?dist} Summary: Diff::LCS computes the difference between two Enumerable sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm License: MIT and Artistic-2.0 and GPL-2.0+ URL: https://github.com/halostatue/diff-lcs Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 1.8 # BuildRequires: rubygem(hoe-doofus) >= 1.0 # BuildRequires: rubygem(hoe-doofus) < 2 # BuildRequires: rubygem(hoe-gemspec2) >= 1.1 # BuildRequires: rubygem(hoe-gemspec2) < 2 # BuildRequires: rubygem(hoe-git) >= 1.6 # BuildRequires: rubygem(hoe-git) < 2 # BuildRequires: rubygem(hoe-rubygems) >= 1.0 # BuildRequires: rubygem(hoe-rubygems) < 2 # BuildRequires: rubygem(rspec) >= 2.0 # BuildRequires: rubygem(rspec) < 4 # BuildRequires: rubygem(hoe) >= 3.23 # BuildRequires: rubygem(hoe) < 4 BuildArch: noarch %description Diff::LCS computes the difference between two Enumerable sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities to create a simple HTML diff output format and a standard diff-like tool. This is release 1.4.3, providing a simple extension that allows for Diff::LCS::Change objects to be treated implicitly as arrays and fixes a number of formatting issues. Ruby versions below 2.5 are soft-deprecated, which means that older versions are no longer part of the CI test suite. If any changes have been introduced that break those versions, bug reports and patches will be accepted, but it will be up to the reporter to verify any fixes prior to release. The next major release will completely break compatibility. %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}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %{_bindir}/htmldiff %{_bindir}/ldiff %{gem_instdir}/Code-of-Conduct.md %license %{gem_instdir}/License.md %{gem_instdir}/Manifest.txt %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %exclude %{gem_instdir}/.rspec %doc %{gem_instdir}/Contributing.md %doc %{gem_instdir}/History.md %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %doc %{gem_instdir}/docs %{gem_instdir}/spec %changelog * Thu Dec 23 2021 mockbuilder - 1.5.0-1 - Initial package