SPEC.rubygem-cfa_grub2/rubygem-cfa_grub2.spec
2025-02-23 20:24:07 +08:00

36 lines
998 B
RPMSpec

%global gem_name cfa_grub2
Name: rubygem-cfa_grub2
Version: 2.0.0
Release: 0
%define mod_name cfa_grub2
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ruby(release) rubygems-devel rubygem(rspec) >= 3 rubygem(did_you_mean)
Url: https://github.com/config-files-api/config_files_api_grub2
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Summary: Models for GRUB2 configuration files
License: LGPL-3.0-only
Group: Development/Languages/Ruby
%description
Models allowing easy read and modification of GRUB2 configuration files. It is
a plugin for cfa framework.
%prep
%autosetup -n %{mod_full_name} -p1
gem unpack %{SOURCE0}
%build
gem build ../%{mod_full_name}.gemspec
%install
%gem_install \
%files
%dir %{gem_instdir}
%{gem_libdir}
%{_datadir}/gems/doc/%{mod_full_name}/
%{_datadir}/gems/gems/%{mod_full_name}/
%exclude %{gem_cache}
%{gem_spec}
%changelog