File rubygem-puma.spec of Package rubygem-puma.16022
#
# spec file for package rubygem-puma
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#
# This file was generated with a gem2rpm.yml and not just plain gem2rpm.
# All sections marked as MANUAL, license headers, summaries and descriptions
# can be maintained in that file. Please consult this file before editing any
# of those fields
#
Name: rubygem-puma
Version: 3.11.4
Release: 0
%define mod_name puma
%define mod_full_name %{mod_name}-%{version}
# MANUAL
BuildRequires: openssl-devel
# /MANUAL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{rubydevel >= 1.8.7}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: %{rubygem rdoc > 3.10}
BuildRequires: ruby-macros >= 5
BuildRequires: update-alternatives
# backported from https://github.com/puma/puma/commit/e142b9f043f2abc57fad0475fc31080443bb66e4
Patch0: add-support-for-disabling-TLSv1.0.patch
# backported from https://github.com/puma/puma/pull/1836/commits/599dc33c2e5855a089b24033081b62a18ec4c3be
Patch1: 0001-OpenSSL-1.1.1-updates-add-no_tlsv1_1.patch
# backported from https://github.com/puma/puma/pull/1836/commits/35dbec0eaac18cf305d1c078a81f7d5cc21bc86f
Patch2: 0002-add-no_tlsv1_1-to-binder-config-etc.patch
# backported from https://github.com/puma/puma/commit/c2f6803d0097cb0501bc8f82780005dfe4babbec
Patch3: 0003-Add-support-for-specifying-ssl-ciphers-via-binds-par.patch
# backported from https://github.com/puma/puma/commit/06053e60908074bb38293d4449ea261cb009b53e
Patch4: CVE-2019-16770.patch
# backported from https://github.com/puma/puma/commit/e79a5b28f618fa04b7060c87f0da34d299462416
Patch5: CVE-2020-5247.patch
# backported from https://github.com/puma/puma/commit/089df0727ffab1b3b69f2e6da40597c52e346013
Patch6: CVE-2020-11077.patch
# backported from https://github.com/puma/puma/commit/87e7fe46fdadd9ccc83fdd41d33a25b931a1644b
Patch7: CVE-2020-11076.patch
Url: http://puma.io
Source: http://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1
License: BSD-3-Clause
Group: Development/Languages/Ruby
PreReq: update-alternatives
%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.
%prep
%gem_unpack
%patch0 -p 1
%patch1 -p 1
%patch2 -p 1
%patch3 -p 1
%patch4 -p 1
%patch5 -p 1
%patch6 -p 1
%patch7 -p 1
%gem_build
%build
%install
%gem_install \
--symlink-binaries \
--doc-files="LICENSE README.md" \
-f
%gem_cleanup
%gem_packages
%changelog