Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:chef:10
rubygem-chef
rubygem-chef.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-chef.spec of Package rubygem-chef
# # spec file for package rubygem-chef # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # # This file was generated with a gem2rpm.yml and not just plain gem2rpm. # All sections marked as MANUAL, license headers, summaries and descriptions # can be maintained in that file. Please consult this file before editing any # of those fields # Name: rubygem-chef Version: 10.32.2 Release: 0 %define mod_name chef %define mod_full_name %{mod_name}-%{version} # MANUAL %if 0%{?suse_version} >= 1230 BuildRequires: pkgconfig(systemd) %endif Requires: logrotate BuildRequires: fdupes %if 0%{?suse_version} > 1110 Requires(pre): pwdutils %else Requires(pre): shadow-utils %endif PreReq: rubygem(chef) = %{version} #!BuildIgnore: rubygem(chef) # /MANUAL BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros >= 5 BuildRequires: %{ruby} BuildRequires: %{rubygem gem2rpm} BuildRequires: update-alternatives Url: http://wiki.opscode.com/display/chef Source: http://rubygems.org/gems/%{mod_full_name}.gem Source1: chef-client.rb Source2: chef-client.service Source3: chef-client.tmpfiles.d Source4: chef-client.init Source5: chef-client.logrotate Source6: chef-create-amqp-passwd Source7: zypper-retry Source8: gem2rpm.yml Source9: rubygem-chef-rpmlintrc # MANUAL Patch0: CHEF-672-load-libraries-recursively.patch Patch1: CHEF-867-use-exclusive-file-locks.patch Patch2: CHEF-867-comment-additions.patch Patch3: CHEF-3617-create-full-path-on-run-lock.patch Patch4: CHEF-867-use-cloexec-if-we-can.patch Patch5: CHEF-3938-dont-disable-gpg-checks-in-zypper.patch Patch6: CHEF-4010-ensure-lock-release.patch Patch7: CHEF-4322-only-if-there-are-actual-changes.patch Patch8: CHEF-4322-expose-file-edited.patch Patch9: CHEF-4090-refactor-zypper-package-provider.patch Patch10: CHEF-4090-solve-merge-conflict.patch Patch11: non-interactive-zypper.patch Patch12: ask-rpm-before-zypper.patch Patch13: call-zypper-retry.patch Patch14: disable-chef11-deprecation.patch Patch15: enable-zypper-check-gpg.patch Patch16: deep-merge-ruby2.1.patch Patch17: pr2052-change-default-service-mapping-for-sles-to-systemd.patch Patch18: pr2187-change-default-group-mapping-for-sles.patch Patch19: allow-pausing-of-intervallic-chef-client-runs.patch Patch20: create_client_with_public_key.patch Patch21: zypper-exit.patch Patch22: filesystem-rename.patch Patch23: allow-symbol-and-string-for-fetch.patch Patch24: rescue-encoding-json-error.patch Patch25: fix-zypper-package-remove-version-missing.patch # /MANUAL Summary: A systems integration framework, built to bring the benefits of License: Apache-2.0 Group: Development/Languages/Ruby PreReq: update-alternatives %description A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure. %prep %gem_unpack %patch0 -p1 %patch1 -p0 %patch2 -p1 %patch3 -p0 %patch4 -p1 %patch5 -p0 %patch6 -p0 %patch7 -p1 %patch8 -p1 %patch9 -p0 %patch10 -p0 %patch11 -p0 %patch12 -p0 %patch13 -p1 %patch14 -p0 %patch15 -p0 %patch16 -p0 %patch17 -p1 %patch18 -p1 %patch19 -p2 %patch20 -p0 %patch21 -p1 %patch22 -p0 %patch23 -p0 %patch24 -p1 %patch25 -p2 %gem_build %build %install # MANUAL # We need to rebuild files list as we create new files that are nort covered by the gemspec perl -p -i -e 's;s\.files = .*$;s.files = %w(Rakefile LICENSE README.rdoc) + Dir.glob("{distro,lib,tasks,spec}/**/*", File::FNM_DOTMATCH).reject {|f| File.directory?(f) };' %{mod_full_name}/*.gemspec %gem_build # /MANUAL %gem_install \ --no-rdoc --no-ri \ --symlink-binaries \ --doc-files="LICENSE README.rdoc" \ -f # MANUAL install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/chef-client install -d -m 750 %{buildroot}%{_sysconfdir}/chef install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/chef/client.rb %if 0%{?suse_version} >= 1230 install -D -m 644 %{SOURCE3} %{buildroot}/usr/lib/tmpfiles.d/chef-client.conf install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/chef-client.service install -d -m 755 %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcchef-client %else install -d -m 755 %{buildroot}%{_sysconfdir}/init.d install -D -m 750 %{SOURCE4} %{buildroot}%{_sysconfdir}/init.d/chef-client install -d -m 755 %{buildroot}%{_sbindir} ln -s %{_sysconfdir}/init.d/chef-client %{buildroot}%{_sbindir}/rcchef-client %endif install -d -m 755 %{buildroot}%{_bindir} install -D -m 750 %{SOURCE7} %{buildroot}%{_bindir}/zypper-retry install -d -m 755 %{buildroot}%{_sbindir} install -D -m 750 %{SOURCE6} %{buildroot}%{_sbindir}/chef-create-amqp-passwd install -d -m 750 %{buildroot}%{_localstatedir}/log/chef install -d -m 750 %{buildroot}%{_localstatedir}/lib/chef install -d -m 750 %{buildroot}%{_localstatedir}/cache/chef %if 0%{?suse_version} < 1230 install -d -m 750 %{buildroot}%{_localstatedir}/run/chef %endif install -d -m 755 %{buildroot}%{_mandir}/man1 cp distro/common/man/man1/* %{buildroot}%{_mandir}/man1/ install -d -m 755 %{buildroot}%{_mandir}/man8 cp distro/common/man/man8/* %{buildroot}%{_mandir}/man8/ rm -rf %{buildroot}%{gem_base}/gems/%{mod_full_name}/distro find %{buildroot} -name "*.orig" -delete -print %fdupes %{buildroot} # /MANUAL %files %defattr(-,root,root,-) %dir %attr(0750, chef, chef) %{_localstatedir}/log/chef %dir %attr(0750, chef, chef) %{_localstatedir}/lib/chef %dir %attr(0750, chef, chef) %{_localstatedir}/cache/chef %if 0%{?suse_version} < 1230 %ghost %attr(0750, chef, chef) %{_localstatedir}/run/chef %endif %if 0%{?suse_version} >= 1230 /usr/lib/tmpfiles.d/chef-client.conf %{_unitdir}/chef-client.service %else %{_sysconfdir}/init.d/chef-client %endif %{_sbindir}/rcchef-client %dir %attr(0750, root, chef) %{_sysconfdir}/chef %config(noreplace) %attr(0640, root, chef) %{_sysconfdir}/chef/client.rb %config %attr(0640, root, chef) %{_sysconfdir}/logrotate.d/chef-client %attr(0750, root, root) %{_bindir}/zypper-retry %attr(0750, root, chef) %{_sbindir}/chef-create-amqp-passwd %doc %{_mandir}/man1/* %doc %{_mandir}/man8/* %pre getent group chef >/dev/null || groupadd -r chef getent passwd chef >/dev/null || useradd -r -g chef -d %{_localstatedir}/lib/chef -s /sbin/nologin -c "Opscode chef daemon" chef %if 0%{?suse_version} >= 1230 %service_add_pre chef-client.service %endif %preun %if 0%{?suse_version} >= 1230 %service_del_preun chef-client.service %else %stop_on_removal chef-client %endif %post %if 0%{?suse_version} >= 1230 systemd-tmpfiles --create /usr/lib/tmpfiles.d/chef-client.conf || true %service_add_post chef-client.service %else %fillup_and_insserv chef-client %endif %postun %if 0%{?suse_version} >= 1230 %service_del_postun chef-client.service %else %restart_on_update chef-client %insserv_cleanup %endif %gem_packages %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor