Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
066b4bb5d4 |
3 changed files with 27 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
/progressbar-0.9.0.gem
|
/progressbar-0.9.0.gem
|
||||||
/rubygem-progressbar-test-load-path-fix.patch
|
/rubygem-progressbar-test-load-path-fix.patch
|
||||||
/progressbar-0.11.0.gem
|
/progressbar-0.11.0.gem
|
||||||
|
/progressbar-0.21.0.gem
|
||||||
|
|
|
||||||
|
|
@ -2,18 +2,15 @@
|
||||||
|
|
||||||
Summary: Ruby text progress bar generator library
|
Summary: Ruby text progress bar generator library
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 0.11.0
|
Version: 0.21.0
|
||||||
Release: 5%{?dist}
|
Release: 1%{?dist}
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: GPLv2 or Ruby
|
License: BSD or Ruby
|
||||||
URL: http://github.com/peleteiro/progressbar
|
URL: http://github.com/peleteiro/progressbar
|
||||||
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
Requires: ruby(release)
|
|
||||||
Requires: ruby(rubygems)
|
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
BuildRequires: rubygem(minitest)
|
BuildRequires: rubygem(minitest)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Provides: rubygem(%{gem_name}) = %{version}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ProgressBar is a text progress bar library for Ruby. It can indicate
|
ProgressBar is a text progress bar library for Ruby. It can indicate
|
||||||
|
|
@ -25,7 +22,7 @@ Group: Documentation
|
||||||
Requires:%{name} = %{version}-%{release}
|
Requires:%{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Documentation for %{name}
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%setup -q -c -T
|
||||||
|
|
@ -40,7 +37,22 @@ cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
ruby -Ilib test/test.rb
|
# Run the tests using minitest 5.
|
||||||
|
ruby -Ilib -rminitest/autorun - << \EOF
|
||||||
|
module Kernel
|
||||||
|
alias orig_require require
|
||||||
|
remove_method :require
|
||||||
|
|
||||||
|
def require path
|
||||||
|
orig_require path unless path == 'test/unit'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
Test = Minitest
|
||||||
|
|
||||||
|
Dir.glob "./test/test.rb", &method(:require)
|
||||||
|
EOF
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
|
@ -48,7 +60,7 @@ popd
|
||||||
%exclude %{gem_instdir}/.*
|
%exclude %{gem_instdir}/.*
|
||||||
%{gem_libdir}
|
%{gem_libdir}
|
||||||
%doc %{gem_instdir}/LICENSE
|
%doc %{gem_instdir}/LICENSE
|
||||||
%{gem_cache}
|
%exclude %{gem_cache}
|
||||||
%{gem_spec}
|
%{gem_spec}
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
|
|
@ -61,6 +73,9 @@ popd
|
||||||
%{gem_instdir}/test
|
%{gem_instdir}/test
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 16 2014 Vít Ondruch <vondruch@redhat.com> - 0.21.0-1
|
||||||
|
- Update to progressbar 0.21.0.
|
||||||
|
|
||||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-5
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-5
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
b0aeb7f9bb4b6c5562582a009132c285 progressbar-0.11.0.gem
|
d9f376cd8782e71c05a42bfda5b41a9f progressbar-0.21.0.gem
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue