# 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: 3.0.3 Release: 1%{?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 Patch1: authlogic-activerecord-3.0.5.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) BuildRequires: rubygem(ruby-debug) BuildRequires: rubygem(bundler) BuildArch: noarch Provides: rubygem(%{gemname}) = %{version} %description A clean, simple, and unobtrusive ruby authentication solution. %package doc Summary: Authlogic gem documentation License: MIT Requires:%{name} = %{version}-%{release} %description doc Documentation for rubygem-authlogic %prep %setup -q -c -T mkdir -p .%{gemdir} gem install --local --install-dir .%{gemdir} --force --rdoc %{SOURCE0} pushd .%{geminstdir} %patch0 %patch1 # these files shouldn't be here rm -f %{gemname}.gemspec .gitignore Gemfile.lock # zero length file / not used (test suite requires jeweler gem anyways) rm -f test/session_test/credentials_test.rb popd %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} cp -a .%{gemdir}/* %{buildroot}%{gemdir} %check pushd .%{geminstdir} rake test %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 %files doc %defattr(-, root, root, -) %{gemdir}/doc/%{gemname}-%{version} %{geminstdir}/Rakefile %{geminstdir}/test %{geminstdir}/shoulda_macros %changelog * Wed Jul 06 2011 Chris Lalancette <clalance@redhat.com> - 3.0.3-1 - Update to upstream 3.0.3 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Oct 13 2010 Mohammed Morsi <mmorsi@redhat.com> - 2.1.6-4 - added missing "Requires: %{name}" needed in docs subpackage * Tue Oct 12 2010 Mohammed Morsi <mmorsi@redhat.com> - 2.1.6-3 - removed patch0 as ruby-debug is now in fedora * Tue Oct 12 2010 Mohammed Morsi <mmorsi@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@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@redhat.com> - 2.1.5-1 - Initial package