## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # some tests are failing and there isn't a straightforward way to disable them %bcond_with check %global salsa_commit 4855a775cf29a175afe605ee7ea43134e29a4b40 %global debug_package %{nil} Name: ruby-build Version: 20221004 Release: %autorelease Summary: Compile and install Ruby License: MIT URL: https://github.com/rbenv/ruby-build Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: https://salsa.debian.org/ruby-team/ruby-build/-/raw/%{salsa_commit}/debian/ruby-build.1.adoc BuildRequires: rubygem-asciidoctor %if %{with check} BuildRequires: bats %endif # ruby-build can build various ruby interpreters from source, which in turn can # require additional dependencies Recommends: bzip2 Recommends: clang Recommends: gdbm-devel Recommends: java-headless Recommends: libffi-devel Recommends: libyaml-devel Recommends: llvm-devel Recommends: make Recommends: ncurses-devel Recommends: openssl-devel Recommends: patch Recommends: perl-File-Compare Recommends: perl-FindBin Recommends: readline-devel Recommends: ruby Recommends: rubygem-rake Recommends: rust Recommends: zlib-devel %description ruby-build is a command-line utility that makes it easy to install virtually any version of Ruby, from source. %package rbenv Summary: rbenv plugin to compile and install Ruby Requires: ruby-build = %{version}-%{release} Requires: rbenv %description rbenv This package contains a plugin for rbenv that provides the "rbenv install" command. %prep %autosetup cp -p %SOURCE1 . %build asciidoctor --backend manpage ruby-build.1.adoc %install PREFIX=%{buildroot}%{_prefix} ./install.sh install -Dpm0644 -t %{buildroot}%{_mandir}/man1 ruby-build.1 install -Ddpm0755 %{buildroot}%{_libdir}/rbenv/libexec mv %{buildroot}%{_bindir}/rbenv-* %{buildroot}%{_libdir}/rbenv/libexec %if %{with check} %check bats test %endif %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/%{name}.1* %files rbenv %{_libdir}/rbenv/libexec/* %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 20221004-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 20221004-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 20221004-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 20221004-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 20221004-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Oct 14 2022 Davide Cavalca - 20221004-1 - Initial import; Fixes: RHBZ#2025084 ## END: Generated by rpmautospec