|
|
|
@ -1,27 +1,25 @@
|
|
|
|
|
# Generated from metaclass-0.0.1.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
|
%global gemname metaclass
|
|
|
|
|
%global gem_name metaclass
|
|
|
|
|
|
|
|
|
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
|
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
|
%global rubyabi 1.8
|
|
|
|
|
%global rubyabi 1.9.1
|
|
|
|
|
|
|
|
|
|
Summary: Adds a metaclass method to all Ruby objects
|
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.0.1
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
# https://github.com/floehopper/metaclass/issues/1
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://github.com/floehopper/metaclass
|
|
|
|
|
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
Requires: ruby
|
|
|
|
|
BuildRequires: ruby(abi) = %{rubyabi}
|
|
|
|
|
BuildRequires: ruby(rubygems)
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: ruby
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Adds a metaclass method to all Ruby objects
|
|
|
|
@ -39,19 +37,19 @@ Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -c -T
|
|
|
|
|
mkdir -p .%{gemdir}
|
|
|
|
|
gem install --local --install-dir .%{gemdir} \
|
|
|
|
|
mkdir -p .%{gem_dir}
|
|
|
|
|
gem install --local --install-dir .%{gem_dir} \
|
|
|
|
|
--force %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
|
|
|
cp -a .%{gemdir}/* \
|
|
|
|
|
%{buildroot}%{gemdir}/
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd .%{geminstdir}
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
# test_helper.rb currently references bundler, so it is easier to avoid
|
|
|
|
|
# its usage at all.
|
|
|
|
|
sed -i '1,1d' test/object_methods_test.rb
|
|
|
|
@ -60,22 +58,25 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{geminstdir}
|
|
|
|
|
%exclude %{geminstdir}/.gitignore
|
|
|
|
|
%exclude %{geminstdir}/metaclass.gemspec
|
|
|
|
|
%{geminstdir}/lib
|
|
|
|
|
%{geminstdir}/test
|
|
|
|
|
%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%exclude %{gem_instdir}/.gitignore
|
|
|
|
|
%exclude %{gem_instdir}/metaclass.gemspec
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{geminstdir}/README.md
|
|
|
|
|
%{geminstdir}/Gemfile
|
|
|
|
|
%{geminstdir}/Rakefile
|
|
|
|
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Jan 18 2012 Vít Ondruch <vondruch@redhat.com> - 0.0.1-4
|
|
|
|
|
- Build for Ruby 1.9.3.
|
|
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|