commit 74b6721be05152e707b8ff0bdd8d183533e630a6
Author: Björn Esser <bjoern.esser(a)gmail.com>
Date: Mon Oct 28 22:56:21 2013 +0100
added symlink to %%{gem_name}_ext.rb in %%{ruby_vendorarchdir}
rubygem-narray.spec | 35 ++++++++++++++++++++---------------
1 files changed, 20 insertions(+), 15 deletions(-)
---
diff --git a/rubygem-narray.spec b/rubygem-narray.spec
index b0655e7..ee32eb9 100644
--- a/rubygem-narray.spec
+++ b/rubygem-narray.spec
@@ -2,7 +2,7 @@
Name: rubygem-%{gem_name}
Version: 0.6.0.8
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: N-dimensional Numerical Array class for Ruby
License: BSD and Ruby
@@ -35,8 +35,8 @@ Obsoletes: %{name}-common-devel <= %{version}-%{release}
Obsoletes: %{name}-doc <= %{version}-%{release}
%description devel
-This package contains the development files and the developer's documentation
-for %{name}.
+This package contains the development files and the developer's
+documentation for %{name}.
%prep
@@ -54,24 +54,26 @@ gem build %{gem_name}.gemspec
%else
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
mkdir -p ./%{gem_dir}
-gem install -V --local --force --rdoc \
- --install-dir ./%{gem_dir} \
- --bindir ./%{_bindir} \
+gem install -V --local --force --rdoc \
+ --install-dir ./%{gem_dir} \
+ --bindir ./%{_bindir} \
%{gem_name}-%{version}.gem
%endif
%install
-mkdir -p %{buildroot}%{gem_dir} \
- %{buildroot}%{gem_extdir_mri} \
+mkdir -p %{buildroot}%{gem_dir} \
+ %{buildroot}%{gem_extdir_mri} \
%{buildroot}%{ruby_vendorarchdir}
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}
-mv -f %{buildroot}%{gem_instdir}/%{gem_name}.so \
+mv -f %{buildroot}%{gem_instdir}/%{gem_name}.so \
%{buildroot}%{gem_extdir_mri}
-# Some applications expect the so-plugin and headers to be placed inside
-# %%{ruby_vendorarchdir}.
-ln -fs %{gem_extdir_mri}/%{gem_name}.so \
+# Some applications expect the so-plugin, %%{gem_name}_ext.rb and
+# the headers to be placed inside %%{ruby_vendorarchdir}.
+ln -fs %{gem_extdir_mri}/%{gem_name}.so \
+ %{buildroot}%{ruby_vendorarchdir}
+ln -fs %{gem_instdir}/%{gem_name}_ext.rb \
%{buildroot}%{ruby_vendorarchdir}
for _header in %{buildroot}%{gem_instdir}/*.h
do
@@ -79,10 +81,10 @@ do
%{buildroot}%{ruby_vendorarchdir}
done
-# Some clean-up of 0-size files, unneded stuff and files, which get picked-up
-# by %doc later.
+# Some clean-up of 0-size files, unneded stuff and files, which get
+# picked-up by %doc later.
find %{buildroot} -depth -size 0 -type f -print0 | xargs -0 rm -rf
-rm -rf %{buildroot}%{gem_cache} \
+rm -rf %{buildroot}%{gem_cache} \
%{buildroot}%{gem_instdir}/{ChangeLog,README.*,src}
@@ -106,6 +108,9 @@ rm -rf %{buildroot}%{gem_cache} \
%changelog
+* Mon Oct 28 2013 Björn Esser <bjoern.esser(a)gmail.com> - 0.6.0.8-3
+- added symlink to %%{gem_name}_ext.rb in %%{ruby_vendorarchdir}
+
* Sun Sep 15 2013 Björn Esser <bjoern.esser(a)gmail.com> - 0.6.0.8-2
- obsoleted common, common-devel and doc pkg
- moved some development-related files from main to devel pkg