ruby/ruby.spec

Thu, 28 Mar 2013 20:11:20 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 28 Mar 2013 20:11:20 +0100
changeset 761
3d752068b7fb
parent 739
4b10bb3b97b3
permissions
-rw-r--r--

Update to major new vendor software version and adjust accordingly.

michael@642 1 ##
michael@642 2 ## ruby.spec -- OpenPKG RPM Package Specification
michael@642 3 ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@642 4 ##
michael@642 5 ## Permission to use, copy, modify, and distribute this software for
michael@642 6 ## any purpose with or without fee is hereby granted, provided that
michael@642 7 ## the above copyright notice and this permission notice appear in all
michael@642 8 ## copies.
michael@642 9 ##
michael@642 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@642 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@642 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@642 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@642 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@642 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@642 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@642 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@642 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@642 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@642 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@642 21 ## SUCH DAMAGE.
michael@642 22 ##
michael@642 23
michael@642 24 # package versions
michael@761 25 %define V_dist 2.0.0-p0
michael@761 26 %define V_subdir 2.0.0-p0
michael@761 27 %define V_opkg 2.0.0p0
michael@642 28
michael@642 29 # package information
michael@642 30 Name: ruby
michael@642 31 Summary: The Ruby Scripting Language
michael@642 32 URL: http://www.ruby-lang.org/
michael@642 33 Vendor: Yukihiro 'Matz' Matsumoto
michael@642 34 Packager: OpenPKG Foundation e.V.
michael@642 35 Distribution: OpenPKG Community
michael@642 36 Class: BASE
michael@642 37 Group: Language
michael@642 38 License: GPL
michael@642 39 Version: %{V_opkg}
michael@643 40 Release: 20120800
michael@642 41
michael@642 42 # list of sources
michael@739 43 Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{V_dist}.tar.bz2
michael@642 44
michael@642 45 # build information
michael@739 46 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, yaml
michael@642 47 PreReq: OpenPKG, openpkg >= 20100101
michael@642 48 BuildPreReq: ncurses, openssl, readline, zlib
michael@642 49 PreReq: ncurses, openssl, readline, zlib
michael@642 50
michael@642 51 %description
michael@642 52 Ruby is an interpreted scripting language for quick and easy
michael@643 53 object oriented programming. It has many features to process text
michael@643 54 files and to do system management tasks (as in Perl.) It is simple,
michael@643 55 straight forward, extensible, and portable.
michael@642 56
michael@642 57 %track
michael@642 58 prog ruby = {
michael@642 59 version = %{V_dist}
michael@642 60 url = ftp://ftp.ruby-lang.org/pub/ruby/
michael@642 61 regex = ruby-(__VER__)\.tar\.gz
michael@642 62 }
michael@642 63
michael@642 64 %prep
michael@642 65 %setup -q -n ruby-%{V_subdir}
michael@761 66 l_stackprot=yes
michael@761 67 case "%{l_platform -t}" in
michael@761 68 *-sunos* ) l_stackprot=broken ;;
michael@761 69 esac
michael@761 70 %{l_shtool} subst \
michael@761 71 -e 's;#!\ /bin/sh;#! %{l_bash};' \
michael@761 72 -e 's;stack_protector=yes;stack_protector=$l_stackprot;g' \
michael@761 73 configure
michael@642 74
michael@642 75 %build
michael@642 76 CC="%{l_cc}" \
michael@642 77 CFLAGS="%{l_cflags -O} %{l_cppflags}" \
michael@642 78 GREP="grep" \
michael@642 79 ./configure \
michael@642 80 --prefix=%{l_prefix} \
michael@642 81 --mandir=%{l_prefix}/man \
michael@761 82 --disable-dtrace \
michael@642 83 --disable-shared
michael@761 84 %{l_make} %{l_mflags -O} V=1
michael@642 85
michael@642 86 %install
michael@642 87 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
michael@642 88 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
michael@642 89 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@642 90 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/IRB/*MagicFile*
michael@642 91 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/Set/dig*
michael@642 92 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@642 93
michael@642 94 %files -f files
michael@642 95
michael@642 96 %clean
michael@642 97

mercurial