[rubygem-cloudfiles] Initial Import (#673854)

Major Hayden mhayden at fedoraproject.org
Thu Mar 3 14:41:03 UTC 2011


commit 96d28b8a006d11023a772f860c39c7f9aeff2c8f
Author: mhayden <major at mhtx.net>
Date:   Thu Mar 3 08:40:57 2011 -0600

    Initial Import (#673854)

 .gitignore              |    1 +
 rubygem-cloudfiles.spec |   90 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e1c8c74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cloudfiles-1.4.10.gem
diff --git a/rubygem-cloudfiles.spec b/rubygem-cloudfiles.spec
new file mode 100644
index 0000000..27a6527
--- /dev/null
+++ b/rubygem-cloudfiles.spec
@@ -0,0 +1,90 @@
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname cloudfiles
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: A Ruby version of the Rackspace Cloud Files API
+Name: rubygem-%{gemname}
+Version: 1.4.10
+Release: 2%{?dist}
+Group: Development/Languages
+License: MIT or Ruby
+URL: https://github.com/rackspace/ruby-cloudfiles
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Requires: rubygems
+Requires: ruby(abi) = %{rubyabi} 
+Requires: rubygem(mime-types)
+BuildRequires: ruby(abi) = %{rubyabi} 
+BuildRequires: ruby(rubygems) 
+BuildRequires: rubygem(rake)
+BuildRequires: rubygem(mime-types)
+BuildRequires: rubygem(mocha)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires:%{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}
+
+%description
+A Ruby version of the Rackspace Cloud Files API.
+
+%prep
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+gem install -V --local --install-dir %{buildroot}%{gemdir} \
+            --force --rdoc %{SOURCE0}
+# mkdir -p %{buildroot}/%{_bindir}
+# find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
+for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
+    [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
+done
+for file in `find %{buildroot}/%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
+    [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
+done
+find %{buildroot}/%{geminstdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
+rm -f %{buildroot}/%{geminstdir}/.gitignore
+rm -f %{buildroot}/%{geminstdir}/Manifest
+rm -f %{buildroot}/%{geminstdir}/cloudfiles.gemspec
+
+
+%check
+pushd %{buildroot}%{geminstdir}
+rake test --trace
+popd
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}
+%{geminstdir}/lib
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%doc %{geminstdir}/README.rdoc
+%doc %{geminstdir}/COPYING
+%doc %{geminstdir}/VERSION
+%doc %{geminstdir}/TODO
+
+
+%files doc
+%defattr(-, root, root, -)
+%{geminstdir}/test
+%{geminstdir}/Rakefile
+%{gemdir}/doc/%{gemname}-%{version}
+
+%changelog
+* Tue Mar 01 2011 Major Hayden <major at mhtx.net> - 1.4.10-2
+- Added ruby(abi) Requires/BuildRequires lines per packaging guidelines
+
+* Sun Jan 30 2011 Major Hayden <major at mhtx.net> - 1.4.10-1
+- Initial package
diff --git a/sources b/sources
index e69de29..91a4081 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e3fd27f64b894d758f9be6810be1efc0  cloudfiles-1.4.10.gem


More information about the scm-commits mailing list