# Generated from oauth2-2.0.13.gem by gem2rpm -*- rpm-spec -*- %global gem_name oauth2 Name: rubygem-%{gem_name} Version: 2.0.13 Release: 1%{?dist} Summary: 🔐 OAuth 2.0, 2.1 & OIDC Core Ruby implementation License: MIT URL: https://github.com/ruby-oauth/oauth2 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.2.0 # BuildRequires: rubygem(addressable) >= 2.8 # BuildRequires: rubygem(addressable) < 3 # BuildRequires: rubygem(addressable) >= 2.8.7 # BuildRequires: rubygem(backports) >= 3.25 # BuildRequires: rubygem(backports) < 4 # BuildRequires: rubygem(backports) >= 3.25.1 # BuildRequires: rubygem(kettle-dev) >= 1.0 # BuildRequires: rubygem(kettle-dev) < 2 # BuildRequires: rubygem(kettle-dev) >= 1.0.23 # BuildRequires: rubygem(nkf) >= 0.2 # BuildRequires: rubygem(nkf) < 1 # BuildRequires: rubygem(rexml) >= 3.2 # BuildRequires: rubygem(rexml) < 4 # BuildRequires: rubygem(rexml) >= 3.2.5 BuildArch: noarch %description 🔐 A Ruby wrapper for the OAuth 2.0 Authorization Framework, including the OAuth 2.1 draft spec, and OpenID Connect (OIDC). %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Run the test suite. popd %files %dir %{gem_instdir} %{gem_instdir}/CITATION.cff %{gem_instdir}/CODE_OF_CONDUCT.md %{gem_instdir}/FUNDING.md %license %{gem_instdir}/LICENSE.txt %{gem_instdir}/REEK %{gem_instdir}/RUBOCOP.md %{gem_instdir}/SECURITY.md %{gem_libdir} %{gem_instdir}/sig %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/CONTRIBUTING.md %doc %{gem_instdir}/README.md %changelog * Sat Aug 30 2025 mockbuilder - 2.0.13-1 - Initial package