michael@642: ## michael@642: ## ruby.spec -- OpenPKG RPM Package Specification michael@642: ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. michael@642: ## michael@642: ## Permission to use, copy, modify, and distribute this software for michael@642: ## any purpose with or without fee is hereby granted, provided that michael@642: ## the above copyright notice and this permission notice appear in all michael@642: ## copies. michael@642: ## michael@642: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@642: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@642: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@642: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@642: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@642: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@642: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@642: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@642: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@642: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@642: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@642: ## SUCH DAMAGE. michael@642: ## michael@642: michael@642: # package versions michael@761: %define V_dist 2.0.0-p0 michael@761: %define V_subdir 2.0.0-p0 michael@761: %define V_opkg 2.0.0p0 michael@642: michael@642: # package information michael@642: Name: ruby michael@642: Summary: The Ruby Scripting Language michael@642: URL: http://www.ruby-lang.org/ michael@642: Vendor: Yukihiro 'Matz' Matsumoto michael@642: Packager: OpenPKG Foundation e.V. michael@642: Distribution: OpenPKG Community michael@642: Class: BASE michael@642: Group: Language michael@642: License: GPL michael@642: Version: %{V_opkg} michael@643: Release: 20120800 michael@642: michael@642: # list of sources michael@739: Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{V_dist}.tar.bz2 michael@642: michael@642: # build information michael@739: BuildPreReq: OpenPKG, openpkg >= 20100101, make, gcc, yaml michael@642: PreReq: OpenPKG, openpkg >= 20100101 michael@642: BuildPreReq: ncurses, openssl, readline, zlib michael@642: PreReq: ncurses, openssl, readline, zlib michael@642: michael@642: %description michael@642: Ruby is an interpreted scripting language for quick and easy michael@643: object oriented programming. It has many features to process text michael@643: files and to do system management tasks (as in Perl.) It is simple, michael@643: straight forward, extensible, and portable. michael@642: michael@642: %track michael@642: prog ruby = { michael@642: version = %{V_dist} michael@642: url = ftp://ftp.ruby-lang.org/pub/ruby/ michael@642: regex = ruby-(__VER__)\.tar\.gz michael@642: } michael@642: michael@642: %prep michael@642: %setup -q -n ruby-%{V_subdir} michael@761: l_stackprot=yes michael@761: case "%{l_platform -t}" in michael@761: *-sunos* ) l_stackprot=broken ;; michael@761: esac michael@761: %{l_shtool} subst \ michael@761: -e 's;#!\ /bin/sh;#! %{l_bash};' \ michael@761: -e 's;stack_protector=yes;stack_protector=$l_stackprot;g' \ michael@761: configure michael@642: michael@642: %build michael@642: CC="%{l_cc}" \ michael@642: CFLAGS="%{l_cflags -O} %{l_cppflags}" \ michael@642: GREP="grep" \ michael@642: ./configure \ michael@642: --prefix=%{l_prefix} \ michael@642: --mandir=%{l_prefix}/man \ michael@761: --disable-dtrace \ michael@642: --disable-shared michael@761: %{l_make} %{l_mflags -O} V=1 michael@642: michael@642: %install michael@642: %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix} michael@642: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@642: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@642: rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/IRB/*MagicFile* michael@642: rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/ri/*/system/Set/dig* michael@642: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@642: michael@642: %files -f files michael@642: michael@642: %clean michael@642: