]>
Commit | Line | Data |
---|---|---|
cf21c59a ER |
1 | # TODO |
2 | # - patch rspec to integrate cucumber rules too in autotest/discover.rb | |
ea787e76 ER |
3 | %define pkgname cucumber |
4 | Summary: Tool to execute plain-text documents as functional tests | |
5 | Name: ruby-%{pkgname} | |
6 | Version: 1.2.1 | |
15c7afd0 | 7 | Release: 3 |
ea787e76 ER |
8 | License: MIT |
9 | Group: Development/Languages | |
10 | Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem | |
11 | # Source0-md5: 891940571d5ff073da27e415b2b0db31 | |
12 | URL: http://cukes.info/ | |
13 | BuildRequires: rpm-rubyprov | |
14 | BuildRequires: rpmbuild(macros) >= 1.656 | |
15 | BuildRequires: sed >= 4.0 | |
16 | Requires: ruby-builder >= 2.1.2 | |
17 | Requires: ruby-diff-lcs >= 1.1.3 | |
18 | Requires: ruby-gherkin < 2.12 | |
19 | Requires: ruby-gherkin >= 2.11.0 | |
20 | Requires: ruby-json >= 1.4.6 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
15c7afd0 ER |
24 | # do not generate python dependency, py_support is optional |
25 | %define _noautoreqfiles %{ruby_vendorlibdir}/cucumber/py_support | |
26 | ||
ea787e76 ER |
27 | %description |
28 | Cucumber lets software development teams describe how software should | |
29 | behave in plain text. The text is written in a business-readable | |
30 | domain-specific language and serves as documentation, automated tests | |
31 | and development-aid. | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{pkgname}-%{version} | |
35 | %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/* | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}} | |
40 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
41 | cp -a bin/* $RPM_BUILD_ROOT%{_bindir} | |
42 | ||
43 | %{__rm} $RPM_BUILD_ROOT%{ruby_vendorlibdir}/README.rdoc | |
44 | ||
cf21c59a ER |
45 | # conflicts with ruby-rspec-core-2.13.1 |
46 | %{__rm} $RPM_BUILD_ROOT%{ruby_vendorlibdir}/autotest/discover.rb | |
47 | ||
ea787e76 ER |
48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc README.md History.md LICENSE | |
54 | %attr(755,root,root) %{_bindir}/cucumber | |
15c7afd0 ER |
55 | %{ruby_vendorlibdir}/cucumber.rb |
56 | %{ruby_vendorlibdir}/cucumber | |
ea787e76 ER |
57 | |
58 | %{ruby_vendorlibdir}/autotest/cucumber.rb | |
59 | %{ruby_vendorlibdir}/autotest/cucumber_mixin.rb | |
60 | %{ruby_vendorlibdir}/autotest/cucumber_rails.rb | |
61 | %{ruby_vendorlibdir}/autotest/cucumber_rails_rspec.rb | |
62 | %{ruby_vendorlibdir}/autotest/cucumber_rails_rspec2.rb | |
63 | %{ruby_vendorlibdir}/autotest/cucumber_rspec.rb | |
64 | %{ruby_vendorlibdir}/autotest/cucumber_rspec2.rb |