[rubygem-narray/f18] Initial import (#1005463)

Björn Esser besser82 at fedoraproject.org
Sun Sep 8 07:33:53 UTC 2013


commit 9b4afb9cc9bc90bf06a6be0aea5e951e96dfa3c5
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Sat Sep 7 19:58:17 2013 +0200

    Initial import (#1005463)

 .gitignore          |    5 ++
 rubygem-narray.spec |  158 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 164 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9b11018 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*~
+*.gem
+*.rpm
+*.tar*
+results_*/
diff --git a/rubygem-narray.spec b/rubygem-narray.spec
new file mode 100644
index 0000000..9b708ab
--- /dev/null
+++ b/rubygem-narray.spec
@@ -0,0 +1,158 @@
+%global gem_name narray
+
+Name:		rubygem-%{gem_name}
+Version:	0.6.0.8
+Release:	1%{?dist}
+Summary:	N-dimensional Numerical Array class for Ruby
+
+License:	BSD and Ruby
+URL:		http://narray.rubyforge.org
+Source0:	http://rubygems.org/downloads/%{gem_name}-%{version}.gem
+
+BuildRequires:	ruby-devel
+BuildRequires:	rubygems-devel
+
+Requires:	ruby(release)
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	rubygems
+
+%description
+NArray is a Numerical N-dimensional Array class.  Supported element
+types are 1/2/4-byte Integer, single/double-precision, Real/Complex and
+Ruby Object.  This extension library incorporates fast calculation and
+easy manipulation of large numerical arrays into the Ruby language.
+NArray has features similar to NumPy, but NArray has vector and matrix
+sub-classes.
+
+
+%package common
+Summary:	Common files for %{name}
+
+BuildArch:	noarch
+Requires:	ruby(release)
+Requires:	%{name} = %{version}-%{release}
+Requires:	rubygems
+
+%description common
+This package contains %{summary}.
+
+
+%package common-devel
+Summary:	Common development files for %{name}
+
+BuildArch:	noarch
+Requires:	ruby(release)
+Requires:	%{name} = %{version}-%{release}
+Requires:	%{name}-devel = %{version}-%{release}
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	rubygems
+
+%description common-devel
+This package contains %{summary}.
+
+
+%package devel
+Summary:	Development files for %{name}
+
+Requires:	ruby(release)
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+Requires:	%{name}-common = %{version}-%{release}
+Requires:	%{name}-common-devel = %{version}-%{release}
+Requires:	rubygems
+
+%description devel
+This package contains %{summary}.
+
+
+%package doc
+Summary:	Documentation files for %{name}
+
+BuildArch:	noarch
+Requires:	rubygems
+
+%description doc
+This package contains %{summary}.
+
+
+%prep
+gem unpack %{SOURCE0}
+%setup -qDTn  %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+
+
+%build
+%configure ||:
+gem build %{gem_name}.gemspec
+
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+%gem_install
+%else
+export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+mkdir -p ./%{gem_dir}
+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}	\
+	%{buildroot}%{ruby_vendorarchdir}
+cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}
+mv -f %{buildroot}%{gem_instdir}/%{gem_name}.so	\
+	%{buildroot}%{gem_extdir_mri}
+
+# some applications want to have the so-plugin and
+# headers in %%{ruby_vendorarchdir}
+ln -fs %{gem_extdir_mri}/%{gem_name}.so	\
+	%{buildroot}%{ruby_vendorarchdir}
+for _header in %{buildroot}%{gem_instdir}/*.h
+do
+  ln -fs `echo ${_header} | sed -e 's!^%{buildroot}!!g'`	\
+	%{buildroot}%{ruby_vendorarchdir}
+done
+
+# some clean-up, 0-size files and duplicated binaries
+find %{buildroot} -depth -size 0 -type f -print0 | xargs -0 rm -rf
+rm -rf %{buildroot}%{gem_cache}				\
+	%{buildroot}%{gem_instdir}/src/%{gem_name}.so	\
+	%{buildroot}%{gem_instdir}/src/*.o
+
+
+%files
+%doc README.*
+%{gem_extdir_mri}/%{gem_name}.so
+%{ruby_vendorarchdir}/%{gem_name}.so
+
+%files common
+%dir %{gem_instdir}
+%exclude %{gem_instdir}/ChangeLog
+%exclude %{gem_instdir}/MANIFEST
+%exclude %{gem_instdir}/README.*
+%exclude %{gem_instdir}/SPEC.*
+%exclude %{gem_instdir}/*.h
+%exclude %{gem_instdir}/src
+%{gem_instdir}/*
+%{gem_spec}
+
+%files common-devel
+%{gem_instdir}/*.h
+%{gem_instdir}/src
+
+%files devel
+%{ruby_vendorarchdir}/*.h
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/ChangeLog
+%doc %{gem_instdir}/MANIFEST
+%doc %{gem_instdir}/README.*
+%doc %{gem_instdir}/SPEC.*
+%dir %{gem_instdir}
+
+
+%changelog
+* Sat Sep 07 2013 Björn Esser <bjoern.esser at gmail.com> - 0.6.0.8-1
+- Initial rpm release (#1005463)
diff --git a/sources b/sources
index e69de29..e932f92 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6d04719d686c8574bed76ce7f9b58bae  narray-0.6.0.8.gem


More information about the scm-commits mailing list