diff --git a/.gitignore b/.gitignore index e69de29..81dbc19 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/test_declarative-0.0.5.gem diff --git a/rubygem-test_declarative.spec b/rubygem-test_declarative.spec new file mode 100644 index 0000000..b748a44 --- /dev/null +++ b/rubygem-test_declarative.spec @@ -0,0 +1,68 @@ +# Generated from test_declarative-0.0.5.gem by gem2rpm -*- rpm-spec -*- +%global gem_name test_declarative +%global rubyabi 1.9.1 + +Summary: Simply adds a declarative test method syntax to test/unit +Name: rubygem-%{gem_name} +Version: 0.0.5 +Release: 1%{?dist} +Group: Development/Languages +License: MIT +URL: http://github.com/svenfuchs/test_declarative +Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem +Requires: ruby(abi) = %{rubyabi} +Requires: ruby(rubygems) +BuildRequires: ruby(abi) = %{rubyabi} +BuildRequires: rubygems-devel +BuildRequires: rubygem(minitest) +BuildArch: noarch +Provides: rubygem(%{gem_name}) = %{version} + +%description +Simply adds a declarative test method syntax to test/unit. + + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name} + + +%prep +%setup -q -c -T +mkdir -p .%{gem_dir} +gem install --local --install-dir .%{gem_dir} \ + --force %{SOURCE0} + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} +testrb test +popd + +%files +%dir %{gem_instdir} +%exclude %{gem_cache} +%{gem_libdir} +%{gem_spec} +%doc %{gem_instdir}/MIT-LICENSE + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.textile +%{gem_instdir}/test + + +%changelog +* Fri Jan 20 2012 Bohuslav Kabrda - 0.0.5-1 +- Initial package diff --git a/sources b/sources index e69de29..6f9c1ea 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +994da4bb1425c8cb72c7effeeacd5abc test_declarative-0.0.5.gem