# 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: 4%{?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 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} # 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 * 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