From bf662d0e91872d6236b82c8cf071c6b8890aadbf Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Sun, 18 Oct 2009 19:32:11 +0000 Subject: [PATCH] Initial import --- .cvsignore | 1 + import.log | 1 + rubygem-cucumber.spec | 96 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 99 insertions(+) create mode 100644 import.log create mode 100644 rubygem-cucumber.spec diff --git a/.cvsignore b/.cvsignore index e69de29..cc76777 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cucumber-0.4.0.gem diff --git a/import.log b/import.log new file mode 100644 index 0000000..091be80 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rubygem-cucumber-0_4_0-1_fc11:HEAD:rubygem-cucumber-0.4.0-1.fc11.src.rpm:1255890590 diff --git a/rubygem-cucumber.spec b/rubygem-cucumber.spec new file mode 100644 index 0000000..ae4ce59 --- /dev/null +++ b/rubygem-cucumber.spec @@ -0,0 +1,96 @@ +%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname cucumber +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} + +Summary: Tool to execute plain-text documents as functional tests +Name: rubygem-%{gemname} +Version: 0.4.0 +Release: 1%{?dist} +Group: Development/Languages +License: MIT +URL: http://cukes.info +Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: ruby(abi) = 1.8 +Requires: rubygems +Requires: rubygem(term-ansicolor) >= 1.0.3 +Requires: rubygem(treetop) >= 1.2.5 +Requires: rubygem(polyglot) >= 0.2.5 +Requires: rubygem(diff-lcs) >= 1.1.2 +Requires: rubygem(builder) >= 2.1.2 +BuildRequires: rubygems +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version} + +%description +Cucumber lets software development teams describe how software should behave +in plain text. The text is written in a business-readable domain-specific +language and serves as documentation, automated tests and development-aid. + + +%prep + + +%build + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{gemdir} +gem install --local --install-dir $RPM_BUILD_ROOT%{gemdir} \ + --force --rdoc %{SOURCE0} +mkdir -p $RPM_BUILD_ROOT/%{_bindir} +mv $RPM_BUILD_ROOT%{gemdir}/bin/* $RPM_BUILD_ROOT/%{_bindir} +rmdir $RPM_BUILD_ROOT%{gemdir}/bin +find $RPM_BUILD_ROOT%{geminstdir}/bin -type f |xargs chmod a+x + +# Remove zero-length documentation files +find $RPM_BUILD_ROOT%{gemdir}/doc/%{gemname}-%{version} -empty -delete + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_bindir}/cucumber +%dir %{geminstdir} +%{geminstdir}/bin +%{geminstdir}/config +%{geminstdir}/features +%{geminstdir}/gem_tasks +%{geminstdir}/lib +%{geminstdir}/rails_generators +%{geminstdir}/spec +%{geminstdir}/cucumber.yml +%{geminstdir}/Rakefile +%doc %{geminstdir}/examples +%doc %{gemdir}/doc/%{gemname}-%{version} +%doc %{geminstdir}/History.txt +%doc %{geminstdir}/License.txt +%doc %{geminstdir}/Manifest.txt +%doc %{geminstdir}/README.txt +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + + +%changelog +* Mon Oct 12 2009 Lubomir Rintel (Good Data) - 0.4.0-1 +- Newer release + +* Fri Jun 26 2009 Lubomir Rintel (Good Data) - 0.3.10-3 +- Get rid of duplicate files (thanks to Mamoru Tasaka) + +* Mon Jun 08 2009 Lubomir Rintel (Good Data) - 0.3.10-2 +- Use geminstdir macro where appropriate +- Do not move examples around +- Depend on ruby(abi) +- Replace defines with globals + +* Fri Jun 05 2009 Lubomir Rintel (Good Data) - 0.3.10-1 +- Package generated by gem2rpm +- Move examples into documentation +- Remove empty files +- Fix up License diff --git a/sources b/sources index e69de29..be3bcf7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4ee5e766e67074818fa1c9afe4e10f8e cucumber-0.4.0.gem