%define gemdir %(ruby -rrubygems -e'puts Gem.default_dir') %define gemname %(echo %{name} | sed "s|^ruby-||") Name: ruby-progressbar Version: 1.13.0 Release: 1mamba Summary: A Text Progress Bar Library for Ruby Group: System/Internationalization Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/jfelchner/ruby-progressbar Source: https://github.com/jfelchner/ruby-progressbar.git/releases%2Fv%{version}/ruby-progressbar-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END BuildRequires: ruby >= 2.5.1 Requires: ruby >= %{ruby_version} %description A Text Progress Bar Library for Ruby. %prep %setup -q # update gemspec/Gemfile to allow newer version of the dependencies sed --in-place --regexp-extended 's|~>|>=|g' %{gemname}.gemspec sed --in-place '/cert_chain/d' %{gemname}.gemspec sed --in-place '/signing_key/d' %{gemname}.gemspec %build gem build %{gemname}.gemspec %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" gem install --local --no-user-install --ignore-dependencies -i "%{buildroot}%{gemdir}" \ -n "%{buildroot}%{_bindir}" %{gemname}-%{version}.gem rm %{buildroot}%{gemdir}/cache/%{gemname}-%{version}.gem rm -rf %{buildroot}%{gemdir}/gems/%{gemname}-%{version}/man rm -rf %{buildroot}%{gemdir}/doc/%{gemname}-%{version} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" #% check #ruby test.rb %files %defattr(-,root,root) %dir %{gemdir}/gems/%{gemname}-%{version} %{gemdir}/gems/%{gemname}-%{version}/* %{gemdir}/specifications/%{gemname}-%{version}.gemspec %doc LICENSE.txt %changelog * Thu Nov 28 2024 Silvan Calarco 1.13.0-1mamba - update to 1.13.0 * Wed Jul 18 2018 Silvan Calarco 0.9-3mamba - rebuilt for ruby 2.5.1 * Sun Sep 01 2013 Automatic Build System 0.9-2mamba - automatic rebuild by autodist * Fri Jul 25 2008 gil 0.9-1mamba - package created by autospec