Blame SPECS/rubygem-semantic_puppet.spec

46575c
%global gem_name semantic_puppet
46575c
46575c
%global with_test 1
46575c
46575c
Name:          rubygem-%{gem_name}
46575c
Version:       1.0.4
46575c
Release:       2%{?dist}
46575c
Summary:       Useful tools for working with Semantic Versions
46575c
License:       ASL 2.0
46575c
URL:           https://github.com/puppetlabs/semantic_puppet
46575c
Source0:       https://rubygems.org/gems/%{gem_name}-%{version}.gem
46575c
46575c
BuildRequires: rubygems-devel
46575c
%if 0%{?with_test}
46575c
BuildRequires: rubygem(rspec)
46575c
%endif
46575c
Requires:      ruby(rubygems)
46575c
46575c
BuildArch:     noarch
46575c
46575c
%description
46575c
Tools used by Puppet to parse, validate, and compare Semantic Versions and
46575c
Version Ranges and to query and resolve module dependencies.
46575c
46575c
%package doc
46575c
Summary:       Documentation for %{name}
46575c
Requires:      %{name} = %{version}-%{release}
46575c
BuildArch:     noarch
46575c
46575c
%description doc
46575c
Documentation for %{name}.
46575c
46575c
%prep
46575c
gem unpack %{SOURCE0}
46575c
%setup -q -D -T -n %{gem_name}-%{version}
46575c
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
46575c
46575c
%build
46575c
gem build %{gem_name}.gemspec
46575c
%gem_install
46575c
46575c
%install
46575c
mkdir -p %{buildroot}%{gem_dir}
46575c
cp -a .%{gem_dir}/* \
46575c
        %{buildroot}%{gem_dir}/
46575c
rm -rf %{buildroot}%{gem_instdir}/{appveyor.yml,.gitignore,.rubocop.yml,.travis.yml,.yardopts}
46575c
46575c
%check
46575c
%if 0%{?with_test}
46575c
pushd .%{gem_instdir}
46575c
rspec spec
46575c
popd
46575c
%endif
46575c
46575c
%files
46575c
%dir %{gem_instdir}
46575c
%license %{gem_instdir}/LICENSE
46575c
%{gem_libdir}
46575c
%exclude %{gem_cache}
46575c
%{gem_spec}
46575c
46575c
%files doc
46575c
%doc %{gem_docdir}
46575c
%doc %{gem_instdir}/CHANGELOG.md
46575c
%{gem_instdir}/Gemfile
46575c
%doc %{gem_instdir}/README.md
46575c
%{gem_instdir}/CODEOWNERS
46575c
%{gem_instdir}/Rakefile
46575c
%{gem_instdir}/semantic_puppet.gemspec
46575c
%{gem_instdir}/spec
46575c
46575c
%changelog
46575c
* Mon Jun 21 2021 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1.0.4-2
46575c
- Include the gemspec in the main package
46575c
46575c
* Tue Jun 08 2021 Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl> - 1.0.4-1
46575c
- Update to 1.0.4
46575c
46575c
* Tue Jun 01 2021 Joel Capitao <jcapitao@redhat.com> - 1.0.3-1
46575c
- First build for rawhide