Refresh the .spec file to the current standards.
This commit is contained in:
parent
4e54b72b22
commit
d71c433fab
@ -8,14 +8,15 @@ Name: rubygem-%{gem_name}
|
|||||||
Version: 1.5.0
|
Version: 1.5.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Provide a list of changes between two sequenced collections
|
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
|
URL: https://github.com/halostatue/diff-lcs
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
BuildRequires: ruby(release)
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
|
BuildRequires: ruby
|
||||||
%if ! 0%{?bootstrap}
|
%if ! 0%{?bootstrap}
|
||||||
BuildRequires: rubygem(rspec)
|
BuildRequires: rubygem(rspec)
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: ruby(release)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -33,12 +34,15 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%setup -q -n %{gem_name}-%{version}
|
||||||
%gem_install -n %{SOURCE0}
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%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
|
%install
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
@ -47,7 +51,7 @@ cp -a .%{gem_dir}/* \
|
|||||||
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
cp -pa .%{_bindir}/* \
|
cp -a .%{_bindir}/* \
|
||||||
%{buildroot}%{_bindir}/
|
%{buildroot}%{_bindir}/
|
||||||
|
|
||||||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||||
@ -85,6 +89,9 @@ popd
|
|||||||
%{gem_instdir}/spec
|
%{gem_instdir}/spec
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 27 2022 Vít Ondruch <vondruch@redhat.com> - 1.5.0-1
|
||||||
|
- Refresh the .spec file to the current standards.
|
||||||
|
|
||||||
* Thu Oct 20 2022 Pavel Valena <pvalena@redhat.com> - 1.5.0-1
|
* Thu Oct 20 2022 Pavel Valena <pvalena@redhat.com> - 1.5.0-1
|
||||||
- Update to diff-lcs 1.5.0.
|
- Update to diff-lcs 1.5.0.
|
||||||
Resolves: rhbz#1849864
|
Resolves: rhbz#1849864
|
||||||
|
Loading…
Reference in New Issue
Block a user