diff options
author | Andras Timar <andras.timar@collabora.com> | 2015-10-29 20:46:24 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-10-29 20:46:35 +0300 |
commit | 9a7c7396613543d76436f91b682efc6917868e65 (patch) | |
tree | 919224a09946714f97d14144f40bfd7afa8dd4cb | |
parent | 7593ec613febaf19ad4d60635335e269afffec26 (diff) |
RPM packaging for our ownCloud app
-rw-r--r-- | Makefile | 13 | ||||
-rw-r--r-- | owncloud-ccs.spec.in | 63 |
2 files changed, 76 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..5c40afd3 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +VERSION=1.0.0 + +.PHONY: dist +dist: owncloud-ccs.spec + rm -rf owncloud-ccs-$(VERSION) + mkdir owncloud-ccs-$(VERSION) + cp -ra *.php assets controller img l10n appinfo css js lib templates owncloud-ccs-$(VERSION) + tar cfz owncloud-ccs-$(VERSION).tar.gz owncloud-ccs-$(VERSION) + rm -rf owncloud-ccs-$(VERSION) + +owncloud-ccs.spec: owncloud-ccs.spec.in Makefile + sed -e 's/@PACKAGE_VERSION@/$(VERSION)/g' <owncloud-ccs.spec.in >owncloud-ccs.spec + diff --git a/owncloud-ccs.spec.in b/owncloud-ccs.spec.in new file mode 100644 index 00000000..469899f6 --- /dev/null +++ b/owncloud-ccs.spec.in @@ -0,0 +1,63 @@ +# +# 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 +Requires: cloudsuite + +%description + +%prep +%setup -q + +%build + +%check + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}/srv/www/htdocs/owncloud/apps/documents +tar cf - . | (cd %{buildroot}/srv/www/htdocs/owncloud/apps/documents && tar xf -) + +%files +/srv/www/htdocs/owncloud/apps/documents + +%post + +chown -R wwwrun:www /srv/www/htdocs/owncloud/apps +su -s /bin/bash -c "php /srv/www/htdocs/owncloud/occ app:enable documents" 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/documents/documents-tmp +chown wwwrun:loolwww /srv/www/htdocs/owncloud/apps/documents/documents-tmp +chmod g+ws /srv/www/htdocs/owncloud/apps/documents/documents-tmp +chmod o-rwx /srv/www/htdocs/owncloud/apps/documents/documents-tmp +systemctl restart apache2.service + +%changelog +* Thu Oct 22 2015 Andras Timar +- Initial RPM release |