[rubygem-authlogic/f13/master] Initial import of rubygem-authlogic

Mohammed Morsi mmorsi at fedoraproject.org
Wed Oct 13 19:07:48 UTC 2010


commit 3807b5633f305a0831883d610f13902fab169fb6
Author: Mohammed Morsi <mmorsi at redhat.com>
Date:   Wed Oct 13 15:07:46 2010 -0400

    Initial import of rubygem-authlogic

 .gitignore                        |    1 +
 remove-unneeded-jeweler-dep.patch |   32 +++++++++++
 rubygem-authlogic.spec            |  108 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 4 files changed, 142 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ef43194 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/authlogic-2.1.6.gem
diff --git a/remove-unneeded-jeweler-dep.patch b/remove-unneeded-jeweler-dep.patch
new file mode 100644
index 0000000..523d89e
--- /dev/null
+++ b/remove-unneeded-jeweler-dep.patch
@@ -0,0 +1,32 @@
+--- Rakefile.orig	2010-10-12 13:24:27.000000000 -0400
++++ Rakefile	2010-10-12 13:28:40.000000000 -0400
+@@ -1,21 +1,6 @@
+ require 'rubygems'
+ require 'rake'
+ 
+-begin
+-  require 'jeweler'
+-  Jeweler::Tasks.new do |gem|
+-    gem.name = "authlogic"
+-    gem.summary = "A clean, simple, and unobtrusive ruby authentication solution."
+-    gem.email = "bjohnson at binarylogic.com"
+-    gem.homepage = "http://github.com/binarylogic/authlogic"
+-    gem.authors = ["Ben Johnson of Binary Logic"]
+-    gem.add_dependency "activesupport"
+-  end
+-  Jeweler::GemcutterTasks.new
+-rescue LoadError
+-  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+-end
+-
+ require 'rake/testtask'
+ Rake::TestTask.new(:test) do |test|
+   test.libs << 'test'
+@@ -36,6 +21,6 @@ rescue LoadError
+   end
+ end
+ 
+-task :test => :check_dependencies
++task :test
+ 
+ task :default => :test
diff --git a/rubygem-authlogic.spec b/rubygem-authlogic.spec
new file mode 100644
index 0000000..c4d685b
--- /dev/null
+++ b/rubygem-authlogic.spec
@@ -0,0 +1,108 @@
+# Generated from authlogic-2.1.5.gem by gem2rpm -*- rpm-spec -*-
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname authlogic
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+%global rubyabi 1.8
+
+Summary: A clean, simple, and unobtrusive ruby authentication solution
+Name: rubygem-%{gemname}
+Version: 2.1.6
+Release: 3%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/binarylogic/authlogic
+Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
+Patch0:  remove-unneeded-jeweler-dep.patch
+Requires: rubygems
+Requires: rubygem(activesupport)
+Requires: rubygem(activerecord)
+Requires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems
+BuildRequires: rubygem(bcrypt-ruby)
+BuildRequires: rubygem(rake)
+BuildRequires: rubygem(activerecord)
+BuildRequires: rubygem(sqlite3-ruby)
+BuildRequires: rubygem(ruby-debug)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+A clean, simple, and unobtrusive ruby authentication solution.
+
+%package doc
+Summary: Authlogic gem documentation
+License: MIT
+
+%description doc
+Documentation for rubygem-authlogic
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gemdir}
+gem install --local --install-dir .%{gemdir} \
+            --force --rdoc %{SOURCE0}
+
+# this file shouldn't be here
+rm -f .%{geminstdir}/%{gemname}.gemspec .%{geminstdir}/.gitignore
+
+# zero length file / not used (test suite requires jeweler gem anyways)
+rm -f .%{geminstdir}/test/session_test/credentials_test.rb
+
+pushd .%{geminstdir}
+%patch0
+popd
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* %{buildroot}%{gemdir}
+
+%clean
+rm -rf %{buildroot}
+
+%check
+pushd .%{geminstdir}
+rake test
+
+%files
+%defattr(-, root, root, -)
+%dir %{geminstdir}/
+%{geminstdir}/generators/
+%{geminstdir}/init.rb
+%{geminstdir}/lib
+%{geminstdir}/rails
+%{geminstdir}/VERSION.yml
+%doc %{geminstdir}/LICENSE
+%doc %{geminstdir}/README.rdoc
+%doc %{geminstdir}/CHANGELOG.rdoc
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+%files doc
+%defattr(-, root, root, -)
+%{gemdir}/doc/%{gemname}-%{version}
+%{geminstdir}/Rakefile
+%{geminstdir}/test
+%{geminstdir}/shoulda_macros
+
+%changelog
+* Tue Oct 12 2010 Mohammed Morsi <mmorsi at redhat.com> - 2.1.6-3
+- removed patch0 as ruby-debug is now in fedora
+
+* Tue Oct 12 2010 Mohammed Morsi <mmorsi at redhat.com> - 2.1.6-2
+- added bcrypt-ruby and rake BRs
+- removed BuildRoot tag
+- removed "--no-ri" flag to gem install
+- created doc subpackage
+- added patch1 to remove jeweler dep which is not needed
+
+* Tue Aug 10 2010 Mohammed Morsi <mmorsi at redhat.com> - 2.1.6-1
+- Updated to version 2.1.6
+- Minor cleanup based on feedback
+- Added patch0 to remove unused ruby-debug dependency
+
+* Tue Aug 03 2010 Mohammed Morsi <mmorsi at redhat.com> - 2.1.5-1
+- Initial package
diff --git a/sources b/sources
index e69de29..d1585a4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fa78c152c731a883cb886aa06358bb2d  authlogic-2.1.6.gem


More information about the scm-commits mailing list