aboutsummaryrefslogtreecommitdiff
path: root/myautomount.spec
diff options
context:
space:
mode:
Diffstat (limited to 'myautomount.spec')
-rw-r--r--myautomount.spec11
1 files changed, 9 insertions, 2 deletions
diff --git a/myautomount.spec b/myautomount.spec
index cc821f0..97d9f89 100644
--- a/myautomount.spec
+++ b/myautomount.spec
@@ -17,7 +17,7 @@
%global use_commit 1
%define date %(/usr/bin/date +%%Y%%m%%d)
%if 0%{?use_commit}
-%global git_commit fc6313650f03b2c1bb097d7619478aa1fac6a39c
+%global git_commit 0d5f8b7657527eab8380f5aa81ecd072714cf13c
%{?git_commit:%global git_commit_hash %(c=%{git_commit}; echo ${c:0:7})}
%else
%global git_commit 0.0.1
@@ -75,10 +75,17 @@ exit 0
rm -rf %{buildroot}
%preun
-exit 0
%postun
+%if 0%{?fedora} || 0%{?rhel} >= 7
+%posttrans
+update-desktop-database 1>/dev/null 2>&1 || :
+%else
+%post
+update-desktop-database 1>/dev/null 2>&1 || :
+%endif
+
%files
%config %attr(0644, -, -) %{_sysconfdir}/%{name}.conf
%{_sysconfdir}/xdg/autostart
bgstack15