Revision 27bf90bb
Added by Dominic Cleal almost 10 years ago
rubygem-highline/highline.spec | ||
---|---|---|
%global gem_name highline
|
||
|
||
%define _version 1.6.21
|
||
%define _summary "HighLine is a high-level command-line IO library"
|
||
%define _url "https://github.com/JEG2/highline"
|
||
%define _summary HighLine is a high-level command-line IO library
|
||
%define _url https://github.com/JEG2/highline
|
||
%define _license GPLv2+ or Ruby
|
||
|
||
# add gem dependencies, e.g. "Requires: %{?scl_prefix}rubygem(rails) > 3.2"
|
||
|
||
# end of EDIT
|
||
|
||
%if 0%{?rhel} == 6 || 0%{?fedora} < 17
|
||
%if "%{?scl}" == "ruby193"
|
||
%define rubyabi 1.9.1
|
||
%else
|
||
%define rubyabi 1.8
|
||
%endif
|
||
%else
|
||
%define rubyabi 1.9.1
|
||
%endif
|
||
|
||
%if 0%{?rhel} == 6 && "%{?scl}" != "ruby193"
|
||
%global gem_dir %(ruby -rubygems -e 'puts Gem.dir' 2>/dev/null)
|
||
%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}
|
||
%global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem
|
||
%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
|
||
%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}
|
||
%global gem_libdir %{gem_dir}/gems/%{gem_name}-%{version}/lib
|
||
%endif
|
||
|
||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
||
Version: %{_version}
|
||
Release: 1%{?dist}
|
||
... | ... | |
BuildArch: noarch
|
||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
||
|
||
%if 0%{?fedora} > 18
|
||
Requires: %{?scl_prefix}ruby(release)
|
||
%if "%{?scl}" == "ruby193" || (0%{?rhel} == 6 && "%{?scl}" == "")
|
||
Requires: %{?scl_prefix}ruby(abi)
|
||
BuildRequires: %{?scl_prefix}ruby(abi)
|
||
%else
|
||
Requires: %{?scl_prefix}ruby(abi) = %{rubyabi}
|
||
Requires: %{?scl_prefix}ruby(release)
|
||
BuildRequires: %{?scl_prefix}ruby(release)
|
||
%endif
|
||
Requires: %{?scl_prefix}rubygems
|
||
|
||
%if 0%{?fedora} || "%{?scl}" == "ruby193"
|
||
BuildRequires: %{?scl_prefix}rubygems-devel
|
||
%endif
|
||
%if 0%{?fedora} > 18
|
||
BuildRequires: %{?scl_prefix}ruby(release)
|
||
%else
|
||
BuildRequires: %{?scl_prefix}ruby(abi) = %{rubyabi}
|
||
%endif
|
||
BuildRequires: %{?scl_prefix}rubygems
|
||
|
||
%description
|
||
A high-level IO library that provides validation, type conversion, and more
|
||
for
|
||
command-line interfaces. HighLine also includes a complete menu system that
|
||
can
|
||
A high-level IO library that provides validation, type conversion, and more for
|
||
command-line interfaces. HighLine also includes a complete menu system that can
|
||
crank out anything from simple list selection to complete shells with just
|
||
minutes of work.
|
||
|
Also available in: Unified diff
refs #4452, #4453 - modernise and update for EL7