Sha256: 48723fce9d6100c96c1d7eb3156904cf3addee738d9069373181242daf4818aa

Contents?: true

Size: 1.08 KB

Versions: 12

Compression:

Stored size: 1.08 KB

Contents

%define name <%= pkg.name %>
%define version <%= pkg.version %>
%define unmangled_version <%= pkg.version %>
%define release 1

Summary: <%= pkg.summary %>
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{unmangled_version}.tar.gz
License: <%= pkg.license %>
Group: Development/Tools
Prefix: %{_prefix}
Vendor: <%= pkg.authors.first %> <<%= pkg.email.first %>>
Url: <%= pkg.homepage %>
BuildArch: noarch
BuildRequires: ruby, rubygem-rake, rubygem-bundler
Requires: ruby, rubygem-rake

%define gemdir <%= Gem.dir %>
%define gembuilddir %{buildroot}%{gemdir}

%description
<%= pkg.description %>

%prep
%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}

%build

%install
%{__rm} -rf %{buildroot}
mkdir -p %{gembuilddir}
sed -i -e 's#spec.files\s*=.*#spec.files = Dir.glob("**/*")#' %{name}.gemspec
rake build
gem install --local --install-dir %{gembuilddir} --force pkg/%{name}-%{version}.gem
mkdir -p %{buildroot}/%{_bindir}
mv %{gembuilddir}/bin/* %{buildroot}/%{_bindir}
rmdir %{gembuilddir}/bin

%clean
rm -rf $RPM_BUILD_ROOT

%files
%{gemdir}
%{_bindir}/*

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
chake-0.10.1 chake.spec.erb
chake-0.10 chake.spec.erb
chake-0.9.1 chake.spec.erb
chake-0.9 chake.spec.erb
chake-0.8 chake.spec.erb
chake-0.7 chake.spec.erb
chake-0.6 chake.spec.erb
chake-0.5 chake.spec.erb
chake-0.4.3 chake.spec.erb
chake-0.4.2 chake.spec.erb
chake-0.4.1 chake.spec.erb
chake-0.4 chake.spec.erb