Project

General

Profile

Download (3.6 KB) Statistics
| Branch: | Tag: | Revision:
aca3a79a specs-from-koji (Jenkins)
%{?scl:%scl_package rubygem-%{gem_name}}
%{!?scl:%global pkg_name %{name}}
d6e2d23b Jason Montleon
aca3a79a specs-from-koji (Jenkins)
%global gem_name awesome_print
d6e2d23b Jason Montleon
aca3a79a specs-from-koji (Jenkins)
Summary: Pretty print Ruby objects with proper indentation and colors
Name: %{?scl_prefix}rubygem-%{gem_name}
Version: 1.0.2
994e2180 specs-from-koji (Jenkins)
Release: 10%{?dist}
aca3a79a specs-from-koji (Jenkins)
Group: Development/Languages
License: MIT
d6e2d23b Jason Montleon
URL: http://github.com/michaeldv/awesome_print
aca3a79a specs-from-koji (Jenkins)
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: %{?scl_prefix}ruby(rubygems)
Requires: %{?scl_prefix}ruby
d6e2d23b Jason Montleon
994e2180 specs-from-koji (Jenkins)
%if "%{?scl}" == "ruby193" || (0%{?rhel} == 6 && "%{?scl}" == "")
Requires: %{?scl_prefix}ruby(abi)
BuildRequires: %{?scl_prefix}ruby(abi)
aca3a79a specs-from-koji (Jenkins)
%else
994e2180 specs-from-koji (Jenkins)
Requires: %{?scl_prefix}ruby(release)
BuildRequires: %{?scl_prefix}ruby(release)
aca3a79a specs-from-koji (Jenkins)
%endif

BuildRequires: %{?scl_prefix}rubygems-devel
BuildRequires: %{?scl_prefix}ruby
994e2180 specs-from-koji (Jenkins)
#BuildRequires: %{?scl_prefix}rubygem-rspec
aca3a79a specs-from-koji (Jenkins)
BuildArch: noarch
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
d6e2d23b Jason Montleon
%description
aca3a79a specs-from-koji (Jenkins)
Great Ruby debugging companion: pretty print Ruby objects to visualize their
structure. Supports custom object formatting via plugins.


%package doc
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
BuildArch: noarch
d6e2d23b Jason Montleon
aca3a79a specs-from-koji (Jenkins)
%description doc
Documentation for %{pkg_name}
d6e2d23b Jason Montleon
%prep
aca3a79a specs-from-koji (Jenkins)
%setup -n %{pkg_name}-%{version} -q -c -T
mkdir -p .%{gem_dir}
%{?scl:scl enable %{scl} "}
gem install --local --install-dir .%{gem_dir} \
--force %{SOURCE0}
%{?scl:"}

# not running tests since it's broken in mock
#%check
#pushd ./%{gem_instdir}
%{?scl:scl enable %{scl} "}
#rspec -Ilib spec/
%{?scl:"}
#popd
d6e2d23b Jason Montleon
%build

%install
aca3a79a specs-from-koji (Jenkins)
mkdir -p %{buildroot}%{gem_dir}
echo %{gem_dir}
echo %{buildroot}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
rm %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/.gitignore
rm %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/Gemfile.lock
chmod -x %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/lib/awesome_print/formatter.rb
chmod -x %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/lib/ap.rb
chmod -x %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/lib/awesome_print/inspector.rb
chmod -x %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/lib/awesome_print.rb
d6e2d23b Jason Montleon

%files
aca3a79a specs-from-koji (Jenkins)
%dir %{gem_instdir}
%{gem_libdir}
%{gem_cache}
%{gem_spec}
%{gem_instdir}/LICENSE
%{gem_instdir}/Gemfile

%files doc
%doc %{gem_docdir}
%{gem_instdir}/LICENSE
%{gem_instdir}/CHANGELOG
%{gem_instdir}/README.md
%{gem_instdir}/spec/
%{gem_instdir}/spec/colors_spec.rb
%{gem_instdir}/spec/formats_spec.rb
%{gem_instdir}/spec/methods_spec.rb
%{gem_instdir}/spec/objects_spec.rb
%{gem_instdir}/spec/spec_helper.rb
%{gem_instdir}/Rakefile
d6e2d23b Jason Montleon
%changelog
994e2180 specs-from-koji (Jenkins)
* Thu May 29 2014 Dominic Cleal <dcleal@redhat.com> 1.0.2-10
- Modernise and update for EL7 (dcleal@redhat.com)

aca3a79a specs-from-koji (Jenkins)
* Thu Aug 15 2013 Sam Kottler <shk@redhat.com> 1.0.2-9
- Make the spec work on fedora + RHEL + scl (shk@redhat.com)
- delete all zero sized tito.props (msuchy@redhat.com)
- with recent tito you do not need SCL meta package (msuchy@redhat.com)

* Tue Mar 12 2013 Miroslav Suchý <msuchy@redhat.com> 1.0.2-7
- new package built with tito

* Fri Oct 26 2012 <mzatko@redhat.com> - 1.0.2-6
- Owning spec directory

* Thu Oct 04 2012 <mzatko@redhat.com> - 1.0.2-5
- Moved specs into docs, using rm instead of exclude
- Not removing Gemfile

* Thu Sep 20 2012 <mzatko@redhat.com> - 1.0.2-4
- Renamed spec file to rubygem_awesome_print.spec

* Tue Sep 04 2012 <mzatko@redhat.com> - 1.0.2-3
- Added license file to doc, files in doc use docdir instead of instdir

* Mon Sep 03 2012 <mzatko@redhat.com> - 1.0.2-2
- Removed unnecessary files & corrected license

* Wed Jul 11 2012 <mzatko@redhat.com> - 1.0.2-1
- Initial package