File rubygem-activesupport-2_1.spec of Package rubygem-activesupport-2_1

#
# spec file for package rubygem-activesupport-2_1 (Version 2.1.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           rubygem-activesupport-2_1
Version:        2.1.1
Release:        2.<RELEASE24>
%define mod_name activesupport
#
Group:          Development/Languages/Ruby
License:        X11/MIT
#
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  rubygems_with_buildroot_patch
Requires:       rubygems >= 0.9.4
Provides:       rubygem-%{mod_name} = %{version}-%{release}
# Obsoletes:      rubygem-%{mod_name} < %{version}
#
Url:            http://rubyforge.org/projects/activesupport/
Source:         http://rubyforge.org/frs/download.php/42600/activesupport-2.1.1.gem
Source1:        rubygem-activesupport-2.1.2_CVE-2009-3009_activesupport.patch
#
Summary:        Utility classes and extension to the standard library

%description
Utility classes and extension to the standard library that were
required by Rails, but found of general use.



Authors:
--------
    rails development team

%prep

%build

%install
gem install --local --build-root=%{buildroot} %{S:0}
pushd %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
  patch -p0 < %{S:1}
popd

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_name}-%{version}.gem
%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/
%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_name}-%{version}.gemspec
%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/

%changelog
openSUSE Build Service is sponsored by