file list for src tree
This commit is contained in:
parent
abfb918aeb
commit
9380b0eceb
15
golang.spec
15
golang.spec
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
Name: golang
|
Name: golang
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 16%{?dist}
|
Release: 17%{?dist}
|
||||||
Summary: The Go Programming Language
|
Summary: The Go Programming Language
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
|
@ -482,7 +482,13 @@ find $RPM_BUILD_ROOT%{goroot}/src -exec touch -r $RPM_BUILD_ROOT%{goroot}/VERSIO
|
||||||
# and level out all the built archives
|
# and level out all the built archives
|
||||||
touch $RPM_BUILD_ROOT%{goroot}/pkg
|
touch $RPM_BUILD_ROOT%{goroot}/pkg
|
||||||
find $RPM_BUILD_ROOT%{goroot}/pkg -exec touch -r $RPM_BUILD_ROOT%{goroot}/pkg "{}" \;
|
find $RPM_BUILD_ROOT%{goroot}/pkg -exec touch -r $RPM_BUILD_ROOT%{goroot}/pkg "{}" \;
|
||||||
|
# generate the spec file ownership of this source tree
|
||||||
|
src_list=$(pwd)/go-src.list
|
||||||
|
touch $src_list
|
||||||
|
pushd $RPM_BUILD_ROOT%{goroot}
|
||||||
|
find src/ -type d -printf '%%%dir %{goroot}/%p\n' >> $src_list
|
||||||
|
find src/ ! -type d -printf '%{goroot}/%p\n' >> $src_list
|
||||||
|
popd
|
||||||
|
|
||||||
# remove the unnecessary zoneinfo file (Go will always use the system one first)
|
# remove the unnecessary zoneinfo file (Go will always use the system one first)
|
||||||
rm -rfv $RPM_BUILD_ROOT%{goroot}/lib/time
|
rm -rfv $RPM_BUILD_ROOT%{goroot}/lib/time
|
||||||
|
@ -665,7 +671,7 @@ fi
|
||||||
%{_xemacs_sitestartdir}/*.el
|
%{_xemacs_sitestartdir}/*.el
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files src
|
%files -f go-src.list src
|
||||||
%{goroot}/src/
|
%{goroot}/src/
|
||||||
|
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
|
@ -894,6 +900,9 @@ fi
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 12 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.2.2-17
|
||||||
|
- explicitly list all the files and directories of the src tree, to preserve timestamps
|
||||||
|
|
||||||
* Mon Aug 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.2.2-16
|
* Mon Aug 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.2.2-16
|
||||||
- touch all the built archives to be the same
|
- touch all the built archives to be the same
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue