Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:javagg
rubygem-puma
puma.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File puma.spec of Package rubygem-puma
%if 0%{?fedora}%{?rhel} <= 6 %global scl ruby193 %global scl_prefix ruby193- %endif %{!?scl:%global pkg_name %{name}} %{?scl:%scl_package rubygem-%{gem_name}} %global gem_name puma %global rubyabi 1.9.1 Summary: Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications Name: %{?scl:%scl_prefix}rubygem-%{gem_name} Version: 2.7.1 Release: 1%{?dist} Group: Development/Languages License: MIT URL: http://puma.io Source0: http://ruby.taobao.orggems/%{gem_name}-%{version}.gem %if 0%{?fedora} >= 19 Requires: ruby(release) %else Requires: %{?scl:%scl_prefix}ruby(abi) >= %{rubyabi} %endif Requires: %{?scl:%scl_prefix}ruby(rubygems) Requires: %{?scl:%scl_prefix}rubygem(rack) >= 1.1 Requires: %{?scl:%scl_prefix}rubygem(rack) < 2.0 %if 0%{?fedora}%{?rhel} <= 6 BuildRequires: %{?scl:%scl_prefix}build BuildRequires: scl-utils-build %endif %if 0%{?fedora} >= 19 BuildRequires: ruby(release) BuildRequires: rubypick %else BuildRequires: %{?scl:%scl_prefix}ruby(abi) >= %{rubyabi} %endif BuildRequires: %{?scl:%scl_prefix}rubygems-devel BuildRequires: %{?scl:%scl_prefix}ruby-devel >= 1.8.7 BuildRequires: openssl-devel Provides: %{?scl:%scl_prefix}rubygem(%{gem_name}) = %{version} %description Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. In order to get the best throughput, it is highly recommended that you use a Ruby implementation with real threads like Rubinius or JRuby. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %{?scl:scl enable %scl "} gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %{?scl:"} %build %{?scl:scl enable %scl - << \EOF} gem build %{gem_name}.gemspec %if 0%{?fedora} >= 19 %gem_install %else export CONFIGURE_ARGS="--with-cflags='%{optflags}' $CONFIGURE_ARGS" gem install -V \ --local \ --install-dir ./%{gem_dir}\ --bindir ./%{_bindir} \ --force \ --rdoc \ --ri \ --backtrace \ %{gem_name}-%{version}.gem %endif %{?scl:EOF} %clean rm -rf %{buildroot} %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ %if 0%{?fedora} >= 19 mkdir -p %{buildroot}%{gem_extdir_mri}/lib mv %{buildroot}%{gem_instdir}/lib/puma/puma_http11.so %{buildroot}%{gem_extdir_mri}/lib/ %endif %if 0%{?rhel} >= 6 mkdir -p %{buildroot}%{gem_extdir}/lib mv %{buildroot}%{gem_instdir}/lib/puma/puma_http11.so %{buildroot}%{gem_extdir}/lib/ %endif mkdir -p %{buildroot}%{_bindir} cp -a .%{_bindir}/* %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x # Remove build leftovers. rm -rf %{buildroot}%{gem_instdir}/.yard* %files %dir %{gem_instdir} %doc %{gem_instdir}/README.md %doc %{gem_instdir}/COPYING %doc %{gem_instdir}/LICENSE %{gem_instdir}/%{gem_name}.gemspec %exclude %{gem_instdir}/.* %{_bindir}/puma %{_bindir}/pumactl %{gem_instdir}/bin %{gem_libdir} %exclude %{gem_instdir}/ext %if 0%{?fedora} >= 19 %{gem_extdir_mri} %endif %if 0%{?rhel} >= 6 %{gem_extdir} %endif %exclude %{gem_cache} %{gem_spec} %{gem_instdir}/tools %files doc %doc %{gem_docdir} %{gem_instdir}/test %{gem_instdir}/Gemfile %doc %{gem_instdir}/History.txt %doc %{gem_instdir}/Manifest.txt %{gem_instdir}/Rakefile %doc %{gem_instdir}/docs %changelog * Sat Dec 07 2013 Alex Lee <lu.lee05@gmail.com> - 2.7.1-1 - Initial package
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor