]>
Commit | Line | Data |
---|---|---|
e307965b ER |
1 | Summary: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure |
2 | Name: chef | |
68cfa14e | 3 | Version: 11.4.4 |
bc8e6547 | 4 | Release: 0.12 |
e307965b ER |
5 | License: Apache v2.0 |
6 | Group: Development/Languages | |
e307965b | 7 | Source0: http://rubygems.org/downloads/%{name}-%{version}.gem |
68cfa14e | 8 | # Source0-md5: dc50aa6a4a7d4785a4c82fcaab3f9436 |
7abbc83b | 9 | Patch0: platform-pld.patch |
bc8e6547 | 10 | Patch1: FHS.patch |
2a1bbc08 | 11 | URL: http://wiki.opscode.com/display/chef |
303651f6 ER |
12 | BuildRequires: rpm-rubyprov |
13 | BuildRequires: rpmbuild(macros) >= 1.656 | |
68cfa14e ER |
14 | BuildRequires: sed >= 4.0 |
15 | %if %{with tests} | |
16 | BuildRequires: ruby-rack | |
17 | BuildRequires: ruby-rake | |
18 | BuildRequires: ruby-rdoc | |
19 | BuildRequires: ruby-rspec-core >= 2.12.0 | |
20 | BuildRequires: ruby-rspec-expectations >= 2.12.0 | |
21 | BuildRequires: ruby-rspec-mocks >= 2.12.0 | |
22 | BuildRequires: ruby-rspec_junit_formatter | |
23 | BuildRequires: ruby-sdoc | |
24 | %endif | |
97e7edae | 25 | Requires: lsb-release |
bce16be1 | 26 | Requires: ruby-erubis |
2a1bbc08 | 27 | Requires: ruby-highline >= 1.6.9 |
2a1bbc08 ER |
28 | Requires: ruby-json >= 1.4.4 |
29 | Requires: ruby-mixlib-authentication >= 1.3.0 | |
30 | Requires: ruby-mixlib-cli >= 1.3.0 | |
bce16be1 ER |
31 | Requires: ruby-mixlib-config >= 1.1.2 |
32 | Requires: ruby-mixlib-log >= 1.3.0 | |
2a1bbc08 ER |
33 | Requires: ruby-mixlib-shellout |
34 | Requires: ruby-net-ssh >= 2.6 | |
35 | Requires: ruby-net-ssh-multi >= 1.1.0 | |
36 | Requires: ruby-ohai >= 0.6.0 | |
2a1bbc08 | 37 | Requires: ruby-rest-client >= 1.0.4 |
bce16be1 | 38 | Requires: ruby-rubygems |
2a1bbc08 | 39 | Requires: ruby-yajl >= 1.1 |
68cfa14e | 40 | Requires: yum >= 3.4.3-7 |
e307965b ER |
41 | BuildArch: noarch |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | A systems integration framework, built to bring the benefits of | |
46 | configuration management to your entire infrastructure. | |
47 | ||
48 | %prep | |
303651f6 | 49 | %setup -q |
7abbc83b | 50 | %patch0 -p1 |
bc8e6547 | 51 | %patch1 -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 | |
bc8e6547 ER |
57 | install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}} \ |
58 | $RPM_BUILD_ROOT{%{_sysconfdir},/var/{cache,lib}}/%{name} | |
68cfa14e | 59 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir} |
e307965b | 60 | cp -a bin/* $RPM_BUILD_ROOT%{_bindir} |
e307965b | 61 | |
303651f6 | 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 | 78 | |
bc8e6547 ER |
79 | %dir /var/lib/%{name} |
80 | %dir /var/cache/%{name} |