Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SPEC agora teste se o ruby fornecido faz parte do RPM do ruby-enterprise

  • Loading branch information...
commit 00591c2bd11051dd6bcebb8e9833d96080b7ba7e 1 parent 929d44d
@rgaiser rgaiser authored
Showing with 508 additions and 57 deletions.
  1. +7 −0 ruby-enterprise-rubygem-bacon/README
  2. +18 −4 ruby-enterprise-rubygem-bacon/bacon.spec
  3. +7 −0 ruby-enterprise-rubygem-cgi_multipart_eof_fix/README
  4. +18 −4 ruby-enterprise-rubygem-cgi_multipart_eof_fix/cgi_multipart_eof_fix.spec
  5. +7 −0 ruby-enterprise-rubygem-daemon_controller/README
  6. +18 −4 ruby-enterprise-rubygem-daemon_controller/daemon_controller.spec
  7. +7 −0 ruby-enterprise-rubygem-daemons/README
  8. +18 −4 ruby-enterprise-rubygem-daemons/daemons.spec
  9. +7 −0 ruby-enterprise-rubygem-eventmachine/README
  10. +71 −0 ruby-enterprise-rubygem-eventmachine/eventmachine.spec
  11. +7 −0 ruby-enterprise-rubygem-fastthread/README
  12. +18 −4 ruby-enterprise-rubygem-fastthread/fastthread.spec
  13. +7 −0 ruby-enterprise-rubygem-fcgi/README
  14. +18 −4 ruby-enterprise-rubygem-fcgi/fcgi.spec
  15. +7 −0 ruby-enterprise-rubygem-file-tail/README
  16. +18 −4 ruby-enterprise-rubygem-file-tail/file-tail.spec
  17. +7 −0 ruby-enterprise-rubygem-gem_plugin/README
  18. +18 −4 ruby-enterprise-rubygem-gem_plugin/gem_plugin.spec
  19. +7 −0 ruby-enterprise-rubygem-memcache-client/README
  20. +18 −4 ruby-enterprise-rubygem-memcache-client/memcache-client.spec
  21. +7 −0 ruby-enterprise-rubygem-mongrel/README
  22. +18 −4 ruby-enterprise-rubygem-mongrel/mongrel.spec
  23. +7 −0 ruby-enterprise-rubygem-passenger/README
  24. +18 −4 ruby-enterprise-rubygem-passenger/passenger.spec
  25. +7 −0 ruby-enterprise-rubygem-rack/README
  26. +18 −4 ruby-enterprise-rubygem-rack/rack.spec
  27. +7 −0 ruby-enterprise-rubygem-rake/README
  28. +18 −4 ruby-enterprise-rubygem-rake/rake.spec
  29. +7 −0 ruby-enterprise-rubygem-spruz/README
  30. +18 −4 ruby-enterprise-rubygem-spruz/spruz.spec
  31. +7 −0 ruby-enterprise-rubygem-thin/README
  32. +70 −0 ruby-enterprise-rubygem-thin/thin.spec
  33. +3 −1 ruby-enterprise/README
View
7 ruby-enterprise-rubygem-bacon/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-bacon/bacon.spec
@@ -1,7 +1,6 @@
# Generated from bacon-1.1.0.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname bacon
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -23,9 +22,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
Bacon is a small RSpec clone weighing less than 350 LoC but nevertheless
providing all essential features. http://github.com/chneukirchen/bacon
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-cgi_multipart_eof_fix/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-cgi_multipart_eof_fix/cgi_multipart_eof_fix.spec
@@ -1,7 +1,6 @@
# Generated from cgi_multipart_eof_fix-2.5.0.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname cgi_multipart_eof_fix
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -22,9 +21,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
%description
Fix an exploitable bug in CGI multipart parsing.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-daemon_controller/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-daemon_controller/daemon_controller.spec
@@ -1,7 +1,6 @@
# Generated from daemon_controller-0.2.5.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname daemon_controller
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -22,9 +21,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
%description
A library for robust daemon management.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-daemons/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-daemons/daemons.spec
@@ -1,7 +1,6 @@
# Generated from daemons-1.1.0.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname daemons
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -33,9 +32,24 @@ backtracing and logging (in case your ruby script crashes) and monitoring and
automatic
restarting of your processes if they crash.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-eventmachine/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
71 ruby-enterprise-rubygem-eventmachine/eventmachine.spec
@@ -0,0 +1,71 @@
+# Generated from eventmachine-0.12.10.gem by gem2rpm -*- rpm-spec -*-
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define gemname eventmachine
+%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+Summary: Ruby/EventMachine library
+Name: ruby-enterprise-rubygem-%{gemname}
+Version: 0.12.10
+Release: 1%{?dist}
+Group: Development/Languages
+License: GPLv2+ or Ruby
+URL: http://rubyeventmachine.com
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: ruby-enterprise-rubygems
+BuildRequires: ruby-enterprise-rubygems
+Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
+
+%description
+EventMachine implements a fast, single-threaded engine for arbitrary network
+communications. It's extremely easy to use in Ruby. EventMachine wraps all
+interactions with IP sockets, allowing programs to concentrate on the
+implementation of network protocols. It can be used to create both network
+servers and clients. To create a server or client, a Ruby program only needs
+to specify the IP address and port, and provide a Module that implements the
+communications protocol. Implementations of several standard network protocols
+are provided with the package, primarily to serve as examples. The real goal
+of EventMachine is to enable programs to easily interface with other programs
+using TCP/IP, especially if custom protocols are required.
+
+%prep
+
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+gem install --local --install-dir %{buildroot}%{gemdir} \
+ --force --rdoc %{SOURCE0}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%{gemdir}/gems/%{gemname}-%{version}/
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+
+%changelog
+* Fri Nov 12 2010 Roberto Gaiser <rgaiser@optimus.local> - 0.12.10-1
+- Initial package
View
7 ruby-enterprise-rubygem-fastthread/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-fastthread/fastthread.spec
@@ -1,7 +1,6 @@
# Generated from fastthread-1.0.7.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname fastthread
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -21,9 +20,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
%description
Optimized replacement for thread.rb primitives
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-fcgi/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-fcgi/fcgi.spec
@@ -1,7 +1,6 @@
# Generated from fcgi-0.8.8.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname fcgi
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -23,9 +22,24 @@ FastCGI is a language independent, scalable, open extension to CGI that
provides high performance without the limitations of server specific APIs. For
more information, see http://www.fastcgi.com/.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-file-tail/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-file-tail/file-tail.spec
@@ -1,7 +1,6 @@
# Generated from file-tail-1.0.5.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname file-tail
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -23,9 +22,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
%description
Library to tail files in Ruby
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-gem_plugin/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-gem_plugin/gem_plugin.spec
@@ -1,7 +1,6 @@
# Generated from gem_plugin-0.2.3.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname gem_plugin
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -22,9 +21,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
%description
A plugin system based on rubygems that uses dependencies only
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-memcache-client/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-memcache-client/memcache-client.spec
@@ -1,7 +1,6 @@
# Generated from memcache-client-1.8.5.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname memcache-client
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -22,9 +21,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
%description
A Ruby library for accessing memcached.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-mongrel/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-mongrel/mongrel.spec
@@ -1,7 +1,6 @@
# Generated from mongrel-1.1.5.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname mongrel
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -26,9 +25,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa
apps.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-passenger/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-passenger/passenger.spec
@@ -1,7 +1,6 @@
# Generated from passenger-3.0.0.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname passenger
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -27,9 +26,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
%description
Easy and robust Ruby web application deployment.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-rack/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-rack/rack.spec
@@ -1,7 +1,6 @@
# Generated from rack-1.2.1.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname rack
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -33,9 +32,24 @@ servers, web frameworks, and software in between (the so-called
middleware) into a single method call.
Also see http://rack.rubyforge.org.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-rake/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-rake/rake.spec
@@ -1,7 +1,6 @@
# Generated from rake-0.8.7.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname rake
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -23,9 +22,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
specified in standard Ruby syntax.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-spruz/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
22 ruby-enterprise-rubygem-spruz/spruz.spec
@@ -1,7 +1,6 @@
# Generated from spruz-0.2.2.gem by gem2rpm -*- rpm-spec -*-
-%define ruby /usr/local/bin/ruby
-%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define gemname spruz
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
@@ -22,9 +21,24 @@ Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
%description
All the stuff that isn't good/big enough for a real library.
-
%prep
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
%build
%install
View
7 ruby-enterprise-rubygem-thin/README
@@ -0,0 +1,7 @@
+To build use:
+
+rpmbuild -bb <specfile> --define 'ruby <ruby-enterprise install dir>/bin/ruby>'
+
+Error?
+
+* Did you add "<ruby-enterprise install dir>/bin" to the PATH?
View
70 ruby-enterprise-rubygem-thin/thin.spec
@@ -0,0 +1,70 @@
+# Generated from thin-1.2.7.gem by gem2rpm -*- rpm-spec -*-
+%define ruby_sitelib %(%{ruby} -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
+%define gemdir %(%{ruby} -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%define gemname thin
+%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+Summary: A thin and fast web server
+Name: ruby-enterprise-rubygem-%{gemname}
+Version: 1.2.7
+Release: 1%{?dist}
+Group: Development/Languages
+License: GPLv2+ or Ruby
+URL: http://code.macournoyer.com/thin/
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: ruby-enterprise-rubygems
+Requires: ruby-enterprise-rubygem(rack) >= 1.0.0
+Requires: ruby-enterprise-rubygem(eventmachine) >= 0.12.6
+Requires: ruby-enterprise-rubygem(daemons) >= 1.0.9
+BuildRequires: ruby-enterprise-rubygems
+Provides: ruby-enterprise-rubygem(%{gemname}) = %{version}
+
+%description
+A thin and fast web server
+
+%prep
+
+if ! [ -e %{ruby} ]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} does not exists"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+rubyrpm=`rpm -q --whatprovides %{ruby}`
+
+if ! [[ $rubyrpm =~ ^ruby-enterprise ]]; then
+ echo "Please provide your ruby enterprise path"
+ echo "%{ruby} it's not from the ruby-enterprise RPM"
+ echo "Use: --define 'ruby ruby path'"
+ exit 1
+fi
+
+%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
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root, -)
+%{_bindir}/thin
+%{gemdir}/gems/%{gemname}-%{version}/
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+
+%changelog
+* Fri Nov 12 2010 Roberto Gaiser <rgaiser@optimus.local> - 1.2.7-1
+- Initial package
View
4 ruby-enterprise/README
@@ -1,3 +1,5 @@
To use another "prefix":
-rpmbuild -bb ruby-enterprise.spec --define '_prefix /usr/local'
+rpmbuild -bb ruby-enterprise.spec --define '_prefix /opt/ruby-enterprise'
+
+Don't forget to add your "<ruby-enterprise>/bin" to the PATH
Please sign in to comment.
Something went wrong with that request. Please try again.