ruby/ruby.spec

Wed, 29 Aug 2012 18:42:28 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 29 Aug 2012 18:42:28 +0200
changeset 642
f954b9674ace
child 643
0bf572151f0d
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

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@642 25 %define V_dist 1.9.3-p125
michael@642 26 %define V_subdir 1.9.3-p125
michael@642 27 %define V_opkg 1.9.3p125
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@642 40 Release: 20120414
michael@642 41
michael@642 42 # list of sources
michael@642 43 Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{V_dist}.tar.gz
michael@642 44
michael@642 45 # build information
michael@642 46 BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc
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@642 53 object-oriented programming. It has many features to process text
michael@642 54 files and to do system management tasks (as in Perl). It is simple,
michael@642 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@642 66
michael@642 67 %build
michael@642 68 CC="%{l_cc}" \
michael@642 69 CFLAGS="%{l_cflags -O} %{l_cppflags}" \
michael@642 70 GREP="grep" \
michael@642 71 ./configure \
michael@642 72 --prefix=%{l_prefix} \
michael@642 73 --mandir=%{l_prefix}/man \
michael@642 74 --with-ldflags="%{l_ldflags}" \
michael@642 75 --disable-shared
michael@642 76 %{l_make} %{l_mflags}
michael@642 77
michael@642 78 %install
michael@642 79 %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}
michael@642 80 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
michael@642 81 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
michael@642 82 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/IRB/*MagicFile*
michael@642 83 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/Set/dig*
michael@642 84 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@642 85
michael@642 86 %files -f files
michael@642 87
michael@642 88 %clean
michael@642 89

mercurial