SampleSpecs/rubymodule

From ALT Linux Wiki
%define        pkgname gemmodule
Name:          gem-%pkgname
Version:       0.0.0
Release:       alt1
Summary:       <summary>
Group:         Development/Ruby
License:       <LICENSE>
Url:           https://site.org/
Vcs:           https://github.com/user/gemmodule.git
Source:        %name-%version.tar

BuildRequires(pre): rpm-build-ruby
BuildRequires: gem(another_gem_name)

%description
%summary


%package       -n %pkgname
Summary:       %summary
Group:         <required group>
BuildArch:     noarch

%description   -n %pkgname
%summary


%package       doc
Summary:       Documentation for %gemname gem
Group:         Development/Documentation
BuildArch:     noarch

%description   doc
Documentation for %gemname gem.


%package       devel
Summary:       Development files for %gemname gem
Group:         Development/Documentation
BuildArch:     noarch

%description   devel
Development files for %gemname gem.

%prep
%setup

%build
%ruby_build

%install
%ruby_install

%check
%ruby_test

%files
%ruby_gemspec
%ruby_gemlibdir
%ruby_gemextdir

%files         -n %pkgname
%_bindir/*

%files         devel
%ruby_includedir/*

%files         doc
%ruby_gemdocdir

%changelog
* Sun Sep 32 3001 Sample Packager <sample@altlinux.org> 0.1-alt1
- initial build for ALT Linux Sisyphus

PS: For the base the spec [1] is gotten.