[rubygem-rhc/f16] Updated version 0.93.18, new spec file, doc package split.
Guillermo Gómez
gomix at fedoraproject.org
Tue Jun 12 16:04:39 UTC 2012
commit ecfbd830d7de7f4a955c13657db41cac1bf66176
Author: Guillermo Gómez <gomix at fedoraproject.org>
Date: Tue Jun 12 11:33:58 2012 -0430
Updated version 0.93.18, new spec file, doc package split.
.gitignore | 1 +
rubygem-rhc.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++---------
sources | 2 +-
3 files changed, 56 insertions(+), 12 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 30c48d2..e4b628e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@
/rhc-0.88.9.gem
/rhc-0.91.12.gem
/rhc-0.92.11.gem
+/rhc-0.93.18.gem
diff --git a/rubygem-rhc.spec b/rubygem-rhc.spec
index a0b8f3e..b27bbd7 100644
--- a/rubygem-rhc.spec
+++ b/rubygem-rhc.spec
@@ -4,7 +4,7 @@
Summary: OpenShift Express Client Tools
Name: rubygem-%{gem_name}
-Version: 0.92.11
+Version: 0.93.18
Release: 1%{?dist}
Group: Development/Tools
License: MIT
@@ -18,8 +18,11 @@ Requires: rubygem-parseconfig
Requires: rubygem-rest-client
Requires: rubygem-rake
BuildRequires: ruby-irb
+BuildRequires: rubygems
BuildRequires: rubygems-devel
BuildRequires: rubygem-rake
+BuildRequires: rubygem-minitest
+BuildRequires: rubygem-rspec
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
@@ -28,24 +31,59 @@ 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.
+%package doc
+Summary: Documentation for %{gem_name}
+Group: Documentation
+Requires: rubygem(%{name})
+
+%description doc
+Documentation for %{name}
+
%prep
+gem unpack %{SOURCE0}
+
+%setup -q -D -T -n %{gem_name}-%{version}
+
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+# Modify the gemspec if necessary with a patch or sed
+# Also apply patches to code if necessary
+# %%patch0 -p1
%build
+mkdir -p .%{gem_dir}
+# Create the gem as gem install only works on a gem file
+gem build %{gem_name}.gemspec
+
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+
+# gem install compiles any C extensions and installs into a directory
+# We set that to be a local directory so that we can move it into the
+# buildroot in %%install
+RHC_RPMBUILD=true gem install -V \
+ --local \
+ --install-dir ./%{gem_dir} \
+ --bindir ./%{_bindir} \
+ --force \
+ --rdoc \
+ %{gem_name}-%{version}.gem
+
+%check
+# Run tests
%install
-rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
+
+# If there were programs installed:
mkdir -p %{buildroot}%{_bindir}
-RHC_RPMBUILD=true gem install --local --install-dir %{buildroot}%{gem_dir} \
- --force --rdoc %{SOURCE0}
-chmod 0755 %{buildroot}%{gem_dir}/bin/*
-chmod 0755 %{buildroot}%{gem_instdir}/bin/*
+cp -a ./%{_bindir}/* %{buildroot}%{_bindir}
-mv %{buildroot}%{gem_dir}/bin/* %{buildroot}%{_bindir}/
-rm -rf %{buildroot}%{geminstdir}/.yardoc
+chmod 0755 %{buildroot}%{_bindir}/*
+rm -rf %{buildroot}%{gem_instdir}/.yardoc
+rm -rf %{buildroot}%{gem_instdir}/spec
+rm -rf %{buildroot}%{gem_instdir}/test
rm %{buildroot}%{gem_instdir}/Rakefile
-rm %{buildroot}%{gem_instdir}/ext/Rakefile
-rm %{buildroot}%{gem_instdir}/ext/mkrf_conf.rb
%clean
rm -rf %{buildroot}
@@ -58,7 +96,6 @@ rm -rf %{buildroot}
%doc %{gem_instdir}/COPYRIGHT
%doc %{gem_instdir}/LICENSE
%doc %{gem_instdir}/README.md
-%doc %{gem_docdir}
%{gem_cache}
%{gem_spec}
%{gem_instdir}/bin/*
@@ -66,8 +103,14 @@ rm -rf %{buildroot}
%{gem_instdir}/conf/*
%{_bindir}/*
+%files doc
+%doc %{gem_docdir}
%changelog
+* Fri Jun 08 2012 Guillermo Gómez <gomix at fedoraproject.org> - 0.93.18-1
+- Updated to version 0.93.18
+- Documentation package split
+
* Sun May 27 2012 Guillermo Gómez <gomix at fedoraproject.org> - 0.92.11-1
- Updated to version 0.92.11
diff --git a/sources b/sources
index 82b49cd..da0e751 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ddaa2a97238b1b3a28c12f7393e204bf rhc-0.92.11.gem
+b705d2e3dee23bed9c72a891c20d67ea rhc-0.93.18.gem
More information about the scm-commits
mailing list