Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
:
Snorby
>
ruby-common19
> ruby.common-macros
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ruby.common-macros of Package ruby-common19
# %%gem_unpack macro unpacks a gem file into %%{_builddir} # # example: # %prep # %gem_unpack %{SOURCE0} # %patch1 -p1 # %gem_unpack(s:) \ source=%{-s:%{-s*}}%{!-s:%{SOURCE0}} \ %{?gem19_binary}%{!?gem19_binary:/usr/bin/gem1.9} unpack --verbose $source \ cd %{mod_name}-%{version} \ chmod og-w -R . \ %{?gem19_binary}%{!?gem19_binary:/usr/bin/gem1.9} unpack --spec $source \ %{nil} # %%gem_build macro ... # %gem_build() \ GEMSPEC_SOURCE_DIR=`find . -maxdepth 2 -type f -name %{mod_name}-%{version}.gemspec | xargs dirname` \ cd $GEMSPEC_SOURCE_DIR && %{?gem19_binary}%{!?gem19_binary:/usr/bin/gem1.9} build --verbose %{mod_name}-%{version}.gemspec \ %{nil} # %%gem_install macro ... # # When invoked with a single parameter, the macro retains the old macro behavior, i.e. # building the upstream gem directly in $RPM_BUILD_ROOT without unpacking to %{_builddir} first. # %gem_install /usr/lib/rpm/gem_install.sh --default-gem %{mod_name}-%{version}.gem --build-root %{buildroot} %{?gem19_binary:--gem-binary %{gem19_binary}} %gem_cleanup() \ /usr/lib/rpm/gem_build_cleanup.sh %{buildroot}%{_libdir}/ruby/gems/%{rb19_ver}/ \ %{nil} # this is used in older gems - but it's pointless with newer ruby/rpm versions %rubygems_requires %{nil}