[rubygem-authlogic] Rebuilt for Ruby 1.9.3.
Vít Ondruch
vondruch at fedoraproject.org
Thu Feb 2 13:51:09 UTC 2012
commit f9037a7bfdc91f2f891767335b7df1cb19d0796f
Author: Vít Ondruch <vondruch at redhat.com>
Date: Thu Feb 2 14:51:02 2012 +0100
Rebuilt for Ruby 1.9.3.
rubygem-authlogic.spec | 73 +++++++++++++++++++++++++-----------------------
1 files changed, 38 insertions(+), 35 deletions(-)
---
diff --git a/rubygem-authlogic.spec b/rubygem-authlogic.spec
index 9c9934b..ad8856a 100644
--- a/rubygem-authlogic.spec
+++ b/rubygem-authlogic.spec
@@ -1,34 +1,31 @@
# 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 gem_name authlogic
-%global rubyabi 1.8
+%global rubyabi 1.9.1
Summary: A clean, simple, and unobtrusive ruby authentication solution
-Name: rubygem-%{gemname}
+Name: rubygem-%{gem_name}
Version: 3.0.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/binarylogic/authlogic
-Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem
+Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
Patch0: remove-unneeded-jeweler-dep.patch
Patch1: authlogic-activerecord-3.0.5.patch
-Requires: rubygems
+Requires: ruby(rubygems)
Requires: rubygem(activesupport)
Requires: rubygem(activerecord)
Requires: ruby(abi) = %{rubyabi}
-BuildRequires: rubygems
+BuildRequires: rubygems-devel
BuildRequires: rubygem(bcrypt-ruby)
-BuildRequires: rubygem(rake)
BuildRequires: rubygem(activerecord)
BuildRequires: rubygem(sqlite3)
-BuildRequires: rubygem(ruby-debug)
BuildRequires: rubygem(bundler)
+BuildRequires: rubygem(minitest)
BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
%description
A clean, simple, and unobtrusive ruby authentication solution.
@@ -43,16 +40,16 @@ Documentation for rubygem-authlogic
%prep
%setup -q -c -T
-mkdir -p .%{gemdir}
-gem install --local --install-dir .%{gemdir} --force --rdoc %{SOURCE0}
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} --force --rdoc %{SOURCE0}
-pushd .%{geminstdir}
+pushd .%{gem_instdir}
%patch0
%patch1
# these files shouldn't be here
-rm -f %{gemname}.gemspec .gitignore Gemfile.lock
+rm -f %{gem_name}.gemspec .gitignore Gemfile.lock
# zero length file / not used (test suite requires jeweler gem anyways)
rm -f test/session_test/credentials_test.rb
@@ -64,37 +61,43 @@ popd
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}%{gemdir}
-cp -a .%{gemdir}/* %{buildroot}%{gemdir}
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
%check
-pushd .%{geminstdir}
-rake test
+pushd .%{gem_instdir}
+# ruby debug is unneeded during tests
+sed -i 's|require "ruby-debug"|#require "ruby-debug"|' test/test_helper.rb
+find -type f -name *_test.rb | xargs testrb -Ilib:test
+popd
%files
%defattr(-, root, root, -)
-%dir %{geminstdir}/
-%{geminstdir}/generators/
-%{geminstdir}/init.rb
-%{geminstdir}/lib
-%{geminstdir}/rails
-%{geminstdir}/VERSION.yml
-%{geminstdir}/Gemfile
-%doc %{geminstdir}/LICENSE
-%doc %{geminstdir}/README.rdoc
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%dir %{gem_instdir}/
+%{gem_instdir}/generators/
+%{gem_instdir}/init.rb
+%{gem_libdir}
+%{gem_instdir}/rails
+%{gem_instdir}/VERSION.yml
+%{gem_instdir}/Gemfile
+%doc %{gem_instdir}/LICENSE
+%doc %{gem_instdir}/README.rdoc
+%{gem_cache}
+%{gem_spec}
%files doc
%defattr(-, root, root, -)
-%{gemdir}/doc/%{gemname}-%{version}
-%{geminstdir}/Rakefile
-%{geminstdir}/test
-%{geminstdir}/shoulda_macros
+%{gem_docdir}
+%{gem_instdir}/Rakefile
+%{gem_instdir}/test
+%{gem_instdir}/shoulda_macros
%changelog
+* Thu Feb 02 2012 Vít Ondruch <vondruch at redhat.com> - 3.0.3-3
+- Rebuilt for Ruby 1.9.3.
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
More information about the scm-commits
mailing list