%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %define gemname abiquo-etk %define geminstdir %{gemdir}/gems/%{gemname}-%{version} Summary: Abiquo Elite Toolkit Name: rubygem-%{gemname} Version: 0.4.14 Release: 1%{?dist} Group: Development/Languages License: GPLv2+ or Ruby URL: http://github.com/rubiojr/abiquo-etk Source0: %{gemname}-%{version}.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: rubygems Requires: rubygem(nokogiri) >= 1.3 Requires: rubygem(term-ansicolor) >= 1.0 BuildRequires: rubygems BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description Tools to troubleshoot your Abiquo installation %prep %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} gem install --local --install-dir %{buildroot}%{gemdir} \ --force --rdoc %{SOURCE0} mkdir -p %{buildroot}/%{_bindir} mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} rmdir %{buildroot}%{gemdir}/bin find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x %clean rm -rf %{buildroot} %files %defattr(-, root, root, -) %{_bindir}/abicli %{_bindir}/aetk-setup-server %{_bindir}/aetk-setup-rs %{_bindir}/aetk-setup-v2v %{_bindir}/abiquo-check-16-install %{gemdir}/gems/%{gemname}-%{version}/ %doc %{gemdir}/doc/%{gemname}-%{version} %doc %{geminstdir}/LICENSE %doc %{geminstdir}/README.rdoc %doc %{geminstdir}/TODO %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec %changelog * Wed Oct 20 2010 : Sergio Rubio - 0.4.14-1 - Updated to upstream 0.4.14 * Wed Oct 20 2010 : Sergio Rubio - 0.4.13-1 - Updated to upstream 0.4.13 * Wed Oct 20 2010 : Sergio Rubio - 0.4.12-1 - Updated to upstream 0.4.12 * Thu Oct 07 2010 : Sergio Rubio - 0.4.9-1 - Updated to upstream 0.4.9 * Thu Oct 07 2010 : Sergio Rubio - 0.4.8-1 - Updated to upstream 0.4.8 * Fri Oct 01 2010 : Sergio Rubio - 0.4.7-1 - Updated to upstream 0.4.7 * Fri Oct 01 2010 : Sergio Rubio - 0.4.6-1 - Updated to upstream 0.4.6 * Fri Oct 01 2010 : Sergio Rubio - 0.4.5-1 - Updated to upstream 0.4.5 * Tue Sep 28 2010 : Sergio Rubio - 0.4.3-1 - Updated to upstream 0.4.3 * Mon Sep 27 2010 : Sergio Rubio - 0.4.2-1 - Updated to upstream 0.4.2 * Mon Sep 27 2010 : Sergio Rubio - 0.4.1-1 - Updated to upstream 0.4.1 * Mon Sep 27 2010 : Sergio Rubio - 0.4-1 - Updated to upstream 0.4 * Thu Sep 23 2010 : Sergio Rubio - 0.3.11-1 - Updated to upstream 0.3.11 * Thu Sep 23 2010 : Sergio Rubio - 0.3.10-1 - Updated to upstream 0.3.10 * Thu Sep 23 2010 : Sergio Rubio - 0.3.9-1 - Updated to upstream 0.3.9 * Wed Sep 22 2010 : Sergio Rubio - 0.3.8-1 - Updated to upstream 0.3.8 * Tue Sep 21 2010 : Sergio Rubio - 0.3.7-1 - Updated to upstream 0.3.7 * Thu Sep 16 2010 : Sergio Rubio - 0.3.6-1 - Updated to upstream 0.3.6 * Tue Sep 07 2010 : Sergio Rubio - 0.3.5-1 - Updated to upstream 0.3.5 * Tue Sep 07 2010 : Sergio Rubio - 0.3.4-1 - Updated to upstream 0.3.4 * Mon Sep 06 2010 : Sergio Rubio - 0.3.3-1 - Updated to upstream 0.3.3 * Mon Aug 30 2010 : Sergio Rubio - 0.3.2-1 - Updated to upstream 0.3.2 * Mon Aug 30 2010 : Sergio Rubio - 0.3.1-1 - Updated to upstream 0.3.1 * Mon Aug 30 2010 : Sergio Rubio - 0.3-1 - Initial package