]>
Commit | Line | Data |
---|---|---|
4ca6e49a ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build without tests | |
4 | ||
5 | %define pkgname aruba | |
6 | Summary: CLI Steps for Cucumber, hand-crafted for you in Aruba | |
b8f5f033 | 7 | Name: ruby-%{pkgname} |
4ca6e49a ER |
8 | Version: 0.5.2 |
9 | Release: 1 | |
10 | Group: Development/Languages | |
11 | # aruba itself is MIT | |
12 | # icons in templates/images are CC-BY | |
13 | # jquery.js itself is MIT or GPLv2 | |
14 | # jquery.js includes sizzle.js, which is MIT or BSD or GPLv2 | |
15 | License: MIT and CC-BY and (MIT or GPLv2) and (MIT or BSD or GPLv2) | |
16 | Source0: http://rubygems.org/gems/%{pkgname}-%{version}.gem | |
17 | # Source0-md5: e048f42c74d41f6587bfdec83bec7a31 | |
18 | URL: http://github.com/cucumber/aruba | |
19 | BuildRequires: rpm-rubyprov | |
20 | BuildRequires: rpmbuild(macros) >= 1.656 | |
21 | %if %{with tests} | |
22 | BuildRequires: ruby-bcat >= 0.6.1 | |
23 | BuildRequires: ruby-kramdown < 1 | |
24 | BuildRequires: ruby-kramdown >= 0.14 | |
25 | BuildRequires: ruby-rake >= 0.9.2 | |
26 | BuildRequires: ruby-rspec >= 2.7.0 | |
27 | %endif | |
28 | # Doesn't work with ffi 1.0.10, see https://github.com/cucumber/aruba/issues/114 | |
29 | BuildConflicts: ruby-ffi = 1.0.10 | |
30 | # used in one of the features | |
31 | BuildRequires: bc | |
32 | Requires: ruby-childprocess < 0.4 | |
33 | Requires: ruby-childprocess >= 0.3.6 | |
34 | Requires: ruby-cucumber >= 1.1.1 | |
35 | Requires: ruby-rspec-expectations >= 2.7.0 | |
36 | Conflicts: ruby-ffi = 1.0.10 | |
37 | BuildArch: noarch | |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
39 | ||
40 | %description | |
41 | Aruba is Cucumber extension for Command line applications written in | |
42 | any programming language. | |
43 | ||
44 | %prep | |
45 | %setup -q -n %{pkgname}-%{version} | |
46 | ||
47 | %build | |
48 | %if %{with tests} | |
49 | cucumber | |
50 | rspec spec | |
51 | %endif | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
56 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc README.md History.md LICENSE | |
64 | %{ruby_vendorlibdir}/%{pkgname}.rb | |
65 | %{ruby_vendorlibdir}/%{pkgname} |