|
|
b8ab4a7 |
%global gem_name progressbar
|
|
Michal Fojtik |
8aebfe7 |
|
|
|
8c97d70 |
Name: rubygem-%{gem_name}
|
|
|
8c97d70 |
Version: 1.11.0
|
|
|
8c97d70 |
Release: 1%{?dist}
|
|
|
8c97d70 |
Summary: Ruby/ProgressBar is a flexible text progress bar library
|
|
|
8c97d70 |
License: MIT
|
|
|
8c97d70 |
|
|
|
8c97d70 |
URL: https://github.com/jfelchner/ruby-progressbar
|
|
|
8c97d70 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
8c97d70 |
Source1: rubygem-ruby-progressbar-%{version}-testsuite.tar.gz
|
|
|
8c97d70 |
# Source1 is created from $ bash %%{SOURCE2} <version>
|
|
|
8c97d70 |
Source2: ruby-progressbar-create-test-suite-tarball.sh
|
|
|
8c97d70 |
|
|
|
8c97d70 |
BuildRequires: ruby(release)
|
|
|
8c97d70 |
BuildRequires: rubygems-devel
|
|
|
8c97d70 |
BuildRequires: ruby
|
|
|
8c97d70 |
# check
|
|
|
8c97d70 |
BuildRequires: rubygem(timecop)
|
|
|
8c97d70 |
BuildRequires: rubygem(rspec)
|
|
|
8c97d70 |
|
|
|
8c97d70 |
BuildArch: noarch
|
|
Michal Fojtik |
8aebfe7 |
|
|
Michal Fojtik |
8aebfe7 |
%description
|
|
|
8c97d70 |
Ruby/ProgressBar is an extremely flexible text progress bar library for Ruby.
|
|
|
8c97d70 |
The output can be customized with a flexible formatting system including:
|
|
|
8c97d70 |
percentage, bars of various formats, elapsed time and estimated time
|
|
|
8c97d70 |
remaining.
|
|
Michal Fojtik |
8aebfe7 |
|
|
Michal Fojtik |
8aebfe7 |
|
|
|
8c97d70 |
%package doc
|
|
|
8c97d70 |
Summary: Documentation for %{name}
|
|
|
8c97d70 |
Requires: %{name} = %{version}-%{release}
|
|
|
8c97d70 |
BuildArch: noarch
|
|
|
8c97d70 |
|
|
|
8c97d70 |
%description doc
|
|
|
c82794b |
Documentation for %{name}.
|
|
Michal Fojtik |
8aebfe7 |
|
|
Michal Fojtik |
8aebfe7 |
%prep
|
|
|
8c97d70 |
%setup -q -n %{gem_name}-%{version} -a 1
|
|
|
8c97d70 |
|
|
|
8c97d70 |
pushd ruby-%{gem_name}-%{version}/
|
|
|
8c97d70 |
# rspectacular does nothing significant, removing
|
|
|
8c97d70 |
sed -i spec/spec_helper.rb -e '\@rspectacular@d'
|
|
|
8c97d70 |
popd
|
|
|
8c97d70 |
cp -a ruby-%{gem_name}-%{version}/spec .
|
|
Michal Fojtik |
8aebfe7 |
|
|
Michal Fojtik |
8aebfe7 |
%build
|
|
|
8c97d70 |
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
8c97d70 |
|
|
|
8c97d70 |
%gem_install
|
|
Michal Fojtik |
8aebfe7 |
|
|
Michal Fojtik |
8aebfe7 |
%install
|
|
|
b8ab4a7 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
8c97d70 |
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
|
Michal Fojtik |
8aebfe7 |
|
|
|
8c97d70 |
pushd %{buildroot}%{gem_instdir}
|
|
|
8c97d70 |
rm -f \
|
|
|
8c97d70 |
Rakefile \
|
|
|
8c97d70 |
%{nil}
|
|
|
8c97d70 |
popd
|
|
|
c82794b |
|
|
|
8c97d70 |
%check
|
|
|
8c97d70 |
rm -rf .%{gem_instdir}/spec
|
|
|
8c97d70 |
cp -a spec .%{gem_instdir}
|
|
|
c82794b |
|
|
|
8c97d70 |
pushd .%{gem_instdir}
|
|
|
8c97d70 |
export RUBYLIB=$(pwd)/lib
|
|
|
c82794b |
|
|
|
8c97d70 |
# Need investigation
|
|
|
8c97d70 |
sed -i spec/lib/ruby-progressbar/base_spec.rb \
|
|
|
8c97d70 |
-e '\@can be converted into a hash@s|it|xit|'
|
|
|
c82794b |
|
|
|
d1c9694 |
ruby -rprogressbar -rtimecop -S rspec spec
|
|
Michal Fojtik |
8aebfe7 |
popd
|
|
Michal Fojtik |
8aebfe7 |
|
|
Michal Fojtik |
8aebfe7 |
%files
|
|
|
8c97d70 |
%license %{gem_instdir}/LICENSE.txt
|
|
|
8c97d70 |
|
|
|
b8ab4a7 |
%dir %{gem_instdir}
|
|
|
b8ab4a7 |
%{gem_libdir}
|
|
|
b8ab4a7 |
%{gem_spec}
|
|
Michal Fojtik |
8aebfe7 |
|
|
|
8c97d70 |
%exclude %{gem_cache}
|
|
|
8c97d70 |
|
|
Michal Fojtik |
8aebfe7 |
%files doc
|
|
|
8c97d70 |
%doc %{gem_docdir}
|
|
|
8c97d70 |
%doc %{gem_instdir}/README.md
|
|
|
8c97d70 |
|
|
Michal Fojtik |
8aebfe7 |
|
|
Michal Fojtik |
8aebfe7 |
%changelog
|
|
|
8c97d70 |
* Mon Feb 15 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.11.0-1
|
|
|
8c97d70 |
- 1.11.0
|
|
|
8c97d70 |
|
|
|
cb0c3ae |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-12
|
|
|
cb0c3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
cb0c3ae |
|
|
|
002a4b9 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-11
|
|
|
002a4b9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
002a4b9 |
|
|
|
ddfd0cf |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-10
|
|
|
ddfd0cf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
ddfd0cf |
|
|
|
f399d84 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-9
|
|
|
f399d84 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
f399d84 |
|
|
|
53bba4f |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-8
|
|
|
53bba4f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
53bba4f |
|
|
|
f46cf6f |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-7
|
|
|
f46cf6f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
f46cf6f |
|
|
|
e6cca45 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-6
|
|
|
e6cca45 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
e6cca45 |
|
|
|
e51aa83 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-5
|
|
|
e51aa83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e51aa83 |
|
|
|
a15fd77 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-4
|
|
|
a15fd77 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
a15fd77 |
|
|
|
b21d0f5 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-3
|
|
|
b21d0f5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
b21d0f5 |
|
|
|
52c13c5 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.0-2
|
|
|
52c13c5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
52c13c5 |
|
|
|
c82794b |
* Wed Jul 16 2014 Vít Ondruch <vondruch@redhat.com> - 0.21.0-1
|
|
|
c82794b |
- Update to progressbar 0.21.0.
|
|
|
c82794b |
|
|
|
85b12cd |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-5
|
|
|
85b12cd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
85b12cd |
|
|
|
0c1e576 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-4
|
|
|
0c1e576 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
0c1e576 |
|
|
|
8d2c15e |
* Mon Mar 18 2013 Vít Ondruch <vondruch@redhat.com> - 0.11.0-3
|
|
|
8d2c15e |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
8d2c15e |
|
|
|
d5d1745 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-2
|
|
|
d5d1745 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
d5d1745 |
|
|
|
dd510bf |
* Fri Sep 07 2012 Vít Ondruch <vondruch@redhat.com> - 0.11.0-1
|
|
|
dd510bf |
- Update to progressbar 0.11.0.
|
|
|
dd510bf |
|
|
|
cdcb430 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-6
|
|
|
cdcb430 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
cdcb430 |
|
|
|
b8ab4a7 |
* Fri Feb 03 2012 Vít Ondruch <vondruch@redhat.com> - 0.9.0-5
|
|
|
b8ab4a7 |
- Rebuilt for Ruby 1.9.3.
|
|
|
b8ab4a7 |
|
|
|
367a485 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-4
|
|
|
367a485 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
367a485 |
|
|
|
2beeac1 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-3
|
|
|
2beeac1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
2beeac1 |
|
|
Michal Fojtik |
8aebfe7 |
* Fri Oct 29 2010 Michal Fojtik <mfojtik@redhat.com> - 0.9.0-2
|
|
Michal Fojtik |
8aebfe7 |
- Fixed encoding on README.ja.rd
|
|
Michal Fojtik |
8aebfe7 |
- Changed way how patch is applied
|
|
Michal Fojtik |
8aebfe7 |
- Removed unneeded bindir macro
|
|
Michal Fojtik |
8aebfe7 |
- License changed to Ruby
|
|
Michal Fojtik |
8aebfe7 |
|
|
Michal Fojtik |
8aebfe7 |
* Wed Oct 13 2010 Michal Fojtik <mfojtik@redhat.com> - 0.9.0-1
|
|
Michal Fojtik |
8aebfe7 |
- Initial package
|