From d71c433fab5e6196d1312a7f52b9cb6aca933ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Thu, 27 Oct 2022 10:19:41 +0200 Subject: [PATCH] Refresh the .spec file to the current standards. --- rubygem-diff-lcs.spec | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/rubygem-diff-lcs.spec b/rubygem-diff-lcs.spec index fbb00ed..ebb3bc3 100644 --- a/rubygem-diff-lcs.spec +++ b/rubygem-diff-lcs.spec @@ -8,14 +8,15 @@ Name: rubygem-%{gem_name} Version: 1.5.0 Release: 1%{?dist} Summary: Provide a list of changes between two sequenced collections -License: GPLv2+ or Artistic or MIT +License: MIT OR Artistic-2.0 OR GPL-2.0-or-later URL: https://github.com/halostatue/diff-lcs Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) BuildRequires: rubygems-devel +BuildRequires: ruby %if ! 0%{?bootstrap} BuildRequires: rubygem(rspec) %endif -BuildRequires: ruby(release) BuildArch: noarch %description @@ -33,12 +34,15 @@ BuildArch: noarch Documentation for %{name}. %prep -%setup -q -c -T -%gem_install -n %{SOURCE0} - +%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} @@ -47,7 +51,7 @@ cp -a .%{gem_dir}/* \ mkdir -p %{buildroot}%{_bindir} -cp -pa .%{_bindir}/* \ +cp -a .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x @@ -85,6 +89,9 @@ popd %{gem_instdir}/spec %changelog +* Thu Oct 27 2022 Vít Ondruch - 1.5.0-1 +- Refresh the .spec file to the current standards. + * Thu Oct 20 2022 Pavel Valena - 1.5.0-1 - Update to diff-lcs 1.5.0. Resolves: rhbz#1849864