|
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
%{!?scl:%global pkg_name %{name}}
|
|
|
|
%global gem_name wirb
|
|
Summary: Wavy IRB: Colorizes irb results.
|
|
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
|
Version: 1.0.3
|
|
Release: 2%{?dist}
|
|
Group: Development/Ruby
|
|
License: MIT
|
|
URL: https://github.com/janlelis/wirb
|
|
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|
%if 0%{?fedora} > 18
|
|
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
%else
|
|
Requires: %{?scl_prefix_ruby}ruby(abi) = 1.9.1
|
|
%endif
|
|
Requires: %{?scl_prefix}rubygem(paint) >= 0.8
|
|
Requires: %{?scl_prefix}rubygem(paint) < 1.0
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
BuildRequires: %{?scl_prefix_ruby}rubygems
|
|
Requires: %{?scl_prefix_ruby}rubygems
|
|
BuildArch: noarch
|
|
Provides: %{?scl_prefix}rubygem(wirb) = %{version}
|
|
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}}
|
|
|
|
%define gembuilddir %{buildroot}%{gem_dir}
|
|
|
|
%description
|
|
Wavy IRB: Colorizes irb results. It originated from Wirble, but only provides
|
|
result highlighting. Just call Wirb.start and enjoy the colors in your IRB ;).
|
|
You can use it with your favorite colorizer engine. See README.rdoc for more
|
|
details.
|
|
|
|
%package doc
|
|
BuildArch: noarch
|
|
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
%{?scl:Obsoletes: ruby193-rubygem-%{gem_name}-doc}
|
|
Summary: Documentation for rubygem-%{gem_name}
|
|
|
|
%description doc
|
|
This package contains documentation for rubygem-%{gem_name}.
|
|
|
|
%prep
|
|
%setup -n %{pkg_name}-%{version} -T -c
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{gembuilddir}
|
|
%{?scl:scl enable %{scl} "}
|
|
gem install --local --install-dir %{gembuilddir} --force %{SOURCE0}
|
|
%{?scl:"}
|
|
rm -rf %{buildroot}%{gem_instdir}/.yardoc
|
|
rm -f %{buildroot}%{gem_instdir}/.gemtest
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%{gem_instdir}/lib
|
|
%{gem_instdir}/data
|
|
%doc %{gem_instdir}/COPYING.txt
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%{gem_instdir}/spec
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/CHANGELOG.rdoc
|
|
%doc %{gem_instdir}/README.rdoc
|
|
%{gem_instdir}/Rakefile
|
|
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
%changelog
|
|
* Tue Aug 25 2015 Dominic Cleal <dcleal@redhat.com> 1.0.3-2
|
|
- Converted to tfm SCL (dcleal@redhat.com)
|
|
- Fixes #9703 - change %%{dist} to %%{?dist} (jmontleo@redhat.com)
|
|
|
|
* Mon Nov 24 2014 Dominic Cleal <dcleal@redhat.com> 1.0.3-1
|
|
- Update wirb to 1.0.3 (dcleal@redhat.com)
|
|
- Add full rubygems.org source URL (dcleal@redhat.com)
|
|
|
|
* Thu Jul 04 2013 Dominic Cleal <dcleal@redhat.com> 0.4.2-6
|
|
- change ruby(abi) to ruby(release) for F19+ (dcleal@redhat.com)
|
|
- delete all zero sized tito.props (msuchy@redhat.com)
|
|
- with recent tito you do not need SCL meta package (msuchy@redhat.com)
|
|
|
|
* Wed Mar 27 2013 Miroslav Suchý <msuchy@redhat.com> 0.4.2-4
|
|
- put correct license in spec (msuchy@redhat.com)
|
|
|
|
* Thu Mar 14 2013 Miroslav Suchý <msuchy@redhat.com> 0.4.2-3
|
|
- new package built with tito
|
|
|
|
* Fri Sep 07 2012 Miroslav Suchý <msuchy@redhat.com> 0.4.2-2
|
|
- polish the spec (msuchy@redhat.com)
|
|
|
|
* Thu Sep 06 2012 Miroslav Suchý <msuchy@redhat.com> 0.4.2-1
|
|
- new package built with tito
|