[rubygem-rack-protection] Initial import
Michal Fojtik
mfojtik at fedoraproject.org
Wed Jan 4 13:59:34 UTC 2012
commit 4ab9c22d68f3c8e697fd8bae5d36383837fa95d8
Author: Michal Fojtik <mi at mifo.sk>
Date: Wed Jan 4 14:59:22 2012 +0100
Initial import
.gitignore | 1 +
rubygem-rack-protection.spec | 75 ++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..defcf72 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rack-protection-1.2.0.gem
diff --git a/rubygem-rack-protection.spec b/rubygem-rack-protection.spec
new file mode 100644
index 0000000..04f9f18
--- /dev/null
+++ b/rubygem-rack-protection.spec
@@ -0,0 +1,75 @@
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname rack-protection
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+Summary: Ruby gem that protects against typical web attacks
+Name: rubygem-%{gemname}
+Version: 1.2.0
+Release: 2%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/rkh/rack-protection
+Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
+Requires: ruby(abi) = 1.8
+Requires: rubygems
+Requires: rubygem(rack)
+BuildRequires: rubygems
+BuildRequires: rubygem(rack)
+BuildRequires: rubygem(rspec-core)
+BuildRequires: rubygem(rack-test)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+This gem protects against typical web attacks.
+Should work for all Rack apps, including Rails.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+
+Requires: %{name} = %{version}-%{release}
+Requires: ruby(rubygems)
+
+%description doc
+This package contains documentation for %{name}.
+
+%prep
+%setup -q -c -T
+%{__mkdir_p} .%{gemdir}
+gem install --local --install-dir .%{gemdir} \
+ --force -V %{SOURCE0}
+rm .%{geminstdir}/%{gemname}.gemspec
+rm .%{gemdir}/cache/%{gemname}-%{version}.gem
+
+%build
+
+%check
+pushd .%{geminstdir}
+rspec spec
+popd
+
+%install
+%{__mkdir_p} %{buildroot}%{gemdir}
+cp -rv .%{gemdir}/* %{buildroot}%{gemdir}
+
+%files
+%dir %{geminstdir}
+%{geminstdir}/lib
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%doc %{geminstdir}/License
+
+%files doc
+%doc %{geminstdir}/README.md
+%{geminstdir}/Rakefile
+%{geminstdir}/spec
+%doc %{gemdir}/doc/%{gemname}-%{version}
+
+%changelog
+* Mon Jan 03 2012 Michal Fojtik <mfojtik at redhat.com> - 1.2.0-2
+- Fixed BR
+- Marked documentation file with doc tag
+- Changed the way how to run rspec tests
+
+* Mon Jan 02 2012 Michal Fojtik <mfojtik at redhat.com> - 1.2.0-1
+- Initial import
diff --git a/sources b/sources
index e69de29..db2995c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+07655617239266837416bdd11d1b5307 rack-protection-1.2.0.gem
More information about the scm-commits
mailing list