From e8888e4bc334cfffd8c9fbc11ded50d8495418f6 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Jul 30 2015 14:43:48 +0000 Subject: add -pav to cp --- diff --git a/golang-github-bradfitz-http2.spec b/golang-github-bradfitz-http2.spec index f4b8c3a..f43ab7f 100644 --- a/golang-github-bradfitz-http2.spec +++ b/golang-github-bradfitz-http2.spec @@ -121,7 +121,7 @@ install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ # find all *.go but no *_test.go files and generate unit-test.file-list for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file) - cp $file %{buildroot}/%{gopath}/src/%{import_path}/$file + cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list done %endif @@ -134,7 +134,7 @@ echo "%%{gopath}/src/%%{import_path}/testdata" >> unit-test.file-list # find all *_test.go files and generate unit-test.file-list for file in $(find . -iname "*_test.go"); do install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file) - cp $file %{buildroot}/%{gopath}/src/%{import_path}/$file + cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list done %endif