%define dotversion %(echo %{version} | sed 's/-/./g') %define majorminor %(echo %{version} | cut -d. -f 1-2) %define apiver %(echo %{version} | cut -d. -f 1-2).0 %define patchl %(echo %{version} | cut -dp -f 2) %define majver %(echo %{version} | cut -d_ -f 1) Name: ruby Epoch: 1 Version: 2.0.0_p353 Release: 1mamba Summary: An interpreted scripting language for quick and easy object-oriented programming Group: Applications/Development Vendor: openmamba Distribution: openmamba Packager: Davide Madrisan URL: http://www.ruby-lang.org Source0: ftp://ftp.ruby-lang.org/pub/ruby/%{majorminor}/ruby-%{majver}-p%{patchl}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libdb47-devel BuildRequires: libgdbm-devel BuildRequires: libncurses-devel BuildRequires: libopenssl-devel BuildRequires: libreadline-devel BuildRequires: libtermcap-devel BuildRequires: libtk-devel BuildRequires: libX11-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: groff BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks. It is simple, straight-forward, extensible, and portable. %package devel Summary: Development files for the powerful language Ruby Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks. It is simple, straight-forward, extensible, and portable. This package contains Ruby's devel files. %prep %setup -q -n ruby-%{majver}%{?patchl:-p%patchl} %build CFLAGS=`echo %{optflags} | sed 's/-fomit-frame-pointer //'` ##***************************************************************************** ##** ##** PTHREAD SUPPORT MODE ERROR: ##** ##** Ruby is not compiled with --enable-pthread, but your Tcl/Tk ##** library seems to be compiled with pthread support. This ##** combination may cause frequent hang or segmentation fault ##** errors when Ruby/Tk is working. We recommend that you NEVER ##** create the library with such a combination of pthread support. ##** ##** Please recompile Ruby with the "--enable-pthread" configure option ##** or recompile Tcl/Tk with the "--disable-threads" configure option. ##** ##***************************************************************************** %configure --enable-shared --enable-pthread %make make test %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall #install-doc # install file with rpm macros install -d %{buildroot}%{_sysconfdir}/rpm echo "\ %%__ruby %{_bindir}/ruby %%ruby_version %{version} %%ruby_sitelib %%(%{__ruby} -rrbconfig -e 'puts RbConfig::CONFIG[\"sitelibdir\"]') %%ruby_sitearch %%(%{__ruby} -rrbconfig -e 'puts RbConfig::CONFIG[\"sitearchdir\"]')" \ > %{buildroot}%{_sysconfdir}/rpm/macros.ruby %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/erb %{_bindir}/gem %{_bindir}/irb %{_bindir}/rake %{_bindir}/rdoc %{_bindir}/ri %{_bindir}/ruby %{_bindir}/testrb %{_libdir}/libruby.so.* %{_libdir}/ruby/gems/%{apiver}/gems %{_libdir}/ruby/gems/%{apiver}/specifications %dir %{_libdir}/ruby/%{apiver} %dir %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux* %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/digest %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/dl %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/enc %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/io %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/json %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/mathn %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/racc %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/*.rb %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/*.so %{_libdir}/ruby/%{apiver}/*.rb %{_libdir}/ruby/%{apiver}/bigdecimal %{_libdir}/ruby/%{apiver}/cgi %{_libdir}/ruby/%{apiver}/date %{_libdir}/ruby/%{apiver}/digest %{_libdir}/ruby/%{apiver}/dl %{_libdir}/ruby/%{apiver}/drb %{_libdir}/ruby/%{apiver}/fiddle %{_libdir}/ruby/%{apiver}/io %{_libdir}/ruby/%{apiver}/irb %{_libdir}/ruby/%{apiver}/json %{_libdir}/ruby/%{apiver}/matrix %{_libdir}/ruby/%{apiver}/minitest %{_libdir}/ruby/%{apiver}/net %{_libdir}/ruby/%{apiver}/openssl %{_libdir}/ruby/%{apiver}/optparse %{_libdir}/ruby/%{apiver}/psych %{_libdir}/ruby/%{apiver}/racc %{_libdir}/ruby/%{apiver}/rake %{_libdir}/ruby/%{apiver}/rbconfig %{_libdir}/ruby/%{apiver}/rdoc %{_libdir}/ruby/%{apiver}/rexml %{_libdir}/ruby/%{apiver}/rinda %{_libdir}/ruby/%{apiver}/ripper %{_libdir}/ruby/%{apiver}/rss %{_libdir}/ruby/%{apiver}/rubygems %{_libdir}/ruby/%{apiver}/shell %{_libdir}/ruby/2.0.0/syslog/logger.rb #%{_libdir}/ruby/%{apiver}/syck #%{_libdir}/ruby/%{apiver}/specifications %{_libdir}/ruby/%{apiver}/test %{_libdir}/ruby/%{apiver}/tk %{_libdir}/ruby/%{apiver}/tkextlib %{_libdir}/ruby/%{apiver}/uri %{_libdir}/ruby/%{apiver}/webrick #%{_libdir}/ruby/%{apiver}/wsdl %{_libdir}/ruby/%{apiver}/xmlrpc #%{_libdir}/ruby/%{apiver}/xsd %{_libdir}/ruby/%{apiver}/yaml %dir %{_datadir}/ri/%{apiver} %dir %{_datadir}/ri/%{apiver}/system %{_datadir}/ri/%{apiver}/system/* %{_mandir}/man1/ruby.1* %{_mandir}/man1/erb.1* %{_mandir}/man1/irb.1* %{_mandir}/man1/rake.1* %{_mandir}/man1/ri.1* %doc COPYING %files devel %defattr(-, root, root) %{_sysconfdir}/rpm/macros.ruby %dir %{_includedir}/ruby-%{apiver} %dir %{_includedir}/ruby-%{apiver}/ruby %{_includedir}/ruby-%{apiver}/*-linux*/ruby/config.h %{_includedir}/ruby-%{apiver}/ruby.h %{_includedir}/ruby-%{apiver}/ruby/*.h %dir %{_includedir}/ruby-%{apiver}/ruby/backward %{_includedir}/ruby-%{apiver}/ruby/backward/*.h #%ifarch arm #%{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux-eabi/*.h #%else #%{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux/*.h #%endif %{_libdir}/libruby-static.a %{_libdir}/libruby.so %{_libdir}/pkgconfig/ruby-*.pc %dir %{_datadir}/doc/ruby/ %{_datadir}/doc/ruby/* %doc ChangeLog README README.EXT README.EXT.ja README.ja %changelog * Tue Dec 03 2013 Automatic Build System 2.0.0_p353-1mamba - automatic version update by autodist * Fri Aug 30 2013 Silvan Calarco 2.0.0_p247-2mamba - fix rpm macros file by using RbConfig:: instead of deprecated Config:: * Sat Jun 29 2013 Automatic Build System 2.0.0_p247-1mamba - automatic version update by autodist * Mon Jun 03 2013 Automatic Build System 2.0.0_p195-1mamba - automatic version update by autodist * Tue Feb 26 2013 Automatic Build System 2.0.0_p0-1mamba - update to 2.0.0_p0 * Sun Feb 24 2013 Automatic Build System 1.9.3_p392-1mamba - update to 1.9.3_p392 * Wed Feb 20 2013 Automatic Build System 1.9.3.p385-1mamba - automatic version update by autodist * Fri Jan 25 2013 Automatic Build System 1.9.3.p374-2mamba - automatic version update by autodist * Fri Jan 18 2013 Automatic Build System 1.9.3.p374-1mamba - automatic version update by autodist * Sat Nov 10 2012 Automatic Build System 1.9.3.p327-3mamba - automatic version update by autodist * Sat Nov 10 2012 Automatic Build System 1.9.3.p327-2mamba - automatic version update by autodist * Sat Nov 10 2012 Automatic Build System 1.9.3.p327-1mamba - automatic version update by autodist * Fri Oct 19 2012 Automatic Build System 1.9.3.p286-1mamba - update to 1.9.3.p286 * Wed Aug 15 2012 Automatic Build System 1.9.3.p194-1mamba - update to 1.9.3.p194 * Mon Nov 14 2011 Automatic Build System 1.9.3.p0-1mamba - automatic version update by autodist * Sat Jan 08 2011 Silvan Calarco 1.8.7.p330-1mamba - update to 1.8.7.p330 * Tue Sep 07 2010 Silvan Calarco 1.8.7-p302-1mamba - update to 1.8.7-p302 - fixed specfile for correct version and bumped up epoch * Mon Jun 21 2010 Automatic Build System 1.9.1.p378-1mamba - automatic update by autodist * Fri Feb 05 2010 Davide Madrisan 1.9.1.p376-2mamba - provide an rpm macro file: %{_sysconfdir}/rpm/macros.ruby * Tue Dec 08 2009 Automatic Build System 1.9.1.p376-1mamba - automatic update by autodist * Thu Jul 23 2009 Automatic Build System 1.9.1.p243-1mamba - automatic update by autodist * Tue May 12 2009 Automatic Build System 1.9.1.p129-1mamba - automatic update to 1.9.1.p129 by autodist * Sat Jan 31 2009 Silvan Calarco 1.9.1-1mamba - automatic update to 1.9.1 by autodist * Wed Aug 13 2008 gil 1.8.7-p72-1mamba - update to 1.8.7-p72 - edit configure option added enable-pthread (see specfile) * Fri Jul 18 2008 gil 1.8.7p22-1mamba - update to 1.8.7p22 * Tue Jun 17 2008 Silvan Calarco 1.8.7p17-1mamba - update to 1.8.7p17: add patchlevel to package version * Sat Jun 14 2008 Aleph0 1.8.7-2mamba - update to patch level 17 * Wed Jun 04 2008 Silvan Calarco 1.8.7-1mamba - update to 1.8.7 * Fri Mar 07 2008 Aleph0 1.8.6-5mamba - update to patch level 114 * Mon Oct 08 2007 Aleph0 1.8.6-4mamba - update to patch level 111 * Wed Oct 03 2007 Aleph0 1.8.6-3mamba - update to patch level 110 * Mon Jun 11 2007 Aleph0 1.8.6-2mamba - update to patch level 36 * Thu Apr 05 2007 Aleph0 1.8.6-1mamba - update to version 1.8.6 by autospec * Tue Jan 09 2007 Aleph0 1.8.5-1qilnx - update to version 1.8.5-p12 by autospec - removed fix against CVE-2006-3694 (merged upstream) - also fixes CVE-2006-5467, and CVE-2006-6303 * Fri Jul 28 2006 Davide Madrisan 1.8.4-2qilnx - security update: CVE-2006-3694, bugzilla 208 * Fri May 19 2006 Davide Madrisan 1.8.4-1qilnx - package created by autospec