foreman-packaging/rubygem-ansi/rubygem-ansi.spec @ 424264fd
91c139b2 | Dominic Cleal | %{?scl:%scl_package rubygem-%{gem_name}}
|
|
266710c2 | Dominic Cleal | %{!?scl:%global pkg_name %{name}}
|
|
%global gem_name ansi
|
|||
%define _version 1.4.3
|
|||
690d2d30 | Dominic Cleal | %define _summary The ANSI project is a superlative collection of ANSI escape code
|
|
%define _url https://github.com/rubyworks/ansi
|
|||
266710c2 | Dominic Cleal | %define _license FreeBSD
|
|
%define desc The ANSI project is a superlative collection of ANSI escape code related libraries enabling ANSI colorization and stylization of console output. Byte for byte ANSI is the best ANSI code library available for the Ruby programming language.
|
|||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|||
Version: %{_version}
|
|||
424264fd | Dominic Cleal | Release: 5%{?dist}
|
|
266710c2 | Dominic Cleal | Summary: %{_summary}
|
|
Group: Development/Languages
|
|||
License: %{_license}
|
|||
URL: %{_url}
|
|||
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|||
BuildArch: noarch
|
|||
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|||
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
|
|
266710c2 | Dominic Cleal | ||
e4e6840b | Dominic Cleal | %if "%{?scl_ruby}" == "ruby193" || (0%{?el6} && 0%{!?scl:1})
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(abi)
|
|
BuildRequires: %{?scl_prefix_ruby}ruby(abi)
|
|||
690d2d30 | Dominic Cleal | %else
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}ruby(release)
|
|
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|||
266710c2 | Dominic Cleal | %endif
|
|
b319e683 | Dominic Cleal | Requires: %{?scl_prefix_ruby}rubygems
|
|
266710c2 | Dominic Cleal | ||
b319e683 | Dominic Cleal | BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems
|
|||
266710c2 | Dominic Cleal | ||
%description
|
|||
%{desc}
|
|||
%package doc
|
|||
BuildArch: noarch
|
|||
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|||
b319e683 | Dominic Cleal | %{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
|
|
266710c2 | Dominic Cleal | Summary: Documentation for %{pkg_name}
|
|
%description doc
|
|||
This package contains documentation for %{pkg_name}
|
|||
%prep
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem unpack %{SOURCE0}
|
|||
%{?scl:"}
|
|||
%setup -q -D -T -n %{gem_name}-%{version}
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|||
%{?scl:"}
|
|||
%build
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem build %{gem_name}.gemspec
|
|||
%{?scl:"}
|
|||
%if 0%{?fedora} > 18
|
|||
%gem_install
|
|||
%else
|
|||
mkdir -p .%{gem_dir}
|
|||
%{?scl:scl enable %{scl} "}
|
|||
gem install -V --local --install-dir .%{gem_dir} --force --rdoc \
|
|||
%{gem_name}-%{version}.gem
|
|||
%{?scl:"}
|
|||
%endif
|
|||
%install
|
|||
mkdir -p %{buildroot}%{gem_dir}
|
|||
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
|
|||
690d2d30 | Dominic Cleal | %files
|
|
266710c2 | Dominic Cleal | %dir %{gem_instdir}
|
|
%exclude %{gem_cache}
|
|||
%exclude %{gem_instdir}/test
|
|||
%exclude %{gem_instdir}/.yardopts
|
|||
%{gem_spec}
|
|||
%{gem_libdir}
|
|||
%{gem_instdir}/Config.rb
|
|||
%exclude %{gem_instdir}/.ruby
|
|||
%doc %{gem_instdir}/COPYING.rdoc
|
|||
%doc %{gem_instdir}/DEMO.rdoc
|
|||
%doc %{gem_instdir}/HISTORY.rdoc
|
|||
%doc %{gem_instdir}/README.rdoc
|
|||
%files doc
|
|||
%doc %{gem_instdir}/demo
|
|||
%doc %{gem_docdir}/rdoc
|
|||
%doc %{gem_docdir}/ri
|
|||
%changelog
|
|||
424264fd | Dominic Cleal | * Tue Aug 25 2015 Dominic Cleal <dcleal@redhat.com> 1.4.3-5
|
|
- Fix checks against scl name, optimise rhel/empty SCL conditional
|
|||
(dcleal@redhat.com)
|
|||
- Converted to tfm SCL (dcleal@redhat.com)
|
|||
f5399089 | Dominic Cleal | * Tue Jul 28 2015 Dominic Cleal <dcleal@redhat.com> 1.4.3-4
|
|
- Fix typo in -doc requires on main package (dcleal@redhat.com)
|
|||
8dcc8aa3 | Dominic Cleal | * Thu May 29 2014 Dominic Cleal <dcleal@redhat.com> 1.4.3-2
|
|
- Modernise and update for EL7 (dcleal@redhat.com)
|
|||
266710c2 | Dominic Cleal | * Tue Oct 08 2013 Ivan Necas <inecas@redhat.com> 1.4.3-1
|
|
- Rebuild for katello
|
|||
* Fri Sep 06 2013 Marek Hulan <mhulan@redhat.com> 1.4.3-0
|
|||
- new package built with tito
|