3 %bcond_with tests # build without tests
5 Summary: A tool for building software packages with fpm
10 Group: Development/Languages
11 Source0: http://rubygems.org/downloads/%{name}-%{version}.gem
12 # Source0-md5: bd210d6acb6a0519f8d940200917eefe
13 URL: https://github.com/bernd/fpm-cookery
14 BuildRequires: rpm-rubyprov
15 BuildRequires: rpmbuild(macros) >= 1.656
16 BuildRequires: sed >= 4.0
18 BuildRequires: ruby-rake
19 BuildRequires: ruby-rspec < 4
20 BuildRequires: ruby-rspec >= 3.0
25 Requires: ruby-addressable
27 Requires: ruby-puppet < 4
28 Requires: ruby-puppet >= 3.4
29 Requires: ruby-systemu
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 A tool for building software packages with fpm.
38 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
47 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
48 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
49 cp -p %{name}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %attr(755,root,root) %{_bindir}/fpm-cook
57 %{ruby_vendorlibdir}/fpm/cookery
58 %{ruby_specdir}/%{name}-%{version}.gemspec