LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File owncloud-collabora-online.spec of Package owncloud-collabora-online (Project home:Kenzy:packages)

Name:      owncloud-collabora-online
Version:   1.1.13
Release:   1
Vendor:    Collabora
Summary:   Collabora CloudSuite plugin for ownCloud
License:   MPL
Url:       https://github.com/owncloud/richdocuments
Source0:   %{name}-%{version}.tar.gz
Source1:   libreOnline_install
BuildArch: noarch
Requires:  owncloud loolwsd
Requires:  php-pecl-apcu php-pecl-memcached memcached php-pecl-redis redis

%description

%prep
%setup -q
#perl -pi -w -e 's|9.0|9.2|g;' appinfo/info.xml

%build

%check

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/var/www/html/owncloud/apps/richdocuments
tar cf - . | (cd %{buildroot}/var/www/html/owncloud/apps/richdocuments && tar xf -)

install -d -m755 %{buildroot}%{_bindir}
install -p -m755 %{S:1} %{buildroot}%{_bindir}

%files
%defattr(-,root,root,-)
/var/www/html/owncloud/apps/richdocuments
%{_bindir}/libreOnline_install

#%post

#chown -R apache. /var/www/html/owncloud

#IP=`ifconfig | awk '/inet /{print substr($2,1)}' | grep -v 127.0.0.1 | head -1`
#su -s /bin/bash -c "php /var/www/html/owncloud/occ upgrade" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='\OC\Memcache\APCu' memcache.local" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='\OC\Memcache\APCu' memcache.distributed" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='\OC\Memcache\APCu' memcache.locking" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='array('host' => 'localhost', 'port' => 6379)' redis" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ app:enable richdocuments" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ config:app:set --value='http://$IP:9980' richdocuments wopi_url" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='true' forcessl" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value='true' forceSSLforSubdomains" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value=10 preview_max_scale_factor" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ config:system:set --value=50 preview_max_filesize_image" apache
#su -s /bin/bash -c "php /var/www/html/owncloud/occ maintenance:mode --off" apache

#systemctl restart httpd

%changelog
* Tue Oct 18 2016 Muhammad Shaban <Mr.Muhammad@linuxac.org> - 1.1.6-1
- update

* Mon Aug 08 2016 Muhammad Shaban <Mr.Muhammad@linuxac.org> - 1.1.3-1
- update

* Mon Apr 04 2016 Muhammad Shaban <Mr.Muhammad@linuxac.org> - 0.9.1-1
- Initial build

* Thu Oct 22 2015 Andras Timar
- Initial RPM release