Changes of Revision 6
roundcubemail.spec
Changed
x
1
2
Name: roundcubemail
3
Version: %{rc_version}
4
5
-Release: 1%{?dot_rel_suffix}%{?dist}
6
+Release: 3%{?dot_rel_suffix}%{?dist}
7
8
Summary: Roundcube Webmail is a browser-based multilingual IMAP client
9
10
11
%{__rm} -rf %{plugindir}/enigma/home >/dev/null 2>&1 || :
12
fi
13
14
+%pretrans -p <lua>
15
+-- Required because directory is replaced with symlink per
16
+-- https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
17
+path = "/usr/share/roundcubemail/skins/elastic/images"
18
+st = posix.stat(path)
19
+if st and st.type == "directory" then
20
+ status = os.rename(path, path .. ".rpmmoved")
21
+ if not status then
22
+ suffix = 0
23
+ while not status do
24
+ suffix = suffix + 1
25
+ status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
26
+ end
27
+ os.rename(path, path .. ".rpmmoved")
28
+ end
29
+end
30
31
%posttrans
32
# replace default des string in config file for better security
33
34
%{_datadir}/%{name}/
35
%{_sharedstatedir}/%{name}/
36
37
+%ghost %{_datadir}/%{name}/skins/elastic/images.rpmmoved
38
+
39
%attr(0640,root,root) %{_var}/log/%{name}/
40
41
%defattr(-,root,root,-)
42