Evgeniy Antonyuk
2801e07035
* Correction of the missing package expect error * Correction of summary-ended-with-dot error * Correction of description-line-too-long error and change to the current text * Correction of non-executable-script error and dangerous-command-in-%post error * Correction of unstripped-binary-or-object error * Correction of non-standard-executable-perm error * Fix creation of libraries to support arm * Fix packaging of unnecessary configuration files * Correction of setup-not-quiet error * Correction of mixed-use-of-spaces-and-tabs error * Correction of no-cleaning-of-buildroot error * Correction of no-buildroot-tag error * Correction of no-changelogname-tag error * Temporary сorrection of summary-not-capitalized error * Temporary correction of no-description-tag error * Remove unused code * Disable packaging of debug information * Remove package_sysname * Add documentation packaging * Add rpmlintrc packaging * Fix documentation packaging * Correction of the hardcoded-packager-tag error * Change the substitution of version and release
25 lines
1.4 KiB
RPMSpec
25 lines
1.4 KiB
RPMSpec
%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"
|
|
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
|
|
|
|
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 {} \;
|