Sha256: 1d1f7c1223eac816883efd1880737888d57b4a7ea8d7cef89e54e9001dd4aad4

Contents?: true

Size: 1.32 KB

Versions: 10

Compression:

Stored size: 1.32 KB

Contents

Summary: Ruby for Mu(by)
BuildArch: x86_64
Name: muby
Version: 2.5.3
Release: 1%{dist}
Group: Development/Languages
License: Ruby License/GPL - see COPYING
URL: http://www.ruby-lang.org/
Prefix: /opt/rubies
Source: https://cache.ruby-lang.org/pub/ruby/2.5/ruby-%{version}.tar.gz

BuildRequires: zlib
BuildRequires: zlib-devel
BuildRequires: openssl

%description
I was drunk when I wrote this spec file
    
%prep
rm -rf $RPM_BUILD_DIR/ruby-%{version}
rm -rf %{prefix}
test -f $RPM_SOURCE_DIR/ruby-%{version}.tar.gz || ( cd $RPM_SOURCE_DIR && curl -O https://cache.ruby-lang.org/pub/ruby/2.5/ruby-%{version}.tar.gz )
tar -xzvf $RPM_SOURCE_DIR/ruby-%{version}.tar.gz
mkdir -p $RPM_BUILD_ROOT%{prefix}
ln -s %{prefix}/ruby-%{version} $RPM_BUILD_ROOT%{prefix}/ruby-%{version}
    
%build
cd $RPM_BUILD_DIR/ruby-%{version}
./configure --prefix=%{prefix}/ruby-%{version}  --enable-load-relative --enable-shared
make

%install
cd $RPM_BUILD_DIR/ruby-%{version}
make install
mkdir -p %{prefix}
%{prefix}/ruby-%{version}/bin/gem install bundler
mkdir -p $RPM_BUILD_ROOT%{prefix}
mv %{prefix}/ruby-%{version} $RPM_BUILD_ROOT%{prefix}/
mkdir -p $RPM_BUILD_ROOT/usr/local/
ln -s %{prefix}/ruby-%{version} $RPM_BUILD_ROOT/usr/local/ruby-current

%clean
cd $RPM_BUILD_DIR/ruby-%{version}
make clean
    
%files
%{prefix}/ruby-%{version}/*
/usr/local/ruby-current

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cloud-mu-2.0.4 extras/ruby_rpm/muby.spec
cloud-mu-2.1.0beta extras/ruby_rpm/muby.spec
cloud-mu-2.0.3 extras/ruby_rpm/muby.spec
cloud-mu-2.0.2 extras/ruby_rpm/muby.spec
cloud-mu-2.0.1 extras/ruby_rpm/muby.spec
cloud-mu-2.0.0.pre.beta3 extras/ruby_rpm/muby.spec
cloud-mu-2.0.0.pre.beta2 extras/ruby_rpm/muby.spec
cloud-mu-2.0.0.pre.beta1 extras/ruby_rpm/muby.spec
cloud-mu-2.0.0.pre.alpha9 extras/ruby_rpm/muby.spec
cloud-mu-2.0.0.pre.alpha8 extras/ruby_rpm/muby.spec