DocSpace-client/build/install/rpm/SPECS/appserver.spec
Evgeniy Antonyuk 4e5bd47c26
Feature/rpm update (#229)
* Add a build and install new services

* Change the packaging for the new build script

* Correct the configuration

* Add a bug fix with a mysql password containing ';'

* Fix services crash error

* Fix incorrect value addition in mysql

* Fix a rabbitmq error on CentOS 8

* Fix creating an invalid mysql password

* Fix non-existent tables Tenants

* Add an update to 1click

* Code correction

* Add two new services

* Add the buildpath variable

* Code Optimization

* Renaming services and creating a variable for the app name

* Revert "Merge branch 'feature/rpm-update' of https://github.com/ONLYOFFICE/AppServer into feature/rpm-update"

This reverts commit 19c1eae6f6e3f22f4cbc0e3276fa892b0d9fa97a, reversing
changes made to fb36a996366291486e3b9f5a6f46398916ef8a6c.

* Code Optimization

* Code optimization

* Code optimization and creating a variables
2021-05-20 17:39:38 +03:00

79 lines
2.0 KiB
RPMSpec

%define debug_package %{nil}
%global product appserver
%global buildpath %{_var}/www/%{product}
%global sourcename AppServer-%GIT_BRANCH
Name: onlyoffice-appserver
Summary: Business productivity tools.
Version: %version
Release: %release
Group: Applications/Internet
URL: http://onlyoffice.com
Vendor: Ascensio System SIA
Packager: Ascensio System SIA <support@onlyoffice.com>
ExclusiveArch: x86_64
AutoReq: no
AutoProv: no
License: GPLv3
Source0: https://github.com/ONLYOFFICE/%{product}/archive/%GIT_BRANCH.tar.gz
BuildRequires: nodejs >= 12.0
BuildRequires: yarn
BuildRequires: libgdiplus
BuildRequires: dotnet-sdk-5.0
Requires: %name-api-system
Requires: %name-calendar
Requires: %name-crm
Requires: %name-backup
Requires: %name-storage-encryption
Requires: %name-storage-migration
Requires: %name-files
Requires: %name-files-services
Requires: %name-mail
Requires: %name-notify
Requires: %name-people-server
Requires: %name-projects-server
Requires: %name-socket
Requires: %name-studio-notify
Requires: %name-telegram-service
Requires: %name-thumbnails
Requires: %name-urlshortener
Requires: %name-api
Requires: %name-studio
Requires: %name-proxy
AutoReqProv: no
%description
App Server is a platform for building your own online office by connecting ONLYOFFICE modules packed as separate apps.
%include package.spec
%prep
rm -rf %{_rpmdir}/%{_arch}/%{product}-*
%setup -n %{sourcename}
%include build.spec
%include install.spec
%include files.spec
%pre
%pre common
getent group onlyoffice >/dev/null || groupadd -r onlyoffice
getent passwd onlyoffice >/dev/null || useradd -r -g onlyoffice -s /sbin/nologin onlyoffice
%post
chmod +x %{_bindir}/%{product}-configuration.sh
%preun
%postun
%clean
rm -rf %{buildroot}
%changelog