File ruby-install.spec of Package ruby-install
#
# spec file for package ruby-install
#
# Copyright (c) 2026 Andreas Vögele <andreas@andreasvoegele.com>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please send bugfixes or comments to the author.
#
Name: ruby-install
Version: 0.10.2
Release: 0
Summary: Install Ruby
License: MIT
URL: https://github.com/postmodern/ruby-install
Source: https://github.com/postmodern/ruby-install/archive/v%{version}/ruby-install-%{version}.tar.gz
BuildArch: noarch
# Build:
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: sed
# Runtime:
Requires: coreutils
Requires: bash
Requires: bzip2
Requires: grep
Requires: patch
Requires: sed
Requires: sudo
Requires: tar
Requires: wget
%description
ruby-install allows you to compile and install different versions of the Ruby
programming language into arbitrary directories.
%prep
%autosetup
# Remove unnecessary executable bits.
find share -type f -executable -print0 | xargs -0r chmod a-x
# The documentation files are installed in the files section.
sed -i '/$(DOC_DIR)/d' Makefile
# Fix the shebang lines.
sed -i '1s,^#!/usr/bin/env bash,#!/usr/bin/bash,' bin/ruby-install
find share -type f -name "*.sh" -print0 | xargs -0 sed -i '1s,^#!\/usr\/bin\/env bash,# vim: ft=bash,'
%build
%install
%{make_install} PREFIX=/usr
%{_fixperms} %{buildroot}/*
%check
%files
%defattr(-, root, root)
%license LICENSE.txt
%doc *.md
%{_bindir}/ruby-install
%{_datadir}/ruby-install/
%{_mandir}/man1/*
%changelog