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

#
# spec file for package rubygem-actionpack-2_1 (Version 2.1.1)
#
# Copyright (c) 2010 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-actionpack-2_1
Version:        2.1.1
Release:        2.<RELEASE25>
%define mod_name actionpack
#
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}
BuildRequires:  rubygem-activesupport-2_1 = 2.1.1
Requires:       rubygem-activesupport-2_1 = 2.1.1
#
Url:            http://rubyforge.org/projects/actionpack
Source:         http://rubyforge.org/frs/download.php/42606/actionpack-2.1.1.gem
Source1:        rubygem-actionpack-2.1.2_CVE-2009-3009_actionpack.patch
Source2:        rubygem-actionpack-2.1.2_timing_weakness.patch
Source3:        bfe032858077bb2946abe25e95e485ba6da86bd5.patch
Source4:        f1ad8b48aae3ee26613b3e77bc0056e120096846.patch
# package it for the sake of easier patching
Source99:       series
#
Summary:        Eases web-request routing, handling, and response

%description
Eases web-request routing, handling, and response as a half-way front,
half-way page controller. Implemented with specific emphasis on
enabling easy unit/integration testing that doesn't require a browser.



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}
  patch -p0 < %{S:2}
  patch -p0 < %{S:3}
  patch -p0 < %{S:4}
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