Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.7
rubygem-rack-1
rubygem-rack-1.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-rack-1.spec of Package rubygem-rack-1
%global gem_name rack # There is circular dependency between thin and rack. %global bootstrap_thin 0 # rubygem-bacon missing for epel7 # https://bugzilla.redhat.com/show_bug.cgi?id=1138661 %if 0%{?el7} %global enable_checks 0 %else %global enable_checks 1 %endif Name: rubygem-%{gem_name}-1 Summary: Common API for connecting web frameworks, web servers and layers of software # Introduce Epoch (related to bug 552972) Epoch: 1 Version: 1.6.4 Release: 1%{?dist} Group: Development/Languages # lib/rack/backports/uri/* are taken from Ruby which is (Ruby or BSD) # lib/rack/show{status,exceptions}.rb contains snippets from Django under BSD license. License: MIT and (Ruby or BSD) and BSD URL: http://rack.github.io/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Fix test suite on version 1.6.4 # https://github.com/rack/rack/commit/221d4fd.patch Patch0: rubygem-rack-1.6.4-fix-test.patch %if 0%{?fc20} || 0%{?el6} || 0%{?el7} Requires: ruby(rubygems) Requires: ruby(release) %endif BuildRequires: ruby BuildRequires: rubygems-devel %if 0%{?enable_checks} BuildRequires: rubygem(bacon) BuildRequires: memcached BuildRequires: rubygem(memcache-client) %endif %if 0%{bootstrap_thin} < 1 BuildRequires: rubygem(thin) %endif # Seems that lighttpd test depends on rubygem(fcgi), which is not in Fedora, # if it will ever be. #BuildRequires: lighttpd-fastcgi BuildArch: noarch %if 0%{?fc20} || 0%{?el6} || 0%{?el7} Provides: rubygem(%{gem_name}) = %{version} %endif Provides: bundled(okjson) = 20150104 Conflicts: rubygem-%{gem_name} %description Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{epoch}:%{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -c -T %gem_install -n %{SOURCE0} %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x # Fix anything executable that does not have a shebang for file in `find %{buildroot}/%{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 %{buildroot}%{gem_instdir} -type f`; do [ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod -v 755 $file done %if 0%{?enable_checks} %check pushd .%{gem_instdir} # Get temporary PID file name and start memcached daemon. PID=%(mktemp) memcached -d -P "$PID" patch -p1 < %{PATCH0} bacon -Ilib --automatic --quiet # Kill memcached daemon. kill -TERM $(< "$PID") popd %endif #end of checks. %files %dir %{gem_instdir} %license %{gem_instdir}/COPYING %{gem_libdir} %{gem_instdir}/bin %{_bindir}/rackup %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/README.rdoc %doc %{gem_instdir}/KNOWN-ISSUES %doc %{gem_instdir}/HISTORY.md %{gem_instdir}/%{gem_name}.gemspec %{gem_instdir}/Rakefile %{gem_instdir}/SPEC %doc %{gem_instdir}/example %{gem_instdir}/test %doc %{gem_instdir}/contrib
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