From ac2372c1b0c4b3214e9a5630ed9aa8c4a6bcb1c1 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Tue, 8 Jun 2021 16:52:31 +0200 Subject: [PATCH] Update to 1.8.14 with additional cleanups Various files are being included that aren't needed. They only make the package bigger. HISTORY.md is a subset of CHANGELOG.md. CODEOWNERS is just a marker for Github to assign reviewers. bin only contains binstubs for bundler so really bad to include. contrib only contains a pre-commit hook, but if you're not using git this doesn't make sense. .fixtures.yml is only needed when running tests It also adds NOTICE as a license file. rspec as a build dependency is removed since no tests run. It can't run them because it needs puppet, but puppet requires this package leading to a dependency cycle. That's documented now. --- .gitignore | 5 ++++- rubygem-puppet-resource_api.spec | 26 ++++++++++++++++---------- sources | 2 +- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 2d9e164..a97afbe 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -/puppet-resource_api-1.8.13.gem +puppet-resource_api-*.gem +/puppet-resource_api-* +/results_rubygem-puppet-resource_api +*.rpm diff --git a/rubygem-puppet-resource_api.spec b/rubygem-puppet-resource_api.spec index 229c3d2..8937397 100644 --- a/rubygem-puppet-resource_api.spec +++ b/rubygem-puppet-resource_api.spec @@ -1,8 +1,7 @@ -# Generated from puppet-resource_api-1.8.12.gem by gem2rpm -*- rpm-spec -*- %global gem_name puppet-resource_api Name: rubygem-%{gem_name} -Version: 1.8.13 +Version: 1.8.14 Release: 1%{?dist} Summary: This library provides a simple way to write new native resources for puppet License: ASL 2.0 @@ -11,7 +10,6 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby -BuildRequires: rubygem(rspec) Requires: puppet BuildArch: noarch @@ -44,32 +42,40 @@ cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ rm -rf %{buildroot}%{gem_instdir}/{.gitignore,.rubocop.yml,.travis.yml,appveyor.yml,codecov.yml} +# %%check can't run since it requires puppet, but puppet requires this package + %files %license %{gem_instdir}/LICENSE +%license %{gem_instdir}/NOTICE %dir %{gem_instdir} -%{gem_instdir}/.dependency_decisions.yml -%{gem_instdir}/.fixtures.yml -%{gem_instdir}/NOTICE -%{gem_instdir}/bin -%{gem_instdir}/contrib +%exclude %{gem_instdir}/.dependency_decisions.yml +%exclude %{gem_instdir}/.github +%exclude %{gem_instdir}/CODEOWNERS +%exclude %{gem_instdir}/HISTORY.md +%exclude %{gem_instdir}/bin +%exclude %{gem_instdir}/contrib %{gem_libdir} %{gem_spec} %exclude %{gem_cache} %files doc %doc %{gem_docdir} -%doc %{gem_instdir}/CODEOWNERS %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/CONTRIBUTING.md -%doc %{gem_instdir}/HISTORY.md %doc %{gem_instdir}/README.md %doc %{gem_instdir}/docs +%{gem_instdir}/.fixtures.yml %{gem_instdir}/Gemfile %{gem_instdir}/Rakefile %{gem_instdir}/puppet-resource_api.gemspec %exclude %{gem_instdir}/.rspec %changelog +* Wed Jun 16 2021 Ewoud Kohl van Wijngaarden - 1.8.14-1 +- Update to 1.8.14 +- Remove more unused files +- Drop rspec build dep + * Thu May 14 2020 Breno B Fernandes - 1.8.13-1 - Bumped version, added puppet as dependency to run it, removed files not necessary for the build diff --git a/sources b/sources index a2d6ebc..59cb202 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (puppet-resource_api-1.8.13.gem) = a517a10c6de3d95cfcc2b348a5840a44322b43ee8ec3589055c5002e7dcc13e7bd938952a1207b5dfabd68a428b798320c273d0bda22bd0eec211de5aeb4ae26 +SHA512 (puppet-resource_api-1.8.14.gem) = 72b4c5adae526c664b15c7c55c9d89b45d331a5ca2f82c68094f8eb66677847c46aec5471f57748ab64369c67967b76eb5a9e84a85f9a2944566644a677dce80