42 lines
1.2 KiB
RPMSpec
42 lines
1.2 KiB
RPMSpec
%global gem_name yast-rake
|
|
# Only build for the default-ruby version
|
|
%define rb_build_versions %{rb_default_ruby}
|
|
%define rb_build_ruby_abis %{rb_default_ruby_abi}
|
|
|
|
Name: rubygem-yast-rake
|
|
Version: 0.2.51
|
|
Release: 0
|
|
%define mod_name yast-rake
|
|
%define mod_full_name %{mod_name}-%{version}
|
|
BuildRequires: ruby(release) rubygems-devel rubygem(rspec) >= 3 rubygem(did_you_mean)
|
|
URL: https://github.com/yast/yast-rake
|
|
Source: https://rubygems.org/gems/%{mod_full_name}.gem
|
|
Summary: Rake tasks providing basic work-flow for Yast development
|
|
License: LGPL-2.1-only
|
|
Group: Development/Languages/Ruby
|
|
|
|
%description
|
|
Rake tasks that support work-flow of Yast developer. It allows packaging repo,
|
|
send it to build service, create submit request to target repo or run client
|
|
from git repo.
|
|
|
|
%prep
|
|
%autosetup -n %{mod_full_name} -p1
|
|
gem unpack %{SOURCE0}
|
|
%build
|
|
gem build ../%{mod_full_name}.gemspec
|
|
%install
|
|
%gem_install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%{gem_libdir}
|
|
%{_datadir}/gems/doc/%{mod_full_name}/
|
|
%{_datadir}/gems/gems/%{mod_full_name}/
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
%changelog
|