#1 Build package in Rawhide
Merged 2 years ago by brandfbb. Opened 2 years ago by ekohl.
rpms/ ekohl/rubygem-puppet-resource_api update-rawhide  into  rawhide

file added
+4
@@ -0,0 +1,4 @@ 

+ puppet-resource_api-*.gem

+ /puppet-resource_api-*

+ /results_rubygem-puppet-resource_api

+ *.rpm

file removed
-2
@@ -1,2 +0,0 @@ 

- For now, this package currently is only mainted for EPEL 8.

- If you are interested on helping to maintain it for Fedora, please let me know.

@@ -0,0 +1,83 @@ 

+ %global gem_name puppet-resource_api

+ 

+ Name: rubygem-%{gem_name}

+ 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

+ URL: https://github.com/puppetlabs/puppet-resource_api

+ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem

+ BuildRequires: ruby(release)

+ BuildRequires: rubygems-devel

+ BuildRequires: ruby

+ Requires: puppet

+ BuildArch: noarch

+ 

+ %description

+ This library provides a simple way to write new native resources for puppet.

+ 

+ 

+ %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}/

+ 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}

+ %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}/CHANGELOG.md

+ %doc %{gem_instdir}/CONTRIBUTING.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 <ewoud@kohlvanwijngaarden.nl> - 1.8.14-1

+ - Update to 1.8.14

+ - Remove more unused files

+ - Drop rspec build dep

+ 

+ * Thu May 14 2020 Breno B Fernandes <brandfbb@gmail.com> - 1.8.13-1

+ - Bumped version, added puppet as dependency to run it, removed files not necessary for the build

+ 

+ * Thu Mar 05 2020 Breno B Fernandes <brandfbb@gmail.com> - 1.8.12-1

+ - Initial package

file added
+1
@@ -0,0 +1,1 @@ 

+ SHA512 (puppet-resource_api-1.8.14.gem) = 72b4c5adae526c664b15c7c55c9d89b45d331a5ca2f82c68094f8eb66677847c46aec5471f57748ab64369c67967b76eb5a9e84a85f9a2944566644a677dce80

This takes the package from EPEL8 and cleans it up.

If merged, this cleanup should be included in EPEL8 too. That's why I've bumped the release as well. Please check if this is something you agree with.

Looks good. But why not 1.8.14?

Probably because I created this commit last week before it was out and didn't check if there was a new release. Will update it.

Oh, makes sense. Thanks for looking into this.

4 new commits added

  • Update to 1.8.14 with additional cleanups
  • Pushing sources updated.
  • First build for EPEL 8.
  • Start maintaining the package in Rawhide
2 years ago

Changed the commit to update to 1.8.14. Additional change is that .github is now also ignored. Previously that wasn't shipped. I'll see about sending a patch upstream that removes these files from the gem altogether.

Looks good, merging it now.

Pull-Request has been merged by brandfbb

2 years ago

And cross linking it here: https://github.com/puppetlabs/puppet-resource_api/pull/289 is the upstream PR to only ship files it really needs.