SPEC.rubygem-abstract_method/rubygem-abstract_method.spec
2025-02-23 19:44:34 +08:00

42 lines
1.3 KiB
RPMSpec

# originally from openSUSE, modified for integration with openEuelr package architecture
%global gem_name abstract_method
Name: rubygem-abstract_method
Version: 1.2.1
Release: 0
%define mod_name abstract_method
%define mod_full_name %{mod_name}-%{version}
BuildRequires: ruby(release) rubygems-devel
# try what happens if we don't have this
# BuildRequires: rubygem-gem2rpm
BuildRequires: rubygems-devel rubygem(rspec) >= 3 rubygem(did_you_mean)
Url: https://github.com/openSUSE/abstract_method
Source0: http://rubygems.org/gems/%{mod_full_name}.gem
Summary: Tiny library enabling you to define abstract methods in Ruby classes
License: MIT
Group: Development/Languages/Ruby
%description
Abstract Method is a tiny library enabling you to define abstract methods in
Ruby classes and modules.
# maybe we have to follow other packages' routine
%prep
%autosetup -n %{mod_full_name} -p1
gem unpack %{SOURCE0}
%build
gem build ../%{mod_full_name}.gemspec
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%files
%dir %{gem_instdir}
%{gem_libdir}
%doc %dir %{_datadir}/gems/doc/%{mod_full_name}/
%dir %{_datadir}/gems/doc/%{mod_full_name}/*
%exclude %{gem_cache}
%{gem_spec}
%changelog