]>
Commit | Line | Data |
---|---|---|
7248f3ee ER |
1 | # NOTE |
2 | # - this package by upstream is bundle (345M download, 1.5G unpacked) of all dependencies plus new tool called 'chef' | |
3 | Summary: Chef Development Kit | |
4 | Name: chefdk | |
5 | Version: 0.0.1 | |
6 | Release: 0.1 | |
7 | License: Apache v2.0 | |
8 | Group: Networking/Admin | |
9 | Source0: https://github.com/opscode/chef-dk/archive/%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 80f274de84f339971e7afa0de463a842 | |
7ab6d7a6 | 11 | URL: http://docs.opscode.com/ctl_chef.html |
7248f3ee ER |
12 | BuildRequires: rpm-rubyprov |
13 | BuildRequires: rpmbuild(macros) >= 1.673 | |
14 | BuildRequires: sed >= 4.0 | |
15 | %if %{with tests} | |
16 | %endif | |
17 | Requires: berkshelf | |
18 | Requires: chef | |
19 | Requires: chef-spec | |
20 | Requires: foodcritic | |
21 | Requires: knife | |
22 | Requires: ruby(abi) >= 2.0 | |
23 | Requires: test-kitchen | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Chef Development Kit (Chef DK) brings Chef and the development tools | |
29 | developed by the Chef Community together and acts as the consistent | |
30 | interface to this awesomeness. | |
31 | ||
32 | This awesomeness is composed of: | |
33 | - chef | |
34 | - berkshelf | |
35 | - test-kitchen | |
36 | - ChefSpec | |
37 | - foodcritic | |
38 | ||
39 | %prep | |
40 | %setup -q -n chef-dk-%{version} | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}} | |
45 | ||
46 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
47 | cp -a bin/* $RPM_BUILD_ROOT%{_bindir} | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc README.md CONTRIBUTING.md CHANGELOG.md | |
55 | %attr(755,root,root) %{_bindir}/chef | |
56 | %{ruby_vendorlibdir}/chef-dk.rb | |
57 | %{ruby_vendorlibdir}/chef-dk |