forked from Zimbra-Community/owncloud-zimlet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
owncloud-zimlet.spec
56 lines (36 loc) · 1.29 KB
/
owncloud-zimlet.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Name: owncloud-zimlet
Version: 0.4.1
Release: 1%{?dist}
Summary: Zimbra Owncloud integration zimlet
Group: Applications/Internet
License: GPLv2
URL: https://github.com/Zimbra-Community/owncloud-zimlet
Source0: https://github.com/Zimbra-Community/owncloud-zimlet/archive/%{version}.tar.gz
Requires: zimbra-core >= 8.5
BuildRequires: zip
BuildArch: noarch
%description
Add ownCloud or any WebDAV server to your Zimbra webmail.
%prep
%setup -q
%build
cd tk_barrydegraaff_owncloud_zimlet
zip -r tk_barrydegraaff_owncloud_zimlet.zip *
%install
mkdir -p $RPM_BUILD_ROOT/opt/zimbra/zimlets-extra
cp -R tk_barrydegraaff_owncloud_zimlet/tk_barrydegraaff_owncloud_zimlet.zip $RPM_BUILD_ROOT/opt/zimbra/zimlets-extra
%post
su - zimbra -c "zmzimletctl deploy /opt/zimbra/zimlets-extra/tk_barrydegraaff_owncloud_zimlet.zip"
%posttrans
su - zimbra -c "zmprov fc all"
su - zimbra -c "zmmailboxdctl restart"
%preun
if [ $1 -eq 0 ] ; then
su - zimbra -c "zmzimletctl undeploy tk_barrydegraaff_owncloud_zimlet"
su - zimbra -c "zmprov fc all"
fi
%files
/opt/zimbra/zimlets-extra/tk_barrydegraaff_owncloud_zimlet.zip
%changelog
* Sat May 28 2016 Truong Anh Tuan <[email protected]> - 0.4.1-1
- Initial release 0.4.1 from upstream.