8a02e26
# Generated from activerecord-1.15.5.gem by gem2rpm -*- rpm-spec -*-
8a02e26
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
8a02e26
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
8a02e26
%define gemname activerecord
8a02e26
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
8a02e26
8a02e26
Summary: Implements the ActiveRecord pattern for ORM
8a02e26
Name: rubygem-%{gemname}
a588740
Version: 2.1.1
62594fe
Release: 1%{?dist}
8a02e26
Group: Development/Languages
8a02e26
License: MIT
8a02e26
URL: http://www.rubyonrails.org
8a02e26
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
8a02e26
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8a02e26
Requires: rubygems
31182b1
Requires: rubygem(activesupport) = %{version}
8a02e26
BuildRequires: rubygems
8a02e26
BuildArch: noarch
8a02e26
Provides: rubygem(%{gemname}) = %{version}
8a02e26
8a02e26
%description
8a02e26
Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database
8a02e26
tables and classes together for business objects, like Customer or
8a02e26
Subscription, that can find, save, and destroy themselves without resorting to
8a02e26
manual SQL.
8a02e26
8a02e26
8a02e26
%prep
8a02e26
8a02e26
%build
8a02e26
8a02e26
%install
8a02e26
rm -rf %{buildroot}
8a02e26
mkdir -p %{buildroot}%{gemdir}
8a02e26
gem install --local --install-dir %{buildroot}%{gemdir} \
8a02e26
            --force --rdoc %{SOURCE0}
8a02e26
8a02e26
%clean
8a02e26
rm -rf %{buildroot}
8a02e26
8a02e26
%files
8a02e26
%defattr(-, root, root, -)
8a02e26
%dir %{geminstdir}
8a02e26
%doc %{geminstdir}/CHANGELOG
8a02e26
%doc %{geminstdir}/examples
8a02e26
%{geminstdir}/install.rb
8a02e26
%doc %{geminstdir}/lib
8a02e26
%{geminstdir}/Rakefile
8a02e26
%doc %{geminstdir}/README
8a02e26
%doc %{geminstdir}/RUNNING_UNIT_TESTS
8a02e26
%{geminstdir}/test
8a02e26
8a02e26
%doc %{gemdir}/doc/%{gemname}-%{version}
8a02e26
%{gemdir}/cache/%{gemname}-%{version}.gem
8a02e26
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
8a02e26
8a02e26
8a02e26
%changelog
a588740
* Tue Sep 16 2008 David Lutterkort <dlutter@redhat.com> - 2.1.1-2
a588740
- New version (fixes CVE-2008-4094)
a588740
62594fe
* Thu Jul 31 2008 Michael Stahnke <stahnma@fedoraproject.org> - 2.1.0-1
62594fe
- New Upstream
62594fe
31182b1
* Tue Apr  8 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-2
31182b1
- Fix dependency
31182b1
db0096e
* Mon Apr 07 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-1
db0096e
- New version
db0096e
279fc74
* Mon Dec 10 2007 David Lutterkort <dlutter@redhat.com> - 2.0.1-1
279fc74
- New version
279fc74
8a02e26
* Thu Nov 29 2007 David Lutterkort <dlutter@redhat.com> - 1.15.6-1
8a02e26
- New version
8a02e26
8a02e26
* Tue Nov 14 2007 David Lutterkort <dlutter@redhat.com> - 1.15.5-2
8a02e26
- Fix buildroot
8a02e26
- Properly mark docs in geminstdir
8a02e26
8a02e26
* Tue Oct 30 2007 David Lutterkort <dlutter@redhat.com> - 1.15.5-1
8a02e26
- Initial package