# Generated from launchdarkly-server-sdk-6.2.4.gem by gem2rpm -*- rpm-spec -*-
%global gem_name launchdarkly-server-sdk

Name: rubygem-%{gem_name}
Version: 6.2.4
Release: 1%{?dist}
Summary: LaunchDarkly SDK for Ruby
License: Apache-2.0
URL: https://github.com/launchdarkly/ruby-server-sdk
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby >= 2.5.0
# BuildRequires: rubygem(aws-sdk-dynamodb) >= 1.57
# BuildRequires: rubygem(aws-sdk-dynamodb) < 2
# BuildRequires: rubygem(rspec) >= 3.10
# BuildRequires: rubygem(rspec) < 4
# BuildRequires: rubygem(diplomat) >= 2.4.2
# BuildRequires: rubygem(diplomat) < 2.5
# BuildRequires: rubygem(redis) >= 4.2
# BuildRequires: rubygem(redis) < 5
# BuildRequires: rubygem(connection_pool) >= 2.2.3
# BuildRequires: rubygem(connection_pool) < 2.3
# BuildRequires: rubygem(rspec_junit_formatter) >= 0.4
# BuildRequires: rubygem(rspec_junit_formatter) < 1
# BuildRequires: rubygem(timecop) >= 0.9
# BuildRequires: rubygem(timecop) < 1
# BuildRequires: rubygem(listen) >= 3.3
# BuildRequires: rubygem(listen) < 4
# BuildRequires: rubygem(webrick) >= 1.7
# BuildRequires: rubygem(webrick) < 2
# BuildRequires: rubygem(oga) >= 2.2
# BuildRequires: rubygem(oga) < 3
BuildArch: noarch

%description
Official LaunchDarkly SDK for Ruby.


%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}
# rspec spec
popd

%files
%dir %{gem_instdir}
%{gem_instdir}/.circleci
%{gem_instdir}/.github
%exclude %{gem_instdir}/.gitignore
%exclude %{gem_instdir}/.hound.yml
%exclude %{gem_instdir}/.rubocop.yml
%{gem_instdir}/.simplecov
%{gem_instdir}/CODEOWNERS
%license %{gem_instdir}/LICENSE.txt
%{gem_instdir}/azure-pipelines.yml
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/.ldrelease
%exclude %{gem_instdir}/.rspec
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/CONTRIBUTING.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/docs
%{gem_instdir}/launchdarkly-server-sdk.gemspec
%{gem_instdir}/spec

%changelog
* Mon Sep 13 2021 mockbuilder - 6.2.4-1
- Initial package