diff options
author | Ken Dreyer <ktdreyer@ktdreyer.com> | 2013-07-27 01:29:10 -0600 |
---|---|---|
committer | Ken Dreyer <ktdreyer@ktdreyer.com> | 2013-08-05 21:28:16 -0600 |
commit | cd2ab859f7dc23f3953c28ee17a24bc650538ee9 (patch) | |
tree | cbe48815131763001723ecc12840945c791863e6 | |
download | rubygem-gemnasium-parser-cd2ab859f7dc23f3953c28ee17a24bc650538ee9.tar.gz rubygem-gemnasium-parser-cd2ab859f7dc23f3953c28ee17a24bc650538ee9.tar.xz rubygem-gemnasium-parser-cd2ab859f7dc23f3953c28ee17a24bc650538ee9.zip |
Initial package
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-gemnasium-parser.spec | 83 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 85 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0621fbe --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gemnasium-parser-0.1.9.gem diff --git a/rubygem-gemnasium-parser.spec b/rubygem-gemnasium-parser.spec new file mode 100644 index 0000000..824dd95 --- /dev/null +++ b/rubygem-gemnasium-parser.spec @@ -0,0 +1,83 @@ +%global gem_name gemnasium-parser + +Name: rubygem-%{gem_name} +Version: 0.1.9 +Release: 1%{?dist} +Summary: Safely parse Gemfiles and gemspecs +Group: Development/Languages +License: MIT +URL: https://github.com/laserlemon/gemnasium-parser +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Requires: ruby(release) +Requires: ruby(rubygems) +Requires: rubygem(bundler) +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +# Test suite currently fails, but these are the BRs to run it: +#BuildRequires: rubygem(rspec) +#BuildRequires: rubygem(bundler) +BuildArch: noarch +Provides: rubygem(%{gem_name}) = %{version} + +%description +Safely parse Gemfiles and gemspecs + + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name} + +%prep +gem unpack %{SOURCE0} + +%setup -q -D -T -n %{gem_name}-%{version} + +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec + +%build +# Create the gem as gem install only works on a gem file +gem build %{gem_name}.gemspec + +# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir +# by default, so that we can move it into the buildroot in %%install +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +# Test suite has many failures. Upstream is going through a major refactor on +# for rspec tests. See https://github.com/gemnasium/gemnasium-parser/pull/29 +# For now we will comment out the test suite. +#pushd .%%{gem_instdir} +#rspec -Ilib spec +#popd + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/LICENSE +%exclude %{gem_instdir}/.* +%{gem_libdir} +%exclude %{gem_cache} +%exclude %{gem_instdir}/%{gem_name}.gemspec +%exclude %{gem_instdir}/Gemfile +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/spec + +%changelog +* Mon Aug 05 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 0.1.9-1 +- Initial package @@ -0,0 +1 @@ +a9e5d6df7d75a188014c416c866e1bef gemnasium-parser-0.1.9.gem |