Make scriptlets failsafe
Backported fix from RHEL 7 vala package. https://bugzilla.redhat.com/show_bug.cgi?id=1247971
This commit is contained in:
parent
7912990a1a
commit
3d0d67a922
13
vala.spec
13
vala.spec
@ -3,7 +3,7 @@
|
||||
|
||||
Name: vala
|
||||
Version: 0.34.0
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: A modern programming language for GNOME
|
||||
|
||||
# Most files are LGPLv2.1+, curses.vapi is 2-clause BSD
|
||||
@ -122,12 +122,12 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
for f in %{vala_binaries};
|
||||
do
|
||||
%{_sbindir}/alternatives --install %{_bindir}/$f \
|
||||
$f %{_bindir}/$f-%{api_ver} %{priority}
|
||||
$f %{_bindir}/$f-%{api_ver} %{priority} || :
|
||||
done
|
||||
for f in %{vala_manpages};
|
||||
do
|
||||
%{_sbindir}/alternatives --install %{_mandir}/man1/$f.1.gz \
|
||||
$f.1.gz %{_mandir}/man1/$f-%{api_ver}.1.gz %{priority}
|
||||
$f.1.gz %{_mandir}/man1/$f-%{api_ver}.1.gz %{priority} || :
|
||||
done
|
||||
|
||||
%preun
|
||||
@ -135,12 +135,12 @@ done
|
||||
for f in %{vala_binaries};
|
||||
do
|
||||
%{_sbindir}/alternatives --remove $f \
|
||||
%{_bindir}/$f-%{api_ver}
|
||||
%{_bindir}/$f-%{api_ver} || :
|
||||
done
|
||||
for f in %{vala_manpages};
|
||||
do
|
||||
%{_sbindir}/alternatives --remove $f.1.gz \
|
||||
%{_mandir}/man1/$f-%{api_ver}.1.gz
|
||||
%{_mandir}/man1/$f-%{api_ver}.1.gz || :
|
||||
done
|
||||
|
||||
|
||||
@ -181,6 +181,9 @@ done
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Sep 28 2016 Kalev Lember <klember@redhat.com> - 0.34.0-4
|
||||
- Make scriptlets failsafe (#1247971)
|
||||
|
||||
* Thu Sep 22 2016 Kalev Lember <klember@redhat.com> - 0.34.0-3
|
||||
- Require gobject-introspection-devel for GLib and GObject .gir files
|
||||
- Drop old obsoletes
|
||||
|
Loading…
Reference in New Issue
Block a user