try fix build issues
This commit is contained in:
parent
ca96af3ac6
commit
920a7313f1
@ -1,21 +1,4 @@
|
|||||||
#
|
%global gem_name yast-rake
|
||||||
# spec file for package rubygem-yast-rake
|
|
||||||
#
|
|
||||||
# Copyright (c) 2024 SUSE LLC
|
|
||||||
#
|
|
||||||
# All modifications and additions to the file contributed by third parties
|
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
|
||||||
# upon. The license for this file, and modifications and additions to the
|
|
||||||
# file, is the same license as for the pristine package itself (unless the
|
|
||||||
# license for the pristine package is not an Open Source License, in which
|
|
||||||
# case the license is the MIT License). An "Open Source License" is a
|
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
|
||||||
# published by the Open Source Initiative.
|
|
||||||
|
|
||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
# Only build for the default-ruby version
|
# Only build for the default-ruby version
|
||||||
%define rb_build_versions %{rb_default_ruby}
|
%define rb_build_versions %{rb_default_ruby}
|
||||||
%define rb_build_ruby_abis %{rb_default_ruby_abi}
|
%define rb_build_ruby_abis %{rb_default_ruby_abi}
|
||||||
@ -25,10 +8,7 @@ Version: 0.2.51
|
|||||||
Release: 0
|
Release: 0
|
||||||
%define mod_name yast-rake
|
%define mod_name yast-rake
|
||||||
%define mod_full_name %{mod_name}-%{version}
|
%define mod_full_name %{mod_name}-%{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: ruby(release) rubygems-devel rubygem(rspec) >=3 rubygem(did_you_mean)
|
||||||
BuildRequires: ruby
|
|
||||||
BuildRequires: ruby-macros >= 5
|
|
||||||
BuildRequires: rubygem-gem2rpm
|
|
||||||
URL: https://github.com/yast/yast-rake
|
URL: https://github.com/yast/yast-rake
|
||||||
Source: https://rubygems.org/gems/%{mod_full_name}.gem
|
Source: https://rubygems.org/gems/%{mod_full_name}.gem
|
||||||
Summary: Rake tasks providing basic work-flow for Yast development
|
Summary: Rake tasks providing basic work-flow for Yast development
|
||||||
@ -41,14 +21,21 @@ send it to build service, create submit request to target repo or run client
|
|||||||
from git repo.
|
from git repo.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%autosetup -n %{mod_full_name} -p1
|
||||||
|
gem unpack %{SOURCE0}
|
||||||
%build
|
%build
|
||||||
|
gem build ../%{mod_full_name}.gemspec
|
||||||
%install
|
%install
|
||||||
%gem_install \
|
%gem_install
|
||||||
--doc-files="COPYING" \
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
-f
|
cp -a .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
%gem_packages
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_libdir}
|
||||||
|
%{_datadir}/gems/doc/%{mod_full_name}/
|
||||||
|
%{_datadir}/gems/gems/%{mod_full_name}/
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user