Group :: Development/Ruby
RPM: ruby-mocha
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# vim: set ft=spec: -*- rpm-spec -*-
%define pkgname mocha
Name: ruby-%pkgname
Version: 0.9.2
Release: alt1
Summary: Library for mocking and stubbing in Ruby
Group: Development/Ruby
License: MIT/Ruby
Url: http://rubyforge.org/projects/mocha/
Packager: Ruby Maintainers Team <ruby at packages.altlinux.org>
BuildArch: noarch
Source: %pkgname-%version.tar
Patch: %pkgname-%version-%release.patch
# Automatically added by buildreq on Mon Nov 10 2008 (-bi)
BuildRequires: rpm-build-ruby ruby-module-etc ruby-module-misc ruby-tool-rdoc ruby-tool-setup
%description
Mocha is a library for mocking and stubbing in Ruby using a syntax
like that of JMock. Mocha provides a unified, simple and readable
syntax for both traditional and partial mocking.
%package doc
Summary: Documentation files for %name
Group: Documentation
%description doc
Documentation files for %name
%prep
%setup -n %pkgname-%version
%patch -p1
%update_setup_rb
%build
%ruby_config
%ruby_build
%ruby_test_unit -Ilib:test test/unit/*_test.rb test/unit/*/*_test.rb test/acceptance/*_test.rb
%install
%ruby_install
%rdoc lib/
%files
%doc README
%ruby_sitelibdir/*
%files doc
%ruby_ri_sitedir/Mocha*
%changelog
…
Full changelog you can see here
%define pkgname mocha
Name: ruby-%pkgname
Version: 0.9.2
Release: alt1
Summary: Library for mocking and stubbing in Ruby
Group: Development/Ruby
License: MIT/Ruby
Url: http://rubyforge.org/projects/mocha/
Packager: Ruby Maintainers Team <ruby at packages.altlinux.org>
BuildArch: noarch
Source: %pkgname-%version.tar
Patch: %pkgname-%version-%release.patch
# Automatically added by buildreq on Mon Nov 10 2008 (-bi)
BuildRequires: rpm-build-ruby ruby-module-etc ruby-module-misc ruby-tool-rdoc ruby-tool-setup
%description
Mocha is a library for mocking and stubbing in Ruby using a syntax
like that of JMock. Mocha provides a unified, simple and readable
syntax for both traditional and partial mocking.
%package doc
Summary: Documentation files for %name
Group: Documentation
%description doc
Documentation files for %name
%prep
%setup -n %pkgname-%version
%patch -p1
%update_setup_rb
%build
%ruby_config
%ruby_build
%ruby_test_unit -Ilib:test test/unit/*_test.rb test/unit/*/*_test.rb test/acceptance/*_test.rb
%install
%ruby_install
%rdoc lib/
%files
%doc README
%ruby_sitelibdir/*
%files doc
%ruby_ri_sitedir/Mocha*
%changelog
…
Full changelog you can see here