3 %bcond_with tests # tests. requires RSpec3
5 %define pkgname hashicorp-checkpoint
6 Summary: Internal HashiCorp service to check version information
11 Group: Development/Languages
12 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5: e1400274453f554e97204e75fdb31b6d
14 URL: http://www.hashicorp.com
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.656
18 BuildRequires: ruby-bundler < 2
19 BuildRequires: ruby-bundler >= 1.6
20 BuildRequires: ruby-rake
21 BuildRequires: ruby-rspec < 3.1
22 BuildRequires: ruby-rspec >= 3.0.0
23 BuildRequires: ruby-rspec-its < 1.1
24 BuildRequires: ruby-rspec-its >= 1.0.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Internal HashiCorp service to check version information.
33 %setup -q -n %{pkgname}-%{version}
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
46 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
47 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %doc README.md LICENSE.txt
55 %{ruby_vendorlibdir}/checkpoint.rb
56 %{ruby_vendorlibdir}/checkpoint
57 %{ruby_specdir}/%{pkgname}-%{version}.gemspec