Bugfix/change a spec file (#514)

* Add a necessary sources

* Visual code changes

* Update appserver.spec
This commit is contained in:
Evgeniy Antonyuk 2022-02-09 10:25:10 +03:00 committed by GitHub
parent 3b3f4566b4
commit f4d6cdde59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +1,29 @@
%define debug_package %{nil}
%global product appserver
%global buildpath %{_var}/www/%{product}
%global sourcename AppServer-%GIT_BRANCH
Name: onlyoffice-appserver
Summary: Business productivity tools.
Group: Applications/Internet
Version: %version
Release: %release
Group: Applications/Internet
ExclusiveArch: x86_64
AutoReqProv: no
URL: http://onlyoffice.com
Vendor: Ascensio System SIA
Packager: Ascensio System SIA <support@onlyoffice.com>
ExclusiveArch: x86_64
AutoReq: no
AutoProv: no
License: AGPLv3
Source0: https://github.com/ONLYOFFICE/%{product}/archive/%GIT_BRANCH.tar.gz
Source0: https://github.com/ONLYOFFICE/%{product}/archive/%GIT_BRANCH.tar.gz#/%{sourcename}.tar.gz
Source1: https://github.com/ONLYOFFICE/document-templates/archive/main/community-server.tar.gz#/document-templates-main-community-server.tar.gz
Source2: https://github.com/ONLYOFFICE/dictionaries/archive/master.tar.gz#/dictionaries-master.tar.gz
Source3: https://github.com/ONLYOFFICE/CommunityServer/archive/master.tar.gz#/CommunityServer-master.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
@ -40,7 +45,7 @@ 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.
@ -49,7 +54,10 @@ App Server is a platform for building your own online office by connecting ONLYO
%prep
rm -rf %{_rpmdir}/%{_arch}/%{name}-*
%setup -n %{sourcename}
%setup -b1 -b2 -b3 -n %{sourcename}
mv -f %{_builddir}/document-templates-main-community-server/* %{_builddir}/%{sourcename}/products/ASC.Files/Server/DocStore/
mv -f %{_builddir}/dictionaries-master/* %{_builddir}/%{sourcename}/common/Tests/Frontend.Translations.Tests/dictionaries/
mv -f %{_builddir}/CommunityServer-master/build/sql/* %{_builddir}/%{sourcename}/build/install/docker/config/
%include build.spec
@ -74,6 +82,6 @@ chmod +x %{_bindir}/%{product}-configuration.sh
%clean
rm -rf %{buildroot}
rm -rf %{_builddir} %{buildroot}
%changelog