Blame SPECS/rubygem-puppet-resource_api.spec

rdobuilder 94b2ea
%global gem_name puppet-resource_api
rdobuilder 94b2ea
rdobuilder 94b2ea
Name: rubygem-%{gem_name}
rdobuilder 94b2ea
Version: 1.8.18
rdobuilder 94b2ea
Release: 1%{?dist}
rdobuilder 94b2ea
Summary: This library provides a simple way to write new native resources for puppet
rdobuilder 94b2ea
License: Apache-2.0
rdobuilder 94b2ea
URL: https://github.com/puppetlabs/puppet-resource_api
rdobuilder 94b2ea
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
rdobuilder 94b2ea
BuildRequires: ruby(release)
rdobuilder 94b2ea
BuildRequires: rubygems-devel
rdobuilder 94b2ea
BuildRequires: ruby
rdobuilder 94b2ea
Requires: puppet
rdobuilder 94b2ea
BuildArch: noarch
rdobuilder 94b2ea
rdobuilder 94b2ea
%description
rdobuilder 94b2ea
This library provides a simple way to write new native resources for puppet.
rdobuilder 94b2ea
rdobuilder 94b2ea
rdobuilder 94b2ea
%package doc
rdobuilder 94b2ea
Summary: Documentation for %{name}
rdobuilder 94b2ea
Requires: %{name} = %{version}-%{release}
rdobuilder 94b2ea
BuildArch: noarch
rdobuilder 94b2ea
rdobuilder 94b2ea
%description doc
rdobuilder 94b2ea
Documentation for %{name}.
rdobuilder 94b2ea
rdobuilder 94b2ea
%prep
rdobuilder 94b2ea
%setup -q -n %{gem_name}-%{version}
rdobuilder 94b2ea
rdobuilder 94b2ea
%build
rdobuilder 94b2ea
# Create the gem as gem install only works on a gem file
rdobuilder 94b2ea
gem build ../%{gem_name}-%{version}.gemspec
rdobuilder 94b2ea
rdobuilder 94b2ea
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
rdobuilder 94b2ea
# by default, so that we can move it into the buildroot in %%install
rdobuilder 94b2ea
%gem_install
rdobuilder 94b2ea
rdobuilder 94b2ea
%install
rdobuilder 94b2ea
mkdir -p %{buildroot}%{gem_dir}
rdobuilder 94b2ea
cp -a .%{gem_dir}/* \
rdobuilder 94b2ea
        %{buildroot}%{gem_dir}/
rdobuilder 94b2ea
rm -rf %{buildroot}%{gem_instdir}/{.gitignore,.rubocop.yml,.travis.yml,appveyor.yml,codecov.yml}
rdobuilder 94b2ea
rdobuilder 94b2ea
# %%check can't run since it requires puppet, but puppet requires this package
rdobuilder 94b2ea
rdobuilder 94b2ea
%files
rdobuilder 94b2ea
%license %{gem_instdir}/LICENSE
rdobuilder 94b2ea
%license %{gem_instdir}/NOTICE
rdobuilder 94b2ea
%dir %{gem_instdir}
rdobuilder 94b2ea
%{gem_libdir}
rdobuilder 94b2ea
%{gem_spec}
rdobuilder 94b2ea
%exclude %{gem_cache}
rdobuilder 94b2ea
rdobuilder 94b2ea
%files doc
rdobuilder 94b2ea
%doc %{gem_docdir}
rdobuilder 94b2ea
%doc %{gem_instdir}/CHANGELOG.md
rdobuilder 94b2ea
%doc %{gem_instdir}/CONTRIBUTING.md
rdobuilder 94b2ea
%doc %{gem_instdir}/README.md
rdobuilder 94b2ea
%doc %{gem_instdir}/docs
rdobuilder 94b2ea
%{gem_instdir}/puppet-resource_api.gemspec
rdobuilder 94b2ea
rdobuilder 94b2ea
%changelog
rdobuilder 94b2ea
* Tue Jul 25 2023 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1.8.18-1
rdobuilder 94b2ea
- Update to 1.8.18 (fixes rhbz#2224646)
rdobuilder 94b2ea
rdobuilder 94b2ea
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.14-7
rdobuilder 94b2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
rdobuilder 94b2ea
rdobuilder 94b2ea
* Thu Feb 02 2023 License update - 1.8.14-6
rdobuilder 94b2ea
- Rebuilt to update license
rdobuilder 94b2ea
rdobuilder 94b2ea
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.14-5
rdobuilder 94b2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder 94b2ea
rdobuilder 94b2ea
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.14-4
rdobuilder 94b2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder 94b2ea
rdobuilder 94b2ea
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.14-3
rdobuilder 94b2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder 94b2ea
rdobuilder 94b2ea
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.14-2
rdobuilder 94b2ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 94b2ea
rdobuilder 94b2ea
* Wed Jun 16 2021 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1.8.14-1
rdobuilder 94b2ea
- Update to 1.8.14
rdobuilder 94b2ea
- Remove more unused files
rdobuilder 94b2ea
- Drop rspec build dep
rdobuilder 94b2ea
rdobuilder 94b2ea
* Thu May 14 2020 Breno B Fernandes <brandfbb@gmail.com> - 1.8.13-1
rdobuilder 94b2ea
- Bumped version, added puppet as dependency to run it, removed files not necessary for the build
rdobuilder 94b2ea
rdobuilder 94b2ea
* Thu Mar 05 2020 Breno B Fernandes <brandfbb@gmail.com> - 1.8.12-1
rdobuilder 94b2ea
- Initial package