Macro / BR / Requires cleanup

This commit is contained in:
TASAKA Mamoru 2013-02-28 13:07:26 +09:00
commit 89be5e7ce5

View file

@ -1,5 +1,9 @@
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
%if 0%{?fedora} < 19
%global rubyabi 1.9.1
%endif
%global gem_name flexmock
# Note
@ -9,17 +13,24 @@
Summary: Mock object library for ruby
Name: rubygem-%{gem_name}
Version: 1.3.0
Release: 2%{?dist}
Release: 4%{?dist}
Group: Development/Languages
License: Copyright only
URL: http://flexmock.rubyforge.org
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
%if 0%{?fedora} >= 19
Requires: ruby(release)
BuildRequires: ruby(release)
%else
Requires: ruby(abi) = %{rubyabi}
Requires: ruby
BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: ruby
%endif
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(rake)
Requires: ruby(release)
Requires: ruby(rubygems)
Provides: rubygem(%{gem_name}) = %{version}-%{release}
BuildArch: noarch
@ -153,6 +164,9 @@ rake test_all --trace
%endif
%changelog
* Wed Feb 27 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.0-3
- Macro / BR / Requires cleanup
* Wed Feb 27 2013 Josef Stribny <jstribny@redhat.com> - 1.3.0-2
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0