Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (48 sloc) 1.77 kb
# Generated from rjb-1.2.0.gem by gem2rpm -*- rpm-spec -*-
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname rjb
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
Summary: Ruby Java bridge
Name: rubygem-%{gemname}
Version: 1.2.0
Release: 2%{?dist}
Group: Development/Languages
License: GPLv2+
URL: http://rjb.rubyforge.org/
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: ruby(abi) = 1.8
Requires: rubygems
Requires: java >= 1.5
BuildRequires: rubygems
BuildRequires: ruby-devel
BuildRequires: java-devel
Provides: rubygem(%{gemname}) = %{version}
%description
RJB is a bridge program that connect between Ruby and Java with Java Native
Interface.
%prep
%setup -q -c -T
%build
JAVA_HOME=/usr/lib/jvm/java gem install --local \
--install-dir .%{gemdir} --force --rdoc %{SOURCE0}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
cp -R . %{buildroot}
%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
* Tue May 11 2010 Adam Young <ayoung@ayoung.boston.devel.redhat.com> - 1.2.0-2
- Package now doe s the gem install in the build stage, as that causes all of the C based RPM magic to work, including the generation of the debuginfo package.
- Changed define to global
- added dependencies needed to build cleanly in a mock environment
* Wed Mar 31 2010 Adam Young <ayoung@ayoung.boston.devel.redhat.com> - 1.2.0-1
- Initial package
Jump to Line
Something went wrong with that request. Please try again.