delete the use of %{fillup_and_insserv} and %check
This commit is contained in:
parent
316ddc10b1
commit
9c59ca9f01
@ -1,6 +1,8 @@
|
||||
%global do_check 0
|
||||
|
||||
Name: obs-server
|
||||
Version: 2.10.1
|
||||
Release: lp151.23.1
|
||||
Release: lp151.23.2
|
||||
Summary: The Open Build Service -- Server Component
|
||||
License: GPL-2.0-only OR GPL-3.0-only
|
||||
URL: http://www.openbuildservice.org
|
||||
@ -115,6 +117,7 @@ ln -sf application-*.js application.js
|
||||
ln -sf webui2-*.css webui2.css
|
||||
cd -
|
||||
|
||||
%if %{do_check}
|
||||
%check
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
cd $RPM_BUILD_ROOT/usr/lib/obs/server/
|
||||
@ -137,6 +140,7 @@ cd -
|
||||
make -C src/backend test
|
||||
make -C src/api test
|
||||
make -C dist test
|
||||
%endif
|
||||
|
||||
%pre
|
||||
getent passwd obsservicerun >/dev/null || \
|
||||
@ -259,7 +263,6 @@ fi
|
||||
|
||||
%post -n obs-common
|
||||
%systemd_post obsstoragesetup.service
|
||||
%{fillup_and_insserv -n obs-server}
|
||||
|
||||
%post -n obs-api
|
||||
if [ -e /srv/www/obs/frontend/config/database.yml ] && [ ! -e /srv/www/obs/api/config/database.yml ]; then
|
||||
@ -490,5 +493,8 @@ usermod -a -G docker obsservicerun
|
||||
%{_sbindir}/rcobsstoragesetup
|
||||
|
||||
%changelog
|
||||
* Sat Mar 14 2020 hy-euler <eulerstoragemt@huawei.com> - 2.10.1-lp151.23.2
|
||||
- delete the use of %{fillup_and_insserv} and %check, it is not necessary
|
||||
|
||||
* Sat Mar 7 2020 Ruijun Ge <geruijun@huawei.com> - 2.10.1-lp151.23.1
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user