diff options
author | Andras Timar <andras.timar@collabora.com> | 2016-03-15 02:13:55 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-03-15 02:13:55 +0300 |
commit | b323d9512d02ffe68876e3d37879faaabd023e24 (patch) | |
tree | 084e98e67e50ab8d761613ce96cc653c46c77b75 /owncloud-collabora-online.spec.in | |
parent | f0f3e42c0e1ce423464ae50742be572b49a97bec (diff) |
internal name: richdocuments, name: Collabora Online, version: 0.9.0
Diffstat (limited to 'owncloud-collabora-online.spec.in')
-rw-r--r-- | owncloud-collabora-online.spec.in | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/owncloud-collabora-online.spec.in b/owncloud-collabora-online.spec.in new file mode 100644 index 00000000..530803cd --- /dev/null +++ b/owncloud-collabora-online.spec.in @@ -0,0 +1,62 @@ +# +# spec file for package owncloud-ccs +# +# 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-ccs +Version: @PACKAGE_VERSION@ +Release: 0 +Vendor: Collabora +Summary: Collabora CloudSuite plugin for ownCloud +License: MPL +Source0: owncloud-ccs-@PACKAGE_VERSION@.tar.gz +BuildArch: noarch +Requires: owncloud +Requires: loolwsd +Requires: loleaflet + +%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 + +chown -R wwwrun:www /srv/www/htdocs/owncloud/apps +su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ app:enable richdocuments" wwwrun +getent group loolwww >/dev/null || groupadd -r loolwww +usermod -a -G loolwww wwwrun +usermod -a -G loolwww lool +mkdir -p /srv/www/htdocs/owncloud/apps/richdocuments/documents-tmp +chown wwwrun:loolwww /srv/www/htdocs/owncloud/apps/richdocuments/documents-tmp +chmod g+ws /srv/www/htdocs/owncloud/apps/richdocuments/documents-tmp +chmod o-rwx /srv/www/htdocs/owncloud/apps/richdocuments/documents-tmp +systemctl restart apache2.service + +%changelog +* Thu Oct 22 2015 Andras Timar +- Initial RPM release |