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 Patch0: svn-ignore-externals.patch
14 Patch1: rpm-attributes.patch
15 Patch2: no-runtime-deps-during-build.patch
16 URL: https://github.com/bernd/fpm-cookery
17 BuildRequires: rpm-rubyprov
18 BuildRequires: rpmbuild(macros) >= 1.656
19 BuildRequires: sed >= 4.0
21 BuildRequires: ruby-rake
22 BuildRequires: ruby-rspec < 4
23 BuildRequires: ruby-rspec >= 3.0
29 Requires: puppet >= 3.4
31 Requires: ruby-addressable
33 Requires: ruby-systemu
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 A tool for building software packages with fpm.
47 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
56 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
57 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
58 cp -p %{name}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_bindir}/fpm-cook
66 %{ruby_vendorlibdir}/fpm/cookery
67 %{ruby_specdir}/%{name}-%{version}.gemspec