ruby/ruby.spec

changeset 685
d612d08c0455
parent 642
f954b9674ace
child 739
4b10bb3b97b3
equal deleted inserted replaced
0:d2058c48166d 1:517778ac9186
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package versions 24 # package versions
25 %define V_dist 1.9.3-p125 25 %define V_dist 1.9.3-p194
26 %define V_subdir 1.9.3-p125 26 %define V_subdir 1.9.3-p194
27 %define V_opkg 1.9.3p125 27 %define V_opkg 1.9.3p194
28 28
29 # package information 29 # package information
30 Name: ruby 30 Name: ruby
31 Summary: The Ruby Scripting Language 31 Summary: The Ruby Scripting Language
32 URL: http://www.ruby-lang.org/ 32 URL: http://www.ruby-lang.org/
35 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
36 Class: BASE 36 Class: BASE
37 Group: Language 37 Group: Language
38 License: GPL 38 License: GPL
39 Version: %{V_opkg} 39 Version: %{V_opkg}
40 Release: 20120414 40 Release: 20120800
41 41
42 # list of sources 42 # list of sources
43 Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{V_dist}.tar.gz 43 Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{V_dist}.tar.gz
44 44
45 # build information 45 # build information
48 BuildPreReq: ncurses, openssl, readline, zlib 48 BuildPreReq: ncurses, openssl, readline, zlib
49 PreReq: ncurses, openssl, readline, zlib 49 PreReq: ncurses, openssl, readline, zlib
50 50
51 %description 51 %description
52 Ruby is an interpreted scripting language for quick and easy 52 Ruby is an interpreted scripting language for quick and easy
53 object-oriented programming. It has many features to process text 53 object oriented programming. It has many features to process text
54 files and to do system management tasks (as in Perl). It is simple, 54 files and to do system management tasks (as in Perl.) It is simple,
55 straight-forward, extensible, and portable. 55 straight forward, extensible, and portable.
56 56
57 %track 57 %track
58 prog ruby = { 58 prog ruby = {
59 version = %{V_dist} 59 version = %{V_dist}
60 url = ftp://ftp.ruby-lang.org/pub/ruby/ 60 url = ftp://ftp.ruby-lang.org/pub/ruby/
71 ./configure \ 71 ./configure \
72 --prefix=%{l_prefix} \ 72 --prefix=%{l_prefix} \
73 --mandir=%{l_prefix}/man \ 73 --mandir=%{l_prefix}/man \
74 --with-ldflags="%{l_ldflags}" \ 74 --with-ldflags="%{l_ldflags}" \
75 --disable-shared 75 --disable-shared
76 %{l_make} %{l_mflags} 76 %{l_make} %{l_mflags -O}
77 77
78 %install 78 %install
79 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix} 79 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
80 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 80 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
81 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 81 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true

mercurial