Last active
August 29, 2015 14:05
-
-
Save scuderiaf1/b07a8f7623220ca2123e to your computer and use it in GitHub Desktop.
.spec file for build your own ruby rpm 1.9.3 p484 with skaes rails express patch
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 1.9.3 | |
%define rubyminorver p484 | |
Name: ruby | |
Version: %{rubyver}%{rubyminorver} | |
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}-%{rubyminorver}.tar.gz | |
Summary: Interpreter for an object-oriented scripting language | |
Group: Development/Languages | |
Provides: ruby(abi) = 1.9 | |
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}-%{rubyminorver} | |
%build | |
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing" | |
curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patchsets/ruby/1.9.3/p484/railsexpress | xargs -I % curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/1.9.3/p484/% | patch -p1 | |
sh /usr/bin/autoconf | |
%configure \ | |
--enable-shared \ | |
--disable-rpath \ | |
--without-X11 \ | |
--without-tk \ | |
--includedir=%{_includedir}/ruby \ | |
--libdir=%{_libdir} | |
make %{?_smp_mflags} | |
%install | |
# installing binaries ... | |
make install DESTDIR=$RPM_BUILD_ROOT | |
#we don't want to keep the src directory | |
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