DocSpace-client/build/install/rpm/SPECS/build.spec

25 lines
1.4 KiB
RPMSpec
Raw Normal View History

%build
bash build/install/common/systemd/build.sh
bash build/install/common/build-frontend.sh --srcpath %{_builddir}/%{sourcename}
bash build/install/common/build-backend.sh --srcpath %{_builddir}/%{sourcename}
bash build/install/common/publish-backend.sh --srcpath %{_builddir}/%{sourcename} -ar "-r linux-x64"
Bugfix/lintian error (#1158) * Correction of systemd-service-file-references-to-obsolete-target error * Correction of the changelog format * Correction of package-uses-deprecated-debhelper-compat-version * Correction of maintainer-script-needs-depends-on-adduser * Correction of missing-debconf-dependency * Correction of extended-description-is-probably-too-short * Correction of various license format errors * Correction of maintainer-script-lacks-home-in-adduser error * Correction of duplicate-updaterc.d-calls-in-postinst error * Correction of init.d-script-not-included-in-package error * Correction of the error of missing the onlyoffice-login.conf file * Correction of binary-from-other-architecture error * Correction of missing-debian-source-format error * Temporarily correct descriptions * Correction of debhelper-but-no-misc-depends error * Correct of missing-dependency-on-line error * Correct of unstripped-binary-or-object error * Correct of maintainer-script-lacks-debhelper-token error * Change templates description * Correction of untranslatable-debconf-templates error * Fix configuration according to po-debconf recommendations * Fix configuration according to po-debconf recommendations * Fix condition for detecting existence of file * Correct of script-with-language-extension error * Correct of script-with-language-extension error * Remove linux-arm runtimes packaging * Add lintian-overrides * Fix lintian-overrides creation condition * Fix lintian-overrides creation condition * Add overrides for the main package * Add ignoring untranslatable-debconf-templates errors * Errors correction: package-contains-eslint-config-file, package-contains-npm-ignore-file, package-contains-vcs-control-file * Correction of node_modules error output * Fix backup-file-in-package and macos-ds-store-file-in-package errors * Add a override of the unusual-interpreter error * Fix removing files that cause errors
2023-02-01 08:06:03 +00:00
rename -f -v "s/product([^\/]*)$/%{product}\$1/g" build/install/common/*
sed -i "s/{{product}}/%{product}/g" %{_builddir}/%{sourcename}/build/install/common/logrotate/product-common
Bugfix/lintian error (#1158) * Correction of systemd-service-file-references-to-obsolete-target error * Correction of the changelog format * Correction of package-uses-deprecated-debhelper-compat-version * Correction of maintainer-script-needs-depends-on-adduser * Correction of missing-debconf-dependency * Correction of extended-description-is-probably-too-short * Correction of various license format errors * Correction of maintainer-script-lacks-home-in-adduser error * Correction of duplicate-updaterc.d-calls-in-postinst error * Correction of init.d-script-not-included-in-package error * Correction of the error of missing the onlyoffice-login.conf file * Correction of binary-from-other-architecture error * Correction of missing-debian-source-format error * Temporarily correct descriptions * Correction of debhelper-but-no-misc-depends error * Correct of missing-dependency-on-line error * Correct of unstripped-binary-or-object error * Correct of maintainer-script-lacks-debhelper-token error * Change templates description * Correction of untranslatable-debconf-templates error * Fix configuration according to po-debconf recommendations * Fix configuration according to po-debconf recommendations * Fix condition for detecting existence of file * Correct of script-with-language-extension error * Correct of script-with-language-extension error * Remove linux-arm runtimes packaging * Add lintian-overrides * Fix lintian-overrides creation condition * Fix lintian-overrides creation condition * Add overrides for the main package * Add ignoring untranslatable-debconf-templates errors * Errors correction: package-contains-eslint-config-file, package-contains-npm-ignore-file, package-contains-vcs-control-file * Correction of node_modules error output * Fix backup-file-in-package and macos-ds-store-file-in-package errors * Add a override of the unusual-interpreter error * Fix removing files that cause errors
2023-02-01 08:06:03 +00:00
rm -rf %{_builddir}/%{sourcename}/ASC.Migration.Runner/service/runtimes/linux-arm*
rm -f %{_builddir}/%{sourcename}/config/nginx/onlyoffice-login.conf
sed -i "s@var/www@var/www/%{product}@g" config/nginx/*.conf && sed -i "s@var/www@var/www/%{product}@g" config/nginx/includes/*.conf
json -I -f %{_builddir}/%{sourcename}/config/appsettings.services.json -e "this.logPath=\"/var/log/onlyoffice/%{product}\"" -e "this.socket={ 'path': '../ASC.Socket.IO/' }" \
-e "this.ssoauth={ 'path': '../ASC.SsoAuth/' }" -e "this.core={ 'products': { 'folder': '%{buildpath}/products', 'subfolder': 'server'} }"
find %{_builddir}/%{sourcename}/publish/ \
%{_builddir}/%{sourcename}/ASC.Migration.Runner \
-depth -type f -regex '.*\(dll\|dylib\|so\)$' -exec chmod 755 {} \;
find %{_builddir}/%{sourcename}/publish/ \
%{_builddir}/%{sourcename}/ASC.Migration.Runner \
-depth -type f -regex '.*\(so\)$' -exec strip {} \;