blob: 9285afc996f6a9d367408c18cb2813e76d5b84de (
plain)
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
57
58
59
60
61
|
#
# spec file for package owncloud-collabora-online
#
# Copyright (c) 2015 Collabora
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: owncloud-collabora-online
Version: @PACKAGE_VERSION@
Release: 0
Vendor: Collabora
Summary: Collabora CloudSuite plugin for ownCloud
License: MPL
Source0: owncloud-collabora-online-@PACKAGE_VERSION@.tar.gz
BuildArch: noarch
Requires: owncloud
Requires: php5-apcu
Provides: owncloud-ccs = 1.0.7
Obsoletes: owncloud-ccs <= 1.0.7
%description
%prep
%setup -q
%build
%check
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/srv/www/htdocs/owncloud/apps/richdocuments
tar cf - . | (cd %{buildroot}/srv/www/htdocs/owncloud/apps/richdocuments && tar xf -)
%files
/srv/www/htdocs/owncloud/apps/richdocuments
%post
IP=`/sbin/ifconfig | awk '/inet addr/{print substr($2,6)}' | grep -v 127.0.0.1 | head -1`
chown -R wwwrun:www /srv/www/htdocs/owncloud/apps
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ upgrade" wwwrun
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ config:system:set --value='\OC\Memcache\APCu' memcache.local" wwwrun
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ app:enable richdocuments" wwwrun
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ config:app:set --value='http://$IP:9980' richdocuments wopi_url" wwwrun
su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ maintenance:mode --off" wwwrun
systemctl restart apache2.service
%changelog
* Thu Oct 22 2015 Andras Timar
- Initial RPM release
|