1 | %define ruby /usr/bin/ruby |
---|
2 | %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]') |
---|
3 | %define rarchdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]') |
---|
4 | |
---|
5 | Summary: ruby interface to the GNU Science Library |
---|
6 | Name: rb-gsl |
---|
7 | Version: 1.10.3 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | License: GPLv2 |
---|
10 | Group: Development/Libraries |
---|
11 | Source0: http://rubyforge.org/frs/download.php/28909/%{name}-%{version}.tar.gz |
---|
12 | Patch0: rb-gsl-1.10.3-shell.patch |
---|
13 | URL: http://rb-gsl.rubyforge.org/ |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildRequires: ruby-devel, gsl-devel, ruby-narray |
---|
17 | Requires: ruby-narray |
---|
18 | |
---|
19 | Vendor: Project Vine |
---|
20 | Distribution: Vine Linux |
---|
21 | |
---|
22 | %description |
---|
23 | The Ruby/GSL provides a ruby interface to the GSL (GNU Scientific Library) for |
---|
24 | numerical computation with ((<Ruby|URL:http://www.ruby-lang.org/en/>)). This requires |
---|
25 | the GSL library, which is found on the development website |
---|
26 | ((<URL:http://sources.redhat.com/gsl/>)). |
---|
27 | |
---|
28 | %prep |
---|
29 | %setup -q |
---|
30 | %patch0 -p1 |
---|
31 | |
---|
32 | %build |
---|
33 | ruby setup.rb config --siterubyver=%{rlibdir} --sodir=%{rarchdir} -- --with-narray-include=%{rarchdir} |
---|
34 | ruby setup.rb setup |
---|
35 | |
---|
36 | %install |
---|
37 | rm -rf $RPM_BUILD_ROOT |
---|
38 | %ruby setup.rb install --prefix=${RPM_BUILD_ROOT} |
---|
39 | |
---|
40 | %clean |
---|
41 | rm -rf ${RPM_BUILD_ROOT} |
---|
42 | |
---|
43 | |
---|
44 | %files |
---|
45 | %defattr(-,root,root) |
---|
46 | %doc AUTHORS COPYING ChangeLog README THANKS VERSION |
---|
47 | %doc examples/ html/ rd/ tests/ |
---|
48 | %{rlibdir}/* |
---|
49 | #{rarchdir}/rb_gsl.so |
---|
50 | |
---|
51 | %changelog |
---|
52 | * Sun Nov 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.10.3-1 |
---|
53 | - new upstream release, updated URL |
---|
54 | - added Patch0 for typo fix |
---|
55 | - applied new versioning policy |
---|
56 | - fixed License to GPLv2 |
---|
57 | - built with gsl-1.11 |
---|
58 | |
---|
59 | * Sun Aug 5 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.0-0vl2 |
---|
60 | - rebuilt with gsl-1.9 |
---|
61 | |
---|
62 | * Thu May 31 2007 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.9.0-0vl1 |
---|
63 | - new upstream release |
---|
64 | |
---|
65 | * Mon Feb 28 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.6.1-0vl1 |
---|
66 | - new upstream release |
---|
67 | |
---|
68 | * Mon Jan 24 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.6.0-0vl2 |
---|
69 | - add oper.rb to install files |
---|
70 | - change setup.rb config option |
---|
71 | - change to use setup.rb for install |
---|
72 | |
---|
73 | * Mon Jan 24 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.6.0-0vl1 |
---|
74 | - new upstream release |
---|
75 | |
---|
76 | * Wed Jun 23 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.4.3-0vl1 |
---|
77 | - new upstream release |
---|
78 | |
---|
79 | * Mon Apr 26 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.3.11-0vl1 |
---|
80 | - new upstream release |
---|
81 | |
---|
82 | * Wed Apr 14 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.3.8-0vl1 |
---|
83 | - new upstream release |
---|
84 | |
---|
85 | * Thu Apr 12 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.3.7-0vl1 |
---|
86 | - first package |
---|