openmamba logo
GNU/Linux distribution
distribution community wiki forum bugs events products
software   community wiki forum bugs events products
packages rubygems-git.spec
      Pages: < 1 >  DOWNLOAD      
# Generated from git-1.2.5.gem by gem2rpm -*- rpm-spec -*-
%define        ruby_sitelibdir      %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')
%define        ruby_sitearchdir     %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')
%define        ruby_version         %(ruby -rrbconfig -e 'puts Config::CONFIG["ruby_version"]')
%define        gemdir               %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%define        gemname              git
%define        geminstdir           %{gemdir}/gems/%{gemname}-%{version}
%define        installroot          %{buildroot}%{geminstdir}

Summary:       A package for using Git in Ruby code
Name:          rubygems-%{gemname}
Version:       1.2.5
Release:       1mamba
Group:         Development/Languages
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://github.com/schacon/ruby-git
Source0:       http://rubygems.org/gems/%{gemname}-%{version}.gem
License:       GPL, Ruby License
BuildRequires: rubygems
BuildRequires: rubygems-rake
Requires:      ruby
Requires:      rubygems 
#BuildArch:     noarch
Provides:      rubygem(%{gemname}) = %{version}
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
Ruby/Git is a Ruby library that can be used to create, read and manipulate Git
repositories by wrapping system calls to the git binary

%prep

%setup -q -c -T

mkdir -p .%{gemdir}

%build

gem install -V \
  --local \
  --install-dir $PWD/%{gemdir} \
  --force --rdoc \
  %{SOURCE0}

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{gemdir}
cp -a ./%{gemdir}/* %{buildroot}%{gemdir}/.

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%dir %{geminstdir}
%{geminstdir}/lib
%doc %{geminstdir}/README
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%doc %{gemdir}/doc/%{gemname}-%{version}

%changelog
* Wed Jan 12 2011 gil <puntogil@...> 1.2.5-1mamba
- Initial package