--- /dev/null
+use pld style config noreplace attributes
+
+https://github.com/bernd/fpm-cookery/issues/71#issuecomment-134127418
+
+--- fpm-1.4.0/templates/rpm.erb~ 2015-08-24 14:06:26.000000000 +0300
++++ fpm-1.4.0/templates/rpm.erb 2015-08-24 14:07:00.841529419 +0300
+@@ -238,7 +238,7 @@
+ %defattr(<%= attributes[:rpm_defattrfile] %>,<%= attributes[:rpm_user] || "root" %>,<%= attributes[:rpm_group] || "root" %>,<%= attributes[:rpm_defattrdir] %>)
+ <%# Output config files and then regular files. -%>
+ <% config_files.each do |path| -%>
+-%config(noreplace) <%= rpm_file_entry(path) %>
++%config(noreplace) %verify(not md5 mtime size) <%= rpm_file_entry(path) %>
+ <% end -%>
+ <%# list directories %>
+ <% directories.each do |path| -%>
# Source0-md5: 4d82b0484db150928330b04bb44c92a2
Patch0: templates.patch
Patch1: tmppath.patch
+Patch2: config-attrs.patch
URL: https://github.com/jordansissel/fpm
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
# cleanup backups after patching