[rubygem-kgio/f17] Fixed typo with site_arch
Guillermo Gómez
gomix at fedoraproject.org
Sat Mar 24 02:52:22 UTC 2012
commit 152431af8447ada291a6b4fd380d09fcd1c6d3c8
Author: Guillermo Gomez S. (Gomix) <guillermo.gomez at gmail.com>
Date: Fri Mar 23 22:21:45 2012 -0430
Fixed typo with site_arch
rubygem-kgio.spec | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/rubygem-kgio.spec b/rubygem-kgio.spec
index 48a2d79..a665ab1 100644
--- a/rubygem-kgio.spec
+++ b/rubygem-kgio.spec
@@ -21,6 +21,7 @@ BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby(rubygems)
BuildRequires: ruby-devel
BuildRequires: ruby-irb
+BuildRequires: rubygems-devel
Provides: rubygem(%{gem_name}) = %{version}
ExcludeArch: ppc ppc64
@@ -40,21 +41,26 @@ Documentation for %{name}
%prep
%setup -q -c -T
-
-%build
mkdir -p .%{gem_dir}
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
-gem install --local --install-dir .%{gem_dir} \
- -V \
- --force %{SOURCE0}
+gem install \
+ -V \
+ --local \
+ --install-dir .%{gem_dir} \
+ --force \
+ --rdoc \
+ %{SOURCE0}
# Adjusting minor permissions
chmod a+r .%{gem_instdir}/ChangeLog
chmod a+r .%{gem_instdir}/NEWS
+%build
+
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gem_dir}
+mkdir -p %{buildroot}%{gem_extdir}/lib
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
@@ -72,7 +78,7 @@ rm -f %{buildroot}/%{gem_instdir}/GIT-VERSION-GEN
rm -rf %{buildroot}%{gem_instdir}/.yardoc
rm -rf %{buildroot}%{gem_instdir}/ext
-install -d -m0755 %{buildroot}%{ruby_sitearch}
+install -d -m0755 %{buildroot}%{gem_extdir}
mv %{buildroot}%{gem_instdir}/lib/kgio_ext.so %{buildroot}%{gem_extdir}/lib/
%check
More information about the scm-commits
mailing list