|
|
|
# Generated from metaclass-0.0.1.gem by gem2rpm -*- rpm-spec -*-
|
|
|
|
%global gemname metaclass
|
|
|
|
|
|
|
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
%global rubyabi 1.8
|
|
|
|
|
|
|
|
Summary: Adds a metaclass method to all Ruby objects
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
Version: 0.0.1
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/floehopper/metaclass
|
|
|
|
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
|
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
Requires: ruby
|
|
|
|
BuildRequires: ruby(abi) = %{rubyabi}
|
|
|
|
BuildRequires: ruby(rubygems)
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Adds a metaclass method to all Ruby objects
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -T
|
|
|
|
mkdir -p .%{gemdir}
|
|
|
|
gem install --local --install-dir .%{gemdir} \
|
|
|
|
--force %{SOURCE0}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
|
|
cp -a .%{gemdir}/* \
|
|
|
|
%{buildroot}%{gemdir}/
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd .%{geminstdir}
|
|
|
|
# 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
|
|
|
|
RUBYOPT="-Ilib -rmetaclass" testrb test/object_methods_test.rb
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%dir %{geminstdir}
|
|
|
|
%exclude %{geminstdir}/.gitignore
|
|
|
|
%{geminstdir}/README.md
|
|
|
|
%exclude %{geminstdir}/metaclass.gemspec
|
|
|
|
%{geminstdir}/lib
|
|
|
|
%{geminstdir}/test
|
|
|
|
%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%{geminstdir}/Gemfile
|
|
|
|
%{geminstdir}/Rakefile
|
|
|
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Tue Oct 04 2011 Vít Ondruch <vondruch@redhat.com> - 0.0.1-2
|
|
|
|
- Clarified license.
|
|
|
|
|
|
|
|
* Mon Oct 03 2011 Vít Ondruch <vondruch@redhat.com> - 0.0.1-1
|
|
|
|
- Initial package
|