]> git.pld-linux.org Git - packages/ruby-rspec-expectations.git/blame - ruby-rspec-expectations.spec
- up to 3.7.0
[packages/ruby-rspec-expectations.git] / ruby-rspec-expectations.spec
CommitLineData
52931357
ER
1#
2# Conditional build:
52931357 3%bcond_without tests # build without tests
91ccb939 4# test needs rspec-core, however rspec-core depends on rspec-mocks
52931357
ER
5# runtime part of rspec-mocks does not depend on rspec-core
6
a7fe20cc 7%define pkgname rspec-expectations
52931357 8Summary: Rspec-2 expectations (should and matchers)
8e310de3 9Summary(pl.UTF-8): Oczekiwania Rspec-2 (should oraz matchers)
a7fe20cc 10Name: ruby-%{pkgname}
06f6449b 11Version: 3.7.0
ce5facbd 12Release: 1
52931357
ER
13License: MIT
14Group: Development/Languages
a7fe20cc 15Source0: http://rubygems.org/gems/%{pkgname}-%{version}.gem
06f6449b 16# Source0-md5: 23a198e5227cb308417efef6d136c41e
52931357
ER
17URL: http://github.com/rspec/rspec-expectations
18BuildRequires: rpm-rubyprov
19BuildRequires: rpmbuild(macros) >= 1.656
05967f06 20%if %{with tests}
52931357
ER
21BuildRequires: ruby-minitest
22BuildRequires: ruby-rspec
23%endif
ce5facbd
JB
24Requires: ruby-diff-lcs >= 1.1.3
25Requires: ruby-diff-lcs < 2.0
52931357
ER
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30rspec-expectations adds `should` and `should_not` to every object and
31includes RSpec::Matchers, a library of standard matchers.
32
8e310de3
JB
33%description -l pl.UTF-8
34rspec-expectations dodaje `should` oraz `should_not` do każdego
35obiektu oraz zawiera RSpec::Matchers - bibliotekę standardowych
36funkcji dopasowujących.
52931357 37
52931357 38%prep
a7fe20cc 39%setup -q -n %{pkgname}-%{version}
52931357 40
52931357 41%build
a7fe20cc
ER
42# write .gemspec
43%__gem_helper spec
44
52931357
ER
45%if %{with tests}
46ruby -rubygems -Ilib/ -S rspec spec/
47%endif
48
49%install
50rm -rf $RPM_BUILD_ROOT
a7fe20cc 51install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
52931357 52cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
a7fe20cc 53cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
52931357
ER
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
06f6449b 60%doc README.md Changelog.md LICENSE.md
52931357
ER
61%{ruby_vendorlibdir}/rspec/expectations.rb
62%{ruby_vendorlibdir}/rspec/expectations
06f6449b
JR
63%{ruby_vendorlibdir}/rspec/matchers.rb
64%{ruby_vendorlibdir}/rspec/matchers
a7fe20cc 65%{ruby_specdir}/%{pkgname}-%{version}.gemspec
This page took 0.123187 seconds and 4 git commands to generate.