[packages/chef] update packaging

glen glen at pld-linux.org
Sun Apr 14 10:11:58 CEST 2013


commit 303651f6e4e27afb9c3d890ed35c9d74477fcce7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Apr 4 01:07:33 2013 +0300

    update packaging

 chef.spec | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/chef.spec b/chef.spec
index 3f86344..99ac777 100644
--- a/chef.spec
+++ b/chef.spec
@@ -3,13 +3,14 @@
 Summary:	A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure
 Name:		chef
 Version:	0.10.6
-Release:	0.3
+Release:	0.4
 License:	Apache v2.0
 Group:		Development/Languages
 URL:		http://wiki.opscode.com/display/chef
 Source0:	http://rubygems.org/downloads/%{name}-%{version}.gem
 # Source0-md5:	ea8746476a2ec37e1f8265a9febba6b9
-BuildRequires:	rubygems
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
 Requires:	ruby >= 1:1.8.7
 Requires:	ruby-bunny >= 0.6.0
 Requires:	ruby-erubis
@@ -28,11 +29,7 @@ A systems integration framework, built to bring the benefits of
 configuration management to your entire infrastructure.
 
 %prep
-%setup -qc
-%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
-find -newer README.rdoc -o -print | xargs touch --reference %{SOURCE0}
-
-%build
+%setup -q
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -41,15 +38,21 @@ install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{_bindir}}
 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
 
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/var}/%{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc README.rdoc
+%dir %{_sysconfdir}/%{name}
 %attr(755,root,root) %{_bindir}/chef-client
 %attr(755,root,root) %{_bindir}/chef-solo
 %attr(755,root,root) %{_bindir}/knife
 %attr(755,root,root) %{_bindir}/shef
 %{ruby_rubylibdir}/chef.rb
 %{ruby_rubylibdir}/chef
+
+# FIXME: FHS
+%dir /var/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chef.git/commitdiff/303651f6e4e27afb9c3d890ed35c9d74477fcce7



More information about the pld-cvs-commit mailing list