Use lua for pretrans (http://fedoraproject.org/wiki/Packaging:Guidelines#The_.25pretrans_scriptlet)
This commit is contained in:
parent
7e281b5aa6
commit
5863470967
16
golang.spec
16
golang.spec
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
Name: golang
|
Name: golang
|
||||||
Version: 1.1.1
|
Version: 1.1.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: The Go Programming Language
|
Summary: The Go Programming Language
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -77,11 +77,12 @@ BuildArch: noarch
|
|||||||
|
|
||||||
|
|
||||||
# Workaround old RPM bug of symlink-replaced-with-dir failure
|
# Workaround old RPM bug of symlink-replaced-with-dir failure
|
||||||
%pretrans
|
%pretrans -p <lua>
|
||||||
if [ -h %{_libdir}/%{name}/src ]; then
|
src = "%{_libdir}/%{name}/src"
|
||||||
rm -v %{_libdir}/%{name}/src
|
if posix.stat(src, "type") == "link" then
|
||||||
mkdir %{_libdir}/%{name}/src
|
os.remove(src)
|
||||||
fi
|
posix.mkdir(src)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -278,6 +279,9 @@ find $RPM_BUILD_ROOT%{_libdir}/%{name} -type f -print0 | xargs -0 touch -r $RPM_
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 19 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-3
|
||||||
|
- Use lua for pretrans (http://fedoraproject.org/wiki/Packaging:Guidelines#The_.25pretrans_scriptlet)
|
||||||
|
|
||||||
* Mon Jun 17 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-2
|
* Mon Jun 17 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-2
|
||||||
- Hopefully really fix #973842
|
- Hopefully really fix #973842
|
||||||
- Fix update from pre-1.1.1 (#974840)
|
- Fix update from pre-1.1.1 (#974840)
|
||||||
|
Loading…
Reference in New Issue
Block a user