From b6620bfa6b8420a7d4fa332b4673a175bfb933e4 Mon Sep 17 00:00:00 2001 From: Josef Stribny Date: Jul 30 2014 08:53:30 +0000 Subject: Initial package --- diff --git a/.gitignore b/.gitignore index e69de29..5fe29a6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pundit-0.2.3.gem diff --git a/rubygem-pundit.spec b/rubygem-pundit.spec new file mode 100644 index 0000000..5415a90 --- /dev/null +++ b/rubygem-pundit.spec @@ -0,0 +1,86 @@ +# Generated from pundit-0.2.3.gem by gem2rpm -*- rpm-spec -*- +%global gem_name pundit + +Name: rubygem-%{gem_name} +Version: 0.2.3 +Release: 2%{?dist} +Summary: Object oriented authorization for Rails +Group: Development/Languages +License: MIT +URL: https://github.com/elabs/pundit +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildRequires: ruby +# RSpec 3.0 is not yet in Fedora +# BuildRequires: rubygem(activerecord) >= 3.0.0 +# BuildRequires: rubygem(rspec) => 3.0.0.beta1 +# BuildRequires: rubygem(rspec) < 3.1 +BuildArch: noarch + +%if 0%{?fedora} <= 20 +Requires: ruby(release) +Requires: ruby(rubygems) +Requires: rubygem(activesupport) >= 3.0.0 +Provides: rubygem(%{gem_name}) = %{version} +%endif + +%description +Object oriented authorization for Rails applications. + + +%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 +gem build %{gem_name}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +# Fix permissions +chmod a-x %{buildroot}%{gem_instdir}/lib/generators/pundit/policy/templates/policy.rb + +# RSpec 3 is not yet in Fedora +#%%check + +%files +%dir %{gem_instdir} +%{gem_libdir} +%exclude %{gem_cache} +%exclude %{gem_instdir}/.travis.yml +%exclude %{gem_instdir}/.gitignore +%doc %{gem_instdir}/LICENSE.txt +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/README.md +%{gem_instdir}/Gemfile +%{gem_instdir}/Rakefile +%{gem_instdir}/%{gem_name}.gemspec +%{gem_instdir}/spec + +%changelog +* Mon Jul 28 2014 Josef Stribny - 0.2.3-2 +- Fix permissions + +* Tue Jul 15 2014 Josef Stribny - 0.2.3-1 +- Initial package diff --git a/sources b/sources index e69de29..acbe3e8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8d0e62d71f35e735f4ac074e78d9530a pundit-0.2.3.gem