On 07/20/11 - 01:40:43PM, Mo Morsi wrote:
---
.../aeolus-image/rubygem-aeolus-image.spec | 52 +++++++++++--------
1 files changed, 30 insertions(+), 22 deletions(-)
diff --git a/services/image_factory/aeolus-image/rubygem-aeolus-image.spec
b/services/image_factory/aeolus-image/rubygem-aeolus-image.spec
index f7f5e06..b099cc3 100644
--- a/services/image_factory/aeolus-image/rubygem-aeolus-image.spec
+++ b/services/image_factory/aeolus-image/rubygem-aeolus-image.spec
First, this has moved to its own repository:
https://github.com/aeolusproject/aeolus-image
@@ -1,31 +1,38 @@
-%define ruby_sitelib %(ruby -rrbconfig -e "puts
Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%define gemname aeolus-image
-%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
-%define mandir /usr/man/man1
-
-Summary: Commandline interface for working with the Aeolus cloud suite
-Name: rubygem-%{gemname}
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname aeolus-image
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global mandir %{_mandir}/man1
+%global rubyabi 1.8
+
+Summary: Command-line interface for working with the Aeolus cloud suite
+Name: rubygem-aeolus-image
Version: 0.0.1
-Release: 1%{?dist}%{?extra_release}
+Release: 3%{?dist}%{?extra_release}
Group: Development/Languages
License: GPLv2+ or Ruby
URL:
http://aeolusproject.org
+# The source for this packages was pulled from the upstream's git repo.
+# Use the following commands to generate the gem
+# git clone
git://git.fedorahosted.org/aeolus/conductor.git
+# git checkout next
+# cd services/image_factory/aeolus-image
+# rake gem
+# grab image_factory_console-0.0.1.gem from the pkg subdir
Source0: %{gemname}-%{version}.gem
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires: ruby(abi) = %{rubyabi}
Requires: rubygems
Requires: rubygem(nokogiri) >= 1.4.0
Requires: rubygem(rest-client)
-Requires: rubygem(imagefactory-console) >= 0.4.0
+Requires: rubygem(image_factory_console) >= 0.4.0
Is this right? Didn't we just rename image_factory_console to
imagefactory-console?
+BuildRequires: ruby
BuildRequires: rubygems
+
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
-Obsoletes: rubygem-aeolus-cli
-Provides: rubygem(aeolus-cli)
-
We might want to consider keeping this in the upstream repository. While it is
not a problem for rawhide, if you are building this package on Fedora-14 and
trying to upgrade from the old aeolus-cli, you'll run into dependency issues.
The rest looks OK.
--
Chris Lalancette