]> git.pld-linux.org Git - packages/fpm.git/commitdiff
use pld style config noreplace attributes
authorElan Ruusamäe <glen@delfi.ee>
Mon, 24 Aug 2015 11:08:18 +0000 (14:08 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 24 Aug 2015 11:08:45 +0000 (14:08 +0300)
https://github.com/bernd/fpm-cookery/issues/71#issuecomment-134127418

config-attrs.patch [new file with mode: 0644]
fpm.spec

diff --git a/config-attrs.patch b/config-attrs.patch
new file mode 100644 (file)
index 0000000..6266366
--- /dev/null
@@ -0,0 +1,15 @@
+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| -%>
index 7a5202c3dbab1dba37b86fe3b7475634e07dfc40..0220a1ea9e7c914bb8da5bdf8b36da20df2c9632 100644 (file)
--- a/fpm.spec
+++ b/fpm.spec
@@ -12,6 +12,7 @@ Source0:      http://rubygems.org/downloads/%{name}-%{version}.gem
 # 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
@@ -47,6 +48,7 @@ wasting pointless hours debugging bad rpm specs!
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
 # cleanup backups after patching
This page took 0.06478 seconds and 4 git commands to generate.