Last active
August 29, 2015 14:08
-
-
Save scuderiaf1/b0bbedac6918124eebe4 to your computer and use it in GitHub Desktop.
ruby-2.1.4-stable-railexpress mock spec file for ruby rpm 2.1.4 with "skaes rails 2.1.3 express patch" filename should be /home/builder/rpmbuild/SPECS/ruby214.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%define rubyver 2.1.4 | |
Name: ruby | |
Version: %{rubyver} | |
Release: 2%{?dist} | |
License: Ruby License/GPL - see COPYING | |
URL: http://www.ruby-lang.org/ | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | |
BuildRequires: gcc | |
BuildRequires: make | |
BuildRequires: byacc | |
BuildRequires: gdbm gdbm-devel | |
BuildRequires: glibc-devel | |
BuildRequires: db4-devel | |
BuildRequires: libyaml-devel | |
BuildRequires: ncurses ncurses-devel | |
BuildRequires: openssl-devel | |
BuildRequires: patch | |
BuildRequires: readline readline-devel | |
BuildRequires: tcl-devel | |
BuildRequires: unzip | |
BuildRequires: autoconf | |
Source0: ftp://ftp.ruby-lang.org/pub/ruby/ruby-%{rubyver}.tar.gz | |
Summary: Interpreter for an object-oriented scripting language | |
Group: Development/Languages | |
Provides: ruby(abi) = 2.1 | |
Provides: ruby-irb | |
Provides: ruby-rdoc | |
Provides: ruby-libs | |
Provides: ruby-devel | |
Provides: rubygems | |
Obsoletes: ruby | |
Obsoletes: ruby-libs | |
Obsoletes: ruby-irb | |
Obsoletes: ruby-rdoc | |
Obsoletes: ruby-devel | |
Obsoletes: rubygems | |
%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 (as in Perl). It is simple, | |
straight-forward, and extensible. | |
%prep | |
%setup -n ruby-%{rubyver} | |
%build | |
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing" | |
-curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patchsets/ruby/2.1.3/railsexpress | xargs -I % curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.3/% | patch -p1 | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.3/railsexpress/01-zero-broken-tests.patch|patch -p1 | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.3/railsexpress/02-improve-gc-stats.patch|patch -p1 | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.3/railsexpress/03-display-more-detailed-stack-trace.patch|patch -p1 | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.3/railsexpress/04-show-full-backtrace-on-stack-overflow.patch|patch -p1 | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.3/railsexpress/05-funny-falcon-stc-density.patch|patch -p1 | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.3/railsexpress/06-funny-falcon-stc-pool-allocation.patch|patch -p1 | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.3/railsexpress/07-aman-opt-aset-aref-str.patch|patch -p1 | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.1.3/railsexpress/08-funny-falcon-method-cache.patch|patch -p1 | |
sh /usr/bin/autoconf -V | |
sh /usr/bin/autoconf | |
%configure \ | |
--enable-shared \ | |
--disable-rpath \ | |
--without-X11 \ | |
--without-tk \ | |
--includedir=%{_includedir}/ruby \ | |
--libdir=%{_libdir} | |
make %{?_smp_mflags} | |
%install | |
make install DESTDIR=$RPM_BUILD_ROOT | |
rm -rf $RPM_BUILD_ROOT/usr/src | |
%clean | |
rm -rf $RPM_BUILD_ROOT | |
%files | |
%defattr(-, root, root) | |
%{_bindir} | |
%{_includedir} | |
%{_datadir} | |
%{_libdir} | |
%changelog | |
* Thu Sep 2 2014 Tony Romeo - 1.9.3-p484 | |
- Update ruby patch to 1.9.3-p484 | |
- Include skaes railsexpres | |
* Thu Jan 24 2013 James B. Byrne - 1.9.3-p374 | |
- Update ruby patch to 1.9.3-p374 | |
* Wed Jan 18 2012 Mandi Walls - 1.9.3-p0 | |
- Update ruby version to 1.9.3-p0 | |
* Mon Aug 29 2011 Gregory Graf - 1.9.2-p290 | |
- Update ruby version to 1.9.2-p290 | |
* Sat Jun 25 2011 Ian Meyer - 1.9.2-p180-2 | |
- Remove non-existant --sitearchdir and --vedorarchdir from %configure | |
- Replace --sitedir --vendordir with simpler --libdir | |
- Change %{_prefix}/share to %{_datadir} | |
* Tue Mar 7 2011 Robert Duncan - 1.9.2-p180-1 | |
- Update prerequisites to include make | |
- Update ruby version to 1.9.2-p180 | |
- Install /usr/share documentation | |
- (Hopefully!?) platform agnostic | |
* Sun Jan 2 2011 Ian Meyer - 1.9.2-p136-1 | |
- Initial spec to replace system ruby with 1.9.2-p136 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment