OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: r...@openpkg.org Module: openpkg-src Date: 07-Mar-2009 23:30:23 Branch: HEAD Handle: 2009030722302300 Added files: openpkg-src/ruby18 ruby18.patch ruby18.spec Log: new package: ruby18 1.8.7p72 (The Ruby Scripting Language) Summary: Revision Changes Path 1.1 +24 -0 openpkg-src/ruby18/ruby18.patch 1.1 +95 -0 openpkg-src/ruby18/ruby18.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/ruby18/ruby18.patch ============================================================================ $ cvs diff -u -r0 -r1.1 ruby18.patch --- /dev/null 2009-03-07 23:30:21 +0100 +++ ruby18.patch 2009-03-07 23:30:23 +0100 @@ -0,0 +1,24 @@ +Index: configure +--- configure.orig 2007-03-12 20:19:03 +0100 ++++ configure 2007-03-13 08:08:33 +0100 +@@ -15935,7 +15935,7 @@ + rb_cv_dlopen=yes ;; + esix*|uxpds*) : ${LDSHARED="ld -G"} + rb_cv_dlopen=yes ;; +- osf*) : ${LDSHARED="ld -shared -expect_unresolved \"*\""} ++ osf*) : ${LDSHARED="ld -shared -expect_unresolved \"*\" -oldstyle_liblookup"} + rb_cv_dlopen=yes ;; + bsdi3*) case "$CC" in + *shlicc*) : ${LDSHARED="$CC -r"} +Index: ext/dbm/extconf.rb +--- ext/dbm/extconf.rb.orig 2007-02-13 00:01:19 +0100 ++++ ext/dbm/extconf.rb 2007-03-13 08:11:50 +0100 +@@ -5,7 +5,7 @@ + if dblib = with_config("dbm-type", nil) + dblib = dblib.split(/[ ,]+/) + else +- dblib = %w(db db2 db1 dbm gdbm gdbm_compat qdbm) ++ dblib = %w(dbm db2 db1 db gdbm gdbm_compat qdbm) + end + + headers = { @@ . patch -p0 <<'@@ .' Index: openpkg-src/ruby18/ruby18.spec ============================================================================ $ cvs diff -u -r0 -r1.1 ruby18.spec --- /dev/null 2009-03-07 23:30:21 +0100 +++ ruby18.spec 2009-03-07 23:30:23 +0100 @@ -0,0 +1,95 @@ +## +## ruby18.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package versions +%define V_dst 1.8.7-p72 +%define V_opkg 1.8.7p72 + +# package information +Name: ruby18 +Summary: The Ruby Scripting Language +URL: http://www.ruby-lang.org/ +Vendor: Yukihiro 'Matz' Matsumoto +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: BASE +Group: Language +License: GPL +Version: %{V_opkg} +Release: 20090307 + +# list of sources +Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{V_dst}.tar.gz +Patch0: ruby18.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20040130, make, gcc +PreReq: OpenPKG, openpkg >= 20040130 +BuildPreReq: ncurses, openssl, readline, zlib +PreReq: ncurses, openssl, readline, zlib +AutoReq: no +AutoReqProv: no + +%description + Ruby is an interpreted scripting language for quick and easy + object-oriented programming. It has many features to process text + files and to do system management tasks (as in Perl). It is simple, + straight-forward, extensible, and portable. + +%track + prog ruby18 = { + version = %{V_dst} + url = ftp://ftp.ruby-lang.org/pub/ruby/ + regex = ruby-(1\.8\.\d+(?:-\p\d+))\.tar\.gz + } + +%prep + %setup -q -n ruby-%{V_dst} + %patch -p0 + +%build + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O} %{l_cppflags}" \ + GREP="grep" \ + ./configure \ + --prefix=%{l_prefix} \ + --mandir=%{l_prefix}/man \ + --with-ldflags="%{l_ldflags}" \ + --program-suffix=18 \ + --disable-shared + %{l_make} %{l_mflags} + +%install + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix} + %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org