[rubygem-rhc] Initial importa rubygem-rhc

Guillermo Gómez gomix at fedoraproject.org
Sat Jul 16 13:55:13 UTC 2011


commit fe553c2e35a77ae640fa4f42cc7f9b50d44e51b1
Author: Guillermo Gomez S. (Gomix) <guillermo.gomez at gmail.com>
Date:   Sat Jul 16 09:24:40 2011 -0430

    Initial importa rubygem-rhc

 .gitignore       |    1 +
 rubygem-rhc.spec |   72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..01a320e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rhc-0.71.2.gem
diff --git a/rubygem-rhc.spec b/rubygem-rhc.spec
new file mode 100644
index 0000000..314d758
--- /dev/null
+++ b/rubygem-rhc.spec
@@ -0,0 +1,72 @@
+%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%global gemname rhc
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+Summary:       OpenShift Express Client Tools
+Name:          rubygem-%{gemname}
+Version:       0.71.2
+Release:       2%{?dist}
+Group:         Development/Tools
+License:       MIT
+URL:           https://openshift.redhat.com/app/express
+Source0:       http://rubygems.org/downloads/%{gemname}-%{version}.gem
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires:      ruby(abi) = 1.8
+Requires:      rubygems
+Requires:      rubygem-json
+Requires:      rubygem-parseconfig
+BuildRequires: rubygems, rubygem-rake
+BuildArch:     noarch
+Provides:      rubygem(%{gemname}) = %{version}
+
+%description
+OpenShift Express Client Tools allows you to create and deploy applications to
+the cloud. The OpenShift Express client is a command line tool that allows you
+to manage your applications in the cloud.
+
+%prep
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+mkdir -p %{buildroot}%{_bindir}
+gem install --local --install-dir %{buildroot}%{gemdir} \
+            --force --rdoc %{SOURCE0}
+chmod 0755 %{buildroot}%{gemdir}/bin/*
+chmod 0755 %{buildroot}%{geminstdir}/bin/*
+
+mv %{buildroot}%{gemdir}/bin/* %{buildroot}%{_bindir}/
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%dir %{geminstdir}/bin
+%dir %{geminstdir}/lib
+%dir %{geminstdir}/conf
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%doc %{geminstdir}/LICENSE
+%doc %{geminstdir}/README
+%doc %{geminstdir}/Rakefile
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%{geminstdir}/bin/*
+%{geminstdir}/lib/*
+%{geminstdir}/conf/*
+%{_bindir}/*
+
+%changelog
+* Sat Jul 09 2011 Guillermo Gómez <gomix at fedoraproject.org - 0.71.2-2
+- Package now owns geminstdir
+- User binaries moved to the right place
+- %%dir missuse corrected
+- Better URL
+- Licenced fixed to MIT
+
+* Thu Jun 23 2011 Guillermo Gomez <gomix at fedoraproject.org> - 0.71.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..cbe61ee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6fddf778d06a7a7fe5064568c1c54de3  rhc-0.71.2.gem


More information about the scm-commits mailing list