|
|
6f11774 |
# Generated from actionpack-1.13.5.gem by gem2rpm -*- rpm-spec -*-
|
|
|
6f11774 |
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
6f11774 |
%define gemname actionpack
|
|
|
6f11774 |
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
6f11774 |
|
|
|
db07e32 |
%define rubyabi 1.8
|
|
|
db07e32 |
|
|
|
6f11774 |
Summary: Web-flow and rendering framework putting the VC in MVC
|
|
|
6f11774 |
Name: rubygem-%{gemname}
|
|
|
a0326c1 |
Epoch: 1
|
|
|
c4b9052 |
Version: 3.0.5
|
|
|
f52b8f4 |
Release: 3%{?dist}
|
|
|
6f11774 |
Group: Development/Languages
|
|
|
6f11774 |
License: MIT
|
|
|
6f11774 |
URL: http://www.rubyonrails.org
|
|
|
27692c1 |
Source0: http://rubygems.org/downloads/actionpack-%{version}.gem
|
|
|
27692c1 |
|
|
|
27692c1 |
# The actionpack gem doesn't ship with the upstream Rakefile
|
|
|
27692c1 |
Source1: http://github.com/rails/rails/raw/v%{version}/%{gemname}/Rakefile
|
|
|
27692c1 |
|
|
|
27692c1 |
# Also the actionpack gem doesn't ship with the test suite.
|
|
|
27692c1 |
# You may check it out like so
|
|
|
27692c1 |
# git clone http://github.com/rails/rails.git
|
|
|
27692c1 |
# cd rails/actionpack/
|
|
|
c4b9052 |
# git checkout v3.0.5
|
|
|
27692c1 |
# tar czvf actionpack-tests.tgz test/
|
|
|
27692c1 |
Source2: actionpack-tests.tgz
|
|
|
27692c1 |
|
|
|
27692c1 |
Patch0: rubygem-actionpack-enable-test.patch
|
|
|
27692c1 |
|
|
|
27692c1 |
# Remove a task which breaks the Rakefile due to the gemspec
|
|
|
27692c1 |
# not being present in the gem
|
|
|
27692c1 |
Patch1: actionpack-rakefile-fix.patch
|
|
|
27692c1 |
|
|
|
27692c1 |
# Removes code which breaks the test suite due to a
|
|
|
27692c1 |
# dependency on a file in the greater rails proj
|
|
|
27692c1 |
Patch2: actionpack-tests-fix.patch
|
|
|
27692c1 |
|
|
|
27692c1 |
Patch3: actionpack-downgrade-dependencies.patch
|
|
|
27692c1 |
|
|
|
27692c1 |
Patch4: actionpack-add-rack-mount-deps.patch
|
|
|
27692c1 |
|
|
|
f52b8f4 |
# CVE-2011-2197
|
|
|
f52b8f4 |
# http://weblog.rubyonrails.org/2011/6/8/potential-xss-vulnerability-in-ruby-on-rails-applications
|
|
|
f52b8f4 |
# FIXES: https://gist.github.com/b2ceb626fc2bcdfe497f
|
|
|
f52b8f4 |
# https://github.com/rails/rails/commit/c6503f48bd13c696fcc81f2a4a87b8cd7c009657
|
|
|
f52b8f4 |
# https://github.com/rails/rails/commit/2e757bc298cef715e5c56945161bbd84f2610729
|
|
|
f52b8f4 |
Patch5: cve-2011-2197-actionpack-fix.patch
|
|
|
f52b8f4 |
|
|
|
6f11774 |
Requires: rubygems
|
|
|
486c13f |
Requires: rubygem(activesupport) = %{version}
|
|
|
27692c1 |
Requires: rubygem(activemodel) = %{version}
|
|
|
27692c1 |
Requires: rubygem(builder) = 2.1.2
|
|
|
c4b9052 |
Requires: rubygem(i18n) >= 0.5.0
|
|
|
27692c1 |
Requires: rubygem(rack) >= 1.0.0
|
|
|
27692c1 |
Requires: rubygem(rack-test)
|
|
|
27692c1 |
Requires: rubygem(rack-mount)
|
|
|
27692c1 |
Requires: rubygem(tzinfo) >= 0.3.23
|
|
|
eb9710a |
Requires: rubygem(erubis) >= 2.6.5
|
|
|
eb9710a |
Requires: rubygem(erubis) < 2.7.0
|
|
|
db07e32 |
Requires: ruby(abi) = %{rubyabi}
|
|
|
6f11774 |
BuildRequires: rubygems
|
|
|
27692c1 |
BuildRequires: rubygem(rake)
|
|
|
27692c1 |
BuildRequires: rubygem(mocha) >= 0.9.7
|
|
|
27692c1 |
BuildRequires: rubygem(activesupport) = %{version}
|
|
|
27692c1 |
BuildRequires: rubygem(activemodel) = %{version}
|
|
|
27692c1 |
BuildRequires: rubygem(activerecord) = %{version}
|
|
|
27692c1 |
BuildRequires: rubygem(sqlite3)
|
|
|
27692c1 |
BuildRequires: rubygem(builder) = 2.1.2
|
|
|
c4b9052 |
BuildRequires: rubygem(i18n) >= 0.5.0
|
|
|
27692c1 |
BuildRequires: rubygem(rack) >= 1.0.0
|
|
|
27692c1 |
BuildRequires: rubygem(rack-test)
|
|
|
27692c1 |
BuildRequires: rubygem(rack-mount)
|
|
|
27692c1 |
BuildRequires: rubygem(tzinfo) >= 0.3.23
|
|
|
eb9710a |
BuildRequires: rubygem(erubis) >= 2.6.5
|
|
|
eb9710a |
BuildRequires: rubygem(erubis) < 2.7.0
|
|
|
6f11774 |
BuildArch: noarch
|
|
|
6f11774 |
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 |
|
|
|
6f11774 |
%prep
|
|
|
6b00f91 |
%setup -q -c -T
|
|
|
6b00f91 |
mkdir -p .%{gemdir}
|
|
|
6b00f91 |
gem install --local --install-dir .%{gemdir} \
|
|
|
6b00f91 |
-V \
|
|
|
6f11774 |
--force --rdoc %{SOURCE0}
|
|
|
6f11774 |
|
|
|
a647a23 |
# forcely modify gemspec for rack dependency
|
|
|
a647a23 |
sed -i -e '/rack/s|~>|>=|' \
|
|
|
27692c1 |
./%{gemdir}/specifications/*gemspec
|
|
|
27692c1 |
|
|
|
27692c1 |
# move the Rakefile in place
|
|
|
27692c1 |
cp %{SOURCE1} .%{geminstdir}
|
|
|
27692c1 |
|
|
|
27692c1 |
# move the tests into place
|
|
|
27692c1 |
tar xzvf %{SOURCE2} -C .%{geminstdir}
|
|
|
a647a23 |
|
|
|
db07e32 |
pushd .%{geminstdir}
|
|
|
27692c1 |
%patch0 -p0
|
|
|
c4b9052 |
%patch1 -p0
|
|
|
27692c1 |
%patch2 -p0
|
|
|
f52b8f4 |
%patch5 -p0
|
|
|
db07e32 |
|
|
|
db07e32 |
# create missing symlink
|
|
|
db07e32 |
pushd test/fixtures/layout_tests/layouts/
|
|
|
db07e32 |
ln -sf ../../symlink_parent/ symlinked
|
|
|
db07e32 |
popd
|
|
|
db07e32 |
|
|
|
db07e32 |
popd
|
|
|
db07e32 |
|
|
|
27692c1 |
pushd .%{gemdir}
|
|
|
27692c1 |
%patch3 -p0
|
|
|
27692c1 |
%patch4 -p0
|
|
|
27692c1 |
|
|
|
a923fd1 |
# Remove backup files
|
|
|
db07e32 |
# No! these are needed for rake test
|
|
|
db07e32 |
# find ./%{geminstdir} -type f -name "*~" -delete
|
|
|
a923fd1 |
|
|
|
a923fd1 |
# Delete zero-length files
|
|
|
db07e32 |
# No! these are also needed for rake test
|
|
|
db07e32 |
# find ./%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
|
|
|
a923fd1 |
|
|
|
a923fd1 |
# Fix anything executable that does not have a shebang
|
|
|
6b00f91 |
for file in `find ./%{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
|
|
|
6b00f91 |
for file in `find ./%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
|
|
|
a923fd1 |
[ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
|
|
|
a923fd1 |
done
|
|
|
6f11774 |
|
|
|
6b00f91 |
%build
|
|
|
6b00f91 |
|
|
|
6b00f91 |
%install
|
|
|
6b00f91 |
mkdir -p %{buildroot}%{gemdir}
|
|
|
6b00f91 |
cp -a .%{gemdir}/* %{buildroot}%{gemdir}
|
|
|
6b00f91 |
|
|
|
6b00f91 |
|
|
|
6f11774 |
%clean
|
|
|
6f11774 |
rm -rf %{buildroot}
|
|
|
6f11774 |
|
|
|
6b00f91 |
%check
|
|
|
c0987de |
# Don't pollute /tmp, it won't be cleaned up after build
|
|
|
c0987de |
rm -rf ./tmpdir
|
|
|
c0987de |
mkdir ./tmpdir
|
|
|
c0987de |
export TMPDIR=$(pwd)/tmpdir
|
|
|
c0987de |
|
|
|
6b00f91 |
pushd .%{geminstdir}
|
|
|
6b00f91 |
|
|
|
6b00f91 |
# dependency loop
|
|
|
db07e32 |
# depends on actionmailer, while actionmailer has BR(check): actionpack
|
|
|
6b00f91 |
mv test/controller/assert_select_test.rb \
|
|
|
6b00f91 |
test/controller/assert_select_test.rb.skip
|
|
|
6b00f91 |
|
|
|
db07e32 |
# Now as far as I checked rake test succeeds.
|
|
|
db07e32 |
rake test --trace
|
|
|
6b00f91 |
|
|
|
6f11774 |
%files
|
|
|
6f11774 |
%defattr(-, root, root, -)
|
|
|
6f11774 |
%dir %{geminstdir}
|
|
|
7d84d5c |
%doc %{geminstdir}/CHANGELOG
|
|
|
6f11774 |
%{geminstdir}/lib
|
|
|
6f11774 |
%doc %{geminstdir}/MIT-LICENSE
|
|
|
e8b4c1a |
%{geminstdir}/Rakefile
|
|
|
27692c1 |
%doc %{geminstdir}/README.rdoc
|
|
|
6b00f91 |
%doc %{geminstdir}/test/
|
|
|
6f11774 |
%doc %{gemdir}/doc/%{gemname}-%{version}
|
|
|
6f11774 |
%{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
6f11774 |
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
6f11774 |
|
|
|
6f11774 |
|
|
|
6f11774 |
%changelog
|
|
|
f52b8f4 |
* Thu Jun 16 2011 Mo Morsi <mmorsi@redhat.com> - 1:3.0.5-3
|
|
|
f52b8f4 |
- Include fix for CVE-2011-2197
|
|
|
f52b8f4 |
|
|
|
c4b9052 |
* Fri Mar 25 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.5-1
|
|
|
c4b9052 |
- Updated to ActionPack 3.0.5
|
|
|
c4b9052 |
|
|
|
eb9710a |
* Wed Feb 16 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.3-4
|
|
|
eb9710a |
- Relaxed erubis dependency
|
|
|
eb9710a |
- Fixed build compatibility with RubyGems 1.5
|
|
|
eb9710a |
|
|
|
e8b823b |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.3-3
|
|
|
e8b823b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
e8b823b |
|
|
|
8e33379 |
* Mon Feb 07 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-2
|
|
|
8e33379 |
- changelog fixes
|
|
|
8e33379 |
|
|
|
27692c1 |
* Mon Jan 10 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-1
|
|
|
27692c1 |
- Update to rails 3
|
|
|
e8b4c1a |
|
|
|
8e33379 |
* Thu Aug 12 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-2
|
|
|
8e33379 |
- Bumped actionpack rack dependency to version 1.1.0
|
|
|
8e33379 |
|
|
|
8e33379 |
* Mon Aug 09 2010 Mohammed Morsi <mmorsi@redhat.com> - 1:2.3.8-1
|
|
|
8e33379 |
- Update to 2.3.8
|
|
|
8e33379 |
|
|
|
c0987de |
* Mon May 17 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:2.3.5-2
|
|
|
c0987de |
- Set TMPDIR environment at %%check to make it sure all files created
|
|
|
c0987de |
during rpmbuild are cleaned up
|
|
|
c0987de |
|
|
|
f073f4b |
* Thu Jan 28 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:2.3.5-1
|
|
|
f073f4b |
- Update to 2.3.5
|
|
|
f073f4b |
|
|
|
a647a23 |
* Fri Jan 8 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 1:2.3.4-4
|
|
|
a647a23 |
- Workaround patch to fix for rack 1.1.0 dependency (bug 552972)
|
|
|
a647a23 |
|
|
|
a647a23 |
* Thu Dec 10 2009 David Lutterkort <lutter@redhat.com> - 1:2.3.4-3
|
|
|
a647a23 |
- Patch for CVE-2009-4214 (bz 542786)
|
|
|
a647a23 |
|
|
|
a0326c1 |
* Wed Oct 7 2009 David Lutterkort <lutter@redhat.com> - 1:2.3.4-2
|
|
|
a0326c1 |
- Bump Epoch to ensure upgrade path from F-11
|
|
|
a0326c1 |
|
|
|
db07e32 |
* Sun Sep 20 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.4-1
|
|
|
db07e32 |
- Update to 2.3.4 (bug 520843, CVE-2009-3009)
|
|
|
db07e32 |
- Fix tests
|
|
|
db07e32 |
|
|
|
6b00f91 |
* Sun Aug 2 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.3-1
|
|
|
6b00f91 |
- 2.3.3
|
|
|
6b00f91 |
- Enable test (some tests fail, please someone investigate!!)
|
|
|
6b00f91 |
|
|
|
9d6a323 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.2-2
|
|
|
9d6a323 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
9d6a323 |
|
|
|
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
|