[rubygem-deltacloud-client/f12/master] Initial import

Michal Fojtik mfojtik at fedoraproject.org
Fri Oct 29 10:41:35 UTC 2010


commit d8feb20a8da6484295fa3e0c681b45b2c2fe8138
Author: Michal Fojtik <mfojtik at redhat.com>
Date:   Fri Oct 29 12:41:35 2010 +0200

    Initial import

 .gitignore                     |    1 +
 rubygem-deltacloud-client.spec |   76 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d5d5b41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/deltacloud-client-0.1.0.gem
diff --git a/rubygem-deltacloud-client.spec b/rubygem-deltacloud-client.spec
new file mode 100644
index 0000000..d234cd8
--- /dev/null
+++ b/rubygem-deltacloud-client.spec
@@ -0,0 +1,76 @@
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname deltacloud-client
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: Deltacloud REST Client
+Name: rubygem-%{gemname}
+Version: 0.1.0
+Release: 1%{?dist}
+Group: Development/Languages
+License: ASL 2.0
+URL: http://www.deltacloud.org
+Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: rubygems
+Requires: rubygem(rest-client) >= 1.4.2
+Requires: rubygem(nokogiri) >= 1.4.1
+BuildRequires: rubygems
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+Deltacloud REST Client for API
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires:%{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
+
+%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
+
+# There are Test::Unit files inside test directory, however those
+# require deltacloud-core server running.
+%check
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%{geminstdir}/bin
+%{geminstdir}/lib
+%{geminstdir}/init.rb
+%{_bindir}/deltacloudc
+%doc %{geminstdir}/COPYING
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%defattr(-, root, root, -)
+%{geminstdir}/specs
+%{geminstdir}/Rakefile
+%{gemdir}/doc/%{gemname}-%{version}
+
+%changelog
+* Thu Oct 14 2010 Michal Fojtik <mfojtik at redhat.com> - 0.1.0-1
+- Version bump
+
+* Thu Oct 14 2010 Michal Fojtik <mfojtik at redhat.com> - 0.0.9.8-1
+- Initial package
diff --git a/sources b/sources
index e69de29..5e99366 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6b82c81d41a739db4d0f1d467e29f01d  deltacloud-client-0.1.0.gem


More information about the scm-commits mailing list