parent
afa79efb17
commit
27126d351b
@ -0,0 +1,77 @@
|
||||
# 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
|
||||
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
|
||||
BuildRequires: rubygem(rspec)
|
||||
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}
|
||||
|
||||
%files
|
||||
%license %{gem_instdir}/LICENSE
|
||||
%dir %{gem_instdir}
|
||||
%{gem_instdir}/.dependency_decisions.yml
|
||||
%{gem_instdir}/.fixtures.yml
|
||||
%{gem_instdir}/NOTICE
|
||||
%{gem_instdir}/bin
|
||||
%{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}/Gemfile
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/puppet-resource_api.gemspec
|
||||
%exclude %{gem_instdir}/.rspec
|
||||
|
||||
%changelog
|
||||
* 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
|
Loading…
Reference in new issue