Sha256: daefcab82bdfb189504346cd2584bf5c6a415f8a6f87b4fbb7b25f2cbcb240bd

Contents?: true

Size: 1.32 KB

Versions: 17

Compression:

Stored size: 1.32 KB

Contents

Summary: Ruby for Mu(by)
BuildArch: x86_64
Name: muby
Version: 2.5.5
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

17 entries across 17 versions & 1 rubygems

Version Path
cloud-mu-3.4.0 extras/ruby_rpm/muby.spec
cloud-mu-3.3.2 extras/ruby_rpm/muby.spec
cloud-mu-3.3.1 extras/ruby_rpm/muby.spec
cloud-mu-3.3.0 extras/ruby_rpm/muby.spec
cloud-mu-3.2.0 extras/ruby_rpm/muby.spec
cloud-mu-3.1.6 extras/ruby_rpm/muby.spec
cloud-mu-3.1.5 extras/ruby_rpm/muby.spec
cloud-mu-3.1.4 extras/ruby_rpm/muby.spec
cloud-mu-3.1.3 extras/ruby_rpm/muby.spec
cloud-mu-3.1.2 extras/ruby_rpm/muby.spec
cloud-mu-3.1.2beta2 extras/ruby_rpm/muby.spec
cloud-mu-3.1.1 extras/ruby_rpm/muby.spec
cloud-mu-3.1.0 extras/ruby_rpm/muby.spec
cloud-mu-3.0.2 extras/ruby_rpm/muby.spec
cloud-mu-3.0.1 extras/ruby_rpm/muby.spec
cloud-mu-3.0.0 extras/ruby_rpm/muby.spec
cloud-mu-3.0.0beta extras/ruby_rpm/muby.spec