diff --git a/rubygem-cheetah.spec b/rubygem-cheetah.spec index d8c05f6..7dcb46e 100644 --- a/rubygem-cheetah.spec +++ b/rubygem-cheetah.spec @@ -1,37 +1,11 @@ -# -# spec file for package rubygem-cheetah -# -# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany. -# -# 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 http://bugs.opensuse.org/ -# - - -# -# This file was generated with a gem2rpm.yml and not just plain gem2rpm. -# All sections marked as MANUAL, license headers, summaries and descriptions -# can be maintained in that file. Please consult this file before editing any -# of those fields -# +%global gem_name cheetah Name: rubygem-cheetah Version: 1.0.0 Release: 0 %define mod_name cheetah %define mod_full_name %{mod_name}-%{version} -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 5 -BuildRequires: ruby >= 2.5 -BuildRequires: rubygem-gem2rpm +BuildRequires: ruby(release) rubygems-devel rubygem(rspec) >= 3 rubygem(did_you_mean) Url: https://github.com/openSUSE/cheetah Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml @@ -44,14 +18,21 @@ Your swiss army knife for executing external commands in Ruby safely and conveniently. %prep - +%autosetup -n %{mod_full_name} -p1 +gem unpack %{SOURCE0} %build - +gem build ../%{mod_full_name}.gemspec %install -%gem_install \ - --doc-files="CHANGELOG LICENSE README.md" \ - -f - -%gem_packages +%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