6f11774
# Generated from actionpack-1.13.5.gem by gem2rpm -*- rpm-spec -*-
6f11774
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
6f11774
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
6f11774
%define gemname actionpack
6f11774
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
6f11774
d285636
Summary:        Web-flow and rendering framework putting the VC in MVC
d285636
Name:           rubygem-%{gemname}
d285636
Epoch:          1
d285636
Version:        2.3.2
d285636
Release:        3%{?dist}
d285636
Group:          Development/Languages
d285636
License:        MIT
d285636
URL:            http://www.rubyonrails.org
d285636
Source0:        http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
d285636
Patch0:         rubygem-actionpack-2.3.x-CVE-2009-3009.patch
d285636
# Ticket #2200 upstream. see also:
d285636
# https://rails.lighthouseapp.com/projects/8994/tickets/2200-session-support-broken#ticket-2200-23
d285636
Patch1:         rubygem-actionpack-2.3.2-fix-reset_session.patch
d285636
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d285636
Requires:       rubygems
d285636
Requires:       rubygem(activesupport) = %{version}
d285636
BuildRequires:  rubygems
d285636
BuildArch:      noarch
d285636
Provides:       rubygem(%{gemname}) = %{version}
6f11774
6f11774
%description
6f11774
Eases web-request routing, handling, and response as a half-way front,
6f11774
half-way page controller. Implemented with specific emphasis on enabling easy
6f11774
unit/integration testing that doesn't require a browser.
6f11774
6f11774
%prep
6f11774
6f11774
%build
6f11774
6f11774
%install
6f11774
rm -rf %{buildroot}
6f11774
mkdir -p %{buildroot}%{gemdir}
6f11774
gem install --local --install-dir %{buildroot}%{gemdir} \
6f11774
            --force --rdoc %{SOURCE0}
6f11774
01c17e8
pushd %{buildroot}%{geminstdir}
d285636
patch -s -p2 < %{PATCH0}
d285636
patch -s -p2 < %{PATCH1}
01c17e8
popd
01c17e8
a923fd1
# Remove backup files
a923fd1
find %{buildroot}/%{geminstdir} -type f -name "*~" -delete
a923fd1
a923fd1
# Delete zero-length files
a923fd1
find %{buildroot}/%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
a923fd1
a923fd1
# Fix anything executable that does not have a shebang
a923fd1
for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
a923fd1
    [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
a923fd1
done
a923fd1
a923fd1
# Find files with a shebang that do not have executable permissions
a923fd1
for file in `find %{buildroot}/%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
a923fd1
    [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
a923fd1
done
6f11774
6f11774
%clean
6f11774
rm -rf %{buildroot}
6f11774
6f11774
%files
6f11774
%defattr(-, root, root, -)
6f11774
%dir %{geminstdir}
7d84d5c
%doc %{geminstdir}/CHANGELOG
6f11774
%{geminstdir}/install.rb
6f11774
%{geminstdir}/lib
6f11774
%doc %{geminstdir}/MIT-LICENSE
6f11774
%{geminstdir}/Rakefile
6f11774
%doc %{geminstdir}/README
6f11774
%doc %{geminstdir}/RUNNING_UNIT_TESTS
6f11774
%{geminstdir}/test/
6f11774
%doc %{gemdir}/doc/%{gemname}-%{version}
6f11774
%{gemdir}/cache/%{gemname}-%{version}.gem
6f11774
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
6f11774
6f11774
6f11774
%changelog
d285636
* Wed Oct 21 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 1:2.3.2-3
d285636
- Fix activerecord test for reset_session (#2200 upstream)
d285636
29ba396
* Wed Oct  7 2009 David Lutterkort <lutter@redhat.com> - 1:2.3.2-2
29ba396
- Bump epoch; rails is not updatable across versions (bz 520843)
29ba396
01c17e8
* Wed Sep 23 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.3-2
01c17e8
- Patch for CVE-2009-3009 (bug 520843)
01c17e8
082828c
* Tue Jul 28 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.3-1
082828c
- New upstream version
082828c
a923fd1
* Mon Mar 16 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 2.3.2-1
a923fd1
- New upstream version
a923fd1
6196891
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
6196891
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6196891
d324855
* Tue Dec 23 2008 David Lutterkort <lutter@redhat.com> - 2.2.2-1
d324855
- New version
d324855
23b1576
* Tue Sep 16 2008 David Lutterkort <dlutter@redhat.com> - 2.1.1-1
23b1576
- New version (fixes CVE-2008-4094)
23b1576
ad1a75b
* Thu Jul 31 2008 Michael Stahnke <stahnma@fedoraproject.org> - 2.1.0-1
ad1a75b
- New Upstream
23b1576
486c13f
* Tue Apr  8 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-2
486c13f
- Fix dependency
486c13f
d96bd35
* Mon Apr 07 2008 David Lutterkort <dlutter@redhat.com> - 2.0.2-1
d96bd35
- New version
d96bd35
7d84d5c
* Mon Dec 10 2007 David Lutterkort <dlutter@redhat.com> - 2.0.1-1
7d84d5c
- New version
7d84d5c
6f11774
* Thu Nov 29 2007 David Lutterkort <dlutter@redhat.com> - 1.13.6-1
6f11774
- New version
6f11774
6f11774
* Tue Nov 14 2007 David Lutterkort <dlutter@redhat.com> - 1.13.5-2
6f11774
- Fix buildroot; mark docs in geminstdir cleanly
6f11774
6f11774
* Tue Oct 30 2007 David Lutterkort <dlutter@redhat.com> - 1.13.5-1
6f11774
- Initial package