]>
Commit | Line | Data |
---|---|---|
bce16be1 ER |
1 | # TODO |
2 | # - try not to use /var/chef | |
e307965b ER |
3 | Summary: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure |
4 | Name: chef | |
68cfa14e ER |
5 | Version: 11.4.4 |
6 | Release: 0.11 | |
e307965b ER |
7 | License: Apache v2.0 |
8 | Group: Development/Languages | |
e307965b | 9 | Source0: http://rubygems.org/downloads/%{name}-%{version}.gem |
68cfa14e | 10 | # Source0-md5: dc50aa6a4a7d4785a4c82fcaab3f9436 |
7abbc83b | 11 | Patch0: platform-pld.patch |
2a1bbc08 | 12 | URL: http://wiki.opscode.com/display/chef |
303651f6 ER |
13 | BuildRequires: rpm-rubyprov |
14 | BuildRequires: rpmbuild(macros) >= 1.656 | |
68cfa14e ER |
15 | BuildRequires: sed >= 4.0 |
16 | %if %{with tests} | |
17 | BuildRequires: ruby-rack | |
18 | BuildRequires: ruby-rake | |
19 | BuildRequires: ruby-rdoc | |
20 | BuildRequires: ruby-rspec-core >= 2.12.0 | |
21 | BuildRequires: ruby-rspec-expectations >= 2.12.0 | |
22 | BuildRequires: ruby-rspec-mocks >= 2.12.0 | |
23 | BuildRequires: ruby-rspec_junit_formatter | |
24 | BuildRequires: ruby-sdoc | |
25 | %endif | |
97e7edae | 26 | Requires: lsb-release |
bce16be1 | 27 | Requires: ruby-erubis |
2a1bbc08 | 28 | Requires: ruby-highline >= 1.6.9 |
2a1bbc08 ER |
29 | Requires: ruby-json >= 1.4.4 |
30 | Requires: ruby-mixlib-authentication >= 1.3.0 | |
31 | Requires: ruby-mixlib-cli >= 1.3.0 | |
bce16be1 ER |
32 | Requires: ruby-mixlib-config >= 1.1.2 |
33 | Requires: ruby-mixlib-log >= 1.3.0 | |
2a1bbc08 ER |
34 | Requires: ruby-mixlib-shellout |
35 | Requires: ruby-net-ssh >= 2.6 | |
36 | Requires: ruby-net-ssh-multi >= 1.1.0 | |
37 | Requires: ruby-ohai >= 0.6.0 | |
2a1bbc08 | 38 | Requires: ruby-rest-client >= 1.0.4 |
bce16be1 | 39 | Requires: ruby-rubygems |
2a1bbc08 | 40 | Requires: ruby-yajl >= 1.1 |
68cfa14e | 41 | Requires: yum >= 3.4.3-7 |
e307965b ER |
42 | BuildArch: noarch |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | A systems integration framework, built to bring the benefits of | |
47 | configuration management to your entire infrastructure. | |
48 | ||
49 | %prep | |
303651f6 | 50 | %setup -q |
7abbc83b | 51 | %patch0 -p1 |
e307965b | 52 | |
68cfa14e ER |
53 | %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/* |
54 | ||
e307965b ER |
55 | %install |
56 | rm -rf $RPM_BUILD_ROOT | |
68cfa14e ER |
57 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}} |
58 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
e307965b | 59 | cp -a bin/* $RPM_BUILD_ROOT%{_bindir} |
e307965b | 60 | |
303651f6 ER |
61 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},/var}/%{name} |
62 | ||
bce16be1 ER |
63 | %clean |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
e307965b ER |
66 | %files |
67 | %defattr(644,root,root,755) | |
2a1bbc08 | 68 | %doc README.md CONTRIBUTING.md |
303651f6 | 69 | %dir %{_sysconfdir}/%{name} |
2a1bbc08 | 70 | %attr(755,root,root) %{_bindir}/chef-apply |
e307965b | 71 | %attr(755,root,root) %{_bindir}/chef-client |
2a1bbc08 | 72 | %attr(755,root,root) %{_bindir}/chef-shell |
e307965b ER |
73 | %attr(755,root,root) %{_bindir}/chef-solo |
74 | %attr(755,root,root) %{_bindir}/knife | |
75 | %attr(755,root,root) %{_bindir}/shef | |
68cfa14e ER |
76 | %{ruby_vendorlibdir}/chef.rb |
77 | %{ruby_vendorlibdir}/chef | |
303651f6 ER |
78 | |
79 | # FIXME: FHS | |
80 | %dir /var/%{name} |