foreman-packaging/rubygem-table_print/rubygem-table_print.spec @ 48dde25a
27bf90bb | Dominic Cleal | %global gem_name table_print
|
|
58c47c8c | Dominic Cleal | ||
Summary: TablePrint turns objects into nicely formatted columns for easy reading
|
|||
27bf90bb | Dominic Cleal | Name: rubygem-%{gem_name}
|
|
58c47c8c | Dominic Cleal | Version: 1.5.1
|
|
48dde25a | Dominic Cleal | Release: 2%{?dist}
|
|
58c47c8c | Dominic Cleal | Group: Development/Languages
|
|
License: MIT
|
|||
URL: https://github.com/arches/table_print
|
|||
27bf90bb | Dominic Cleal | Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
%if 0%{?rhel} == 6
|
|||
58c47c8c | Dominic Cleal | Requires: ruby(abi)
|
|
BuildRequires: ruby(abi)
|
|||
27bf90bb | Dominic Cleal | %else
|
|
Requires: ruby(release)
|
|||
BuildRequires: ruby(release)
|
|||
58c47c8c | Dominic Cleal | %endif
|
|
27bf90bb | Dominic Cleal | Requires: ruby(rubygems)
|
|
58c47c8c | Dominic Cleal | BuildRequires: rubygems-devel
|
|
BuildRequires: ruby(rubygems)
|
|||
BuildRequires: ruby
|
|||
BuildArch: noarch
|
|||
27bf90bb | Dominic Cleal | Provides: rubygem(%{gem_name}) = %{version}
|
|
58c47c8c | Dominic Cleal | ||
%description
|
|||
TablePrint turns objects into nicely formatted columns for easy reading.
|
|||
Works great in rails console, works on pure ruby objects, auto-detects
|
|||
columns, lets you traverse ActiveRecord associations. Simple, powerful.
|
|||
%package doc
|
|||
Summary: Documentation for %{name}
|
|||
Group: Documentation
|
|||
Requires: %{name} = %{version}-%{release}
|
|||
BuildArch: noarch
|
|||
%description doc
|
|||
Documentation for %{name}
|
|||
%prep
|
|||
%setup -q -c -T
|
|||
mkdir -p .%{gem_dir}
|
|||
gem install --local --install-dir .%{gem_dir} \
|
|||
--force %{SOURCE0}
|
|||
%build
|
|||
%install
|
|||
mkdir -p %{buildroot}%{gem_dir}
|
|||
cp -pa .%{gem_dir}/* \
|
|||
%{buildroot}%{gem_dir}/
|
|||
%files
|
|||
27bf90bb | Dominic Cleal | %dir %{gem_instdir}
|
|
%{gem_instdir}/lib
|
|||
%exclude %{gem_dir}/cache/%{gem_name}-%{version}.gem
|
|||
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
|
|||
%{gem_instdir}/features
|
|||
%{gem_instdir}/spec
|
|||
%{gem_instdir}/Rakefile
|
|||
%{gem_instdir}/.rspec
|
|||
%{gem_instdir}/Gemfile
|
|||
%exclude %{gem_instdir}/%{gem_name}.gemspec
|
|||
%exclude %{gem_instdir}/.document
|
|||
%exclude %{gem_instdir}/.gitignore
|
|||
%exclude %{gem_instdir}/.travis.yml
|
|||
58c47c8c | Dominic Cleal | ||
%files doc
|
|||
27bf90bb | Dominic Cleal | %doc %{gem_dir}/doc/%{gem_name}-%{version}
|
|
%doc %{gem_instdir}/README.rdoc
|
|||
%doc %{gem_instdir}/LICENSE.txt
|
|||
58c47c8c | Dominic Cleal | ||
%changelog
|
|||
48dde25a | Dominic Cleal | * Thu May 29 2014 Dominic Cleal <dcleal@redhat.com> 1.5.1-2
|
|
- Modernise and update for EL7 (dcleal@redhat.com)
|
|||
58c47c8c | Dominic Cleal | * Fri Mar 21 2014 Martin Bačovský <mbacovsk@redhat.com> 1.5.1-1
|
|
- Bump to 1.5.1 (mbacovsk@redhat.com)
|
|||
* Tue Aug 27 2013 Sam Kottler <shk@redhat.com> 1.1.5-3
|
|||
- Fix up the spec's description and summary to remove rpmlint warnings
|
|||
(shk@redhat.com)
|
|||
* Tue Aug 27 2013 Sam Kottler <shk@redhat.com> 1.1.5-2
|
|||
- new package built with tito
|
|||
* Tue Aug 27 2013 Sam Kottler <shk@redhat.com> 1.1.5-1
|
|||
- Initial package creation
|