%define majorminor %(echo %{version} | cut -d. -f 1-2) %define apiver %(echo %{version} | cut -d. -f 1-2).0 Name: ruby Epoch: 1 Version: 3.2.0 Release: 1mamba Summary: An interpreted scripting language for quick and easy object-oriented programming Group: Applications/Development Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.ruby-lang.org Source0: https://cache.ruby-lang.org/pub/ruby/%{majorminor}/ruby-%{version}.tar.xz Patch: ruby-2.3.4-api_break_rb_thread_fd_close.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libffi-devel BuildRequires: libgcc BuildRequires: libgmp-devel BuildRequires: libncurses-devel BuildRequires: libopenssl-devel BuildRequires: libreadline-devel BuildRequires: libyaml-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: groff Provides: ruby-bundler Obsoletes: ruby-bundler < 1:3.0.1 Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %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 -n lib%{name} Summary: Ruby shared libraries Group: System/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name} 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 library files. %package -n lib%{name}-devel Summary: Development files for the powerful language Ruby Group: Development/Libraries Provides: %{name}-devel Obsoletes: %{name}-devel < 1:3.0.1 Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-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. %debug_package %prep %setup -q #%patch0 -p1 %build CFLAGS=`echo %{optflags} | sed 's/-fomit-frame-pointer //'` %configure \ --disable-rpath \ --enable-shared # --with-ruby-version='' %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 ln -s ruby-%{apiver}.pc %{buildroot}%{_libdir}/pkgconfig/ruby.pc sed -i "s|/usr/local/bin/ruby|%{_bindir}/ruby|" %{buildroot}%{_libdir}/ruby/gems/*/gems/racc-*/bin/* # remove unpackaged files rm -fr %{buildroot}%{_docdir} %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/bundle %{_bindir}/bundler %{_bindir}/erb %{_bindir}/gem %{_bindir}/irb %{_bindir}/racc %{_bindir}/rake %{_bindir}/rbs %{_bindir}/rdbg %{_bindir}/rdoc %{_bindir}/ri %{_bindir}/ruby %{_bindir}/typeprof #%{_mandir}/man5/gemfile.5* %dir %{_datadir}/ri/%{apiver} %dir %{_datadir}/ri/%{apiver}/system %{_datadir}/ri/%{apiver}/system/* %{_mandir}/man1/*.1* %files -n lib%{name} %defattr(-, root, root) %{_libdir}/libruby.so.* %dir %{_libdir}/ruby/gems/%{apiver}/cache %{_libdir}/ruby/gems/%{apiver}/cache/* %dir %{_libdir}/ruby/gems/%{apiver}/extensions #%{_libdir}/ruby/gems/%{apiver}/extensions/* %dir %{_libdir}/ruby/gems/%{apiver}/gems %{_libdir}/ruby/gems/%{apiver}/gems/* %dir %{_libdir}/ruby/gems/%{apiver}/specifications %{_libdir}/ruby/gems/%{apiver}/specifications/* %dir %{_libdir}/ruby/%{apiver} %dir %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux* %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/cgi %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/digest %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/enc %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/erb %{_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*/rbconfig %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/*.rb %{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/*.so #%{_libdir}/ruby/%{apiver}/%{_target_cpu}-linux*/bigdecimal/util.so %{_libdir}/ruby/%{apiver}/*.rb %{_libdir}/ruby/%{apiver}/bigdecimal %dir %{_libdir}/ruby/*/bundler %{_libdir}/ruby/*/bundler/* %{_libdir}/ruby/%{apiver}/cgi %dir %{_libdir}/ruby/*/csv %{_libdir}/ruby/*/csv/* %{_libdir}/ruby/%{apiver}/benchmark %{_libdir}/ruby/%{apiver}/did_you_mean %{_libdir}/ruby/%{apiver}/digest %{_libdir}/ruby/%{apiver}/drb %{_libdir}/ruby/%{apiver}/erb %{_libdir}/ruby/%{apiver}/error_highlight #%{_libdir}/ruby/%{apiver}/e2mmap/version.rb #%{_libdir}/ruby/%{apiver}/fileutils/version.rb %{_libdir}/ruby/%{apiver}/fiddle %{_libdir}/ruby/%{apiver}/forwardable %{_libdir}/ruby/%{apiver}/io %{_libdir}/ruby/%{apiver}/irb %{_libdir}/ruby/%{apiver}/json %{_libdir}/ruby/%{apiver}/logger #%{_libdir}/ruby/%{apiver}/matrix %{_libdir}/ruby/%{apiver}/mjit %{_libdir}/ruby/%{apiver}/net %{_libdir}/ruby/%{apiver}/objspace %{_libdir}/ruby/%{apiver}/open3 %{_libdir}/ruby/%{apiver}/openssl %{_libdir}/ruby/%{apiver}/optparse %{_libdir}/ruby/%{apiver}/psych %{_libdir}/ruby/%{apiver}/racc %{_libdir}/ruby/%{apiver}/random #%{_libdir}/ruby/%{apiver}/rbconfig %{_libdir}/ruby/%{apiver}/rdoc %{_libdir}/ruby/%{apiver}/reline #%{_libdir}/ruby/%{apiver}/rexml %{_libdir}/ruby/%{apiver}/rinda %{_libdir}/ruby/%{apiver}/ripper #%{_libdir}/ruby/%{apiver}/rss %{_libdir}/ruby/%{apiver}/rubygems %{_libdir}/ruby/%{apiver}/ruby_vm %{_libdir}/ruby/%{apiver}/set %{_libdir}/ruby/%{apiver}/syntax_suggest %{_libdir}/ruby/%{apiver}/syslog #%{_libdir}/ruby/%{apiver}/tracer/version.rb %{_libdir}/ruby/%{apiver}/unicode_normalize %{_libdir}/ruby/%{apiver}/uri #%{_libdir}/ruby/%{apiver}/webrick #%{_libdir}/ruby/%{apiver}/xmlrpc %{_libdir}/ruby/%{apiver}/yaml %doc COPYING %files -n lib%{name}-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/*.hpp %dir %{_includedir}/ruby-%{apiver}/ruby/backward/2 %{_includedir}/ruby-%{apiver}/ruby/backward/2/* %dir %{_includedir}/ruby-%{apiver}/ruby/fiber %{_includedir}/ruby-%{apiver}/ruby/fiber/*.h %dir %{_includedir}/ruby-%{apiver}/ruby/io %{_includedir}/ruby-%{apiver}/ruby/io/* %dir %{_includedir}/ruby-%{apiver}/ruby/internal %{_includedir}/ruby-%{apiver}/ruby/internal/* %{_includedir}/ruby-%{apiver}/%{_target_cpu}-linux*/rb_mjit_min_header-*.h #%{_libdir}/libruby-static.a %{_libdir}/libruby.so %{_libdir}/pkgconfig/ruby-*.pc %{_libdir}/pkgconfig/ruby.pc #%doc ChangeLog README.* %changelog * Tue Dec 27 2022 Automatic Build System 3.2.0-1mamba - automatic version update by autodist * Sun Nov 27 2022 Automatic Build System 3.1.3-1mamba - automatic version update by autodist * Sun Nov 20 2022 Silvan Calarco 3.0.4-1mamba - update to 3.0.4 * Sat Nov 27 2021 Automatic Build System 3.0.3-1mamba - automatic version update by autodist * Thu Jul 08 2021 Automatic Build System 3.0.2-1mamba - automatic version update by autodist * Sat Apr 10 2021 Automatic Build System 3.0.1-1mamba - automatic version update by autodist * Fri Jan 15 2021 Automatic Build System 3.0.0-1mamba - automatic version update by autodist * Fri Oct 02 2020 Automatic Build System 2.7.2-1mamba - automatic version update by autodist * Thu Jul 02 2020 Silvan Calarco 2.7.1-3mamba - fix /usr/local/bin/ruby shebangs in gems * Wed Jul 01 2020 Silvan Calarco 2.7.1-2mamba - provide ruby.pc pkgconfig symlink; move lib files into libruby subpackage * Wed Apr 01 2020 Automatic Build System 2.7.1-1mamba - automatic version update by autodist * Sat Jan 18 2020 Automatic Build System 2.7.0-1mamba - automatic version update by autodist * Wed Oct 02 2019 Automatic Build System 2.6.5-1mamba - automatic version update by autodist * Fri Aug 30 2019 Automatic Build System 2.6.4-1mamba - automatic version update by autodist * Wed Apr 17 2019 Automatic Build System 2.6.3-1mamba - automatic version update by autodist * Wed Mar 13 2019 Automatic Build System 2.6.2-1mamba - automatic version update by autodist * Sat Feb 02 2019 Automatic Build System 2.6.1-1mamba - automatic version update by autodist * Fri Dec 28 2018 Automatic Build System 2.6.0-1mamba - automatic version update by autodist * Tue Oct 23 2018 Automatic Build System 2.5.3-1mamba - automatic version update by autodist * Thu Mar 29 2018 Automatic Build System 2.5.1-1mamba - automatic version update by autodist * Mon Feb 12 2018 Automatic Build System 2.5.0-1mamba - automatic version update by autodist * Tue Oct 24 2017 Automatic Build System 2.4.2-1mamba - automatic version update by autodist * Sun Jun 18 2017 Davide Madrisan 2.3.4-1mamba - update to 2.3.4 * Mon Feb 06 2017 Automatic Build System 2.4.0-1mamba - automatic version update by autodist * Mon Nov 21 2016 Automatic Build System 2.3.3-1mamba - automatic version update by autodist * Tue Nov 15 2016 Automatic Build System 2.3.2-1mamba - automatic version update by autodist * Wed Apr 27 2016 Automatic Build System 2.3.1-1mamba - automatic version update by autodist * Sun Dec 27 2015 Automatic Build System 2.3.0-1mamba - automatic version update by autodist * Wed Dec 16 2015 Automatic Build System 2.2.4-1mamba - automatic version update by autodist * Wed Aug 19 2015 Automatic Build System 2.2.3-1mamba - automatic version update by autodist * Thu Apr 16 2015 Automatic Build System 2.2.2-1mamba - automatic update by autodist * Tue Mar 17 2015 Automatic Build System 2.2.1-1mamba - automatic update by autodist * Sun Dec 28 2014 Automatic Build System 2.2.0-1mamba - automatic version update by autodist * Fri Nov 14 2014 Automatic Build System 2.1.5-2mamba - automatic version update by autodist * Fri Nov 14 2014 Automatic Build System 2.1.5-1mamba - automatic version update by autodist * Thu Oct 30 2014 Automatic Build System 2.1.4-1mamba - automatic version update by autodist * Sun Sep 21 2014 Automatic Build System 2.1.3-1mamba - automatic version update by autodist * Thu Jul 10 2014 Silvan Calarco 2.1.2-1mamba - update to 2.1.2 * Wed Jan 15 2014 Silvan Calarco 2.1.0-1mamba - update to 2.1.0 * 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