Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.7
rubygem-actionpack-42
rubygem-actionpack-42.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-actionpack-42.spec of Package rubygem-actionpack-42
# Generated from actionpack-1.13.5.gem by gem2rpm -*- rpm-spec -*- %global gem_name actionpack %global bootstrap 1 Summary: Web-flow and rendering framework putting the VC in MVC Name: rubygem-%{gem_name}-42 Epoch: 1 Version: 4.2.6 Release: 2%{?dist} Group: Development/Languages License: MIT URL: http://www.rubyonrails.org Source0: http://rubygems.org/downloads/actionpack-%{version}.gem # Also the actionpack gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git # cd rails/actionpack/ # git checkout v4.1.0 # tar czvf actionpack-4.2.6-tests.tgz test/ Source2: actionpack-%{version}-tests.tgz # Let's keep Requires and BuildRequires sorted alphabeticaly BuildRequires: rubygems-devel %if 0%{bootstrap} < 1 BuildRequires: rubygem(activemodel) = %{version} BuildRequires: rubygem(activerecord) = %{version} BuildRequires: rubygem(activesupport) = %{version} BuildRequires: rubygem(actionview) = %{version} BuildRequires: rubygem(railties) = %{version} BuildRequires: rubygem(journey) >= 1.0.4 BuildRequires: rubygem(journey) < 1.1 BuildRequires: rubygem(minitest) BuildRequires: rubygem(mocha) >= 0.9.8 BuildRequires: rubygem(rack) >= 1.6 BuildRequires: rubygem(rack) < 1.7 BuildRequires: rubygem(rack-cache) >= 1.2 BuildRequires: rubygem(rack-cache) < 2 BuildRequires: rubygem(rack-test) >= 0.6.2 BuildRequires: rubygem(rack-test) < 0.7 BuildRequires: rubygem(sqlite3) BuildRequires: rubygem(therubyracer) BuildRequires: rubygem(tzinfo) BuildRequires: rubygem(uglifier) %endif BuildArch: noarch %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. %package doc Summary: Documentation for %{name} Group: Documentation Requires:%{name} = %{epoch}:%{version}-%{release} %description doc Documentation for %{name} %prep %setup -q -c -T %gem_install -n %{SOURCE0} # move the tests into place tar xzvf %{SOURCE2} -C .%{gem_instdir} # Remove backup files # No! these are needed for rake test # find ./%%{gem_instdir} -type f -name "*~" -delete # Delete zero-length files # No! these are also needed for rake test # find ./%%{gem_instdir} -type f -size 0c -exec rm -rvf {} \; # Fix anything executable that does not have a shebang for file in `find ./%{gem_instdir} -type f -perm /a+x`; do [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file done # Find files with a shebang that do not have executable permissions for file in `find ./%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file done %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir} %clean rm -rf %{buildroot} %if 0%{bootstrap} < 1 %check pushd .%{gem_instdir} # load_path is not available, remove its require. sed -i '1,2d' test/abstract_unit.rb # fix rack/test requirement sed -i "1i\require 'rack/test'" lib/action_controller/metal/strong_parameters.rb ruby -w -I.:lib:test -rtimeout -e 'Dir.glob("test/{abstract,controller,dispatch,template}/**/*_test.rb").each {|t| require t}' popd %endif %files %dir %{gem_instdir} %doc %{gem_instdir}/MIT-LICENSE %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/README.rdoc %{gem_instdir}/test/
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor