Sat, 01 Sep 2012 12:17:10 +0200
Back out attempt to repair gets(3) redefinition and correct rather by
avoiding detection of gets(3) as a method with no macro, otherwise
leading to definition of HAVE_RAW_DECL_GETS and redefition of gets(3)
in lib/stdio.h(.in) caused by 'a split double-inclusion guard' and
a seemingly multiple '#include_next <stdio.h>' reference. Quatch.
1 ##
2 ## ruby.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
24 # package versions
25 %define V_dist 1.9.3-p194
26 %define V_subdir 1.9.3-p194
27 %define V_opkg 1.9.3p194
29 # package information
30 Name: ruby
31 Summary: The Ruby Scripting Language
32 URL: http://www.ruby-lang.org/
33 Vendor: Yukihiro 'Matz' Matsumoto
34 Packager: OpenPKG Foundation e.V.
35 Distribution: OpenPKG Community
36 Class: BASE
37 Group: Language
38 License: GPL
39 Version: %{V_opkg}
40 Release: 20120800
42 # list of sources
43 Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{V_dist}.tar.gz
45 # build information
46 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc
47 PreReq: OpenPKG, openpkg >= 20100101
48 BuildPreReq: ncurses, openssl, readline, zlib
49 PreReq: ncurses, openssl, readline, zlib
51 %description
52 Ruby is an interpreted scripting language for quick and easy
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,
55 straight forward, extensible, and portable.
57 %track
58 prog ruby = {
59 version = %{V_dist}
60 url = ftp://ftp.ruby-lang.org/pub/ruby/
61 regex = ruby-(__VER__)\.tar\.gz
62 }
64 %prep
65 %setup -q -n ruby-%{V_subdir}
67 %build
68 CC="%{l_cc}" \
69 CFLAGS="%{l_cflags -O} %{l_cppflags}" \
70 GREP="grep" \
71 ./configure \
72 --prefix=%{l_prefix} \
73 --mandir=%{l_prefix}/man \
74 --with-ldflags="%{l_ldflags}" \
75 --disable-shared
76 %{l_make} %{l_mflags -O}
78 %install
79 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
80 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
81 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
82 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/IRB/*MagicFile*
83 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/Set/dig*
84 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
86 %files -f files
88 %clean