Jan Engelhardt 2023-01-17 15:51:02 +00:00 committed by Git OBS Bridge
parent 5b4465a255
commit 5b43b8b32f
3 changed files with 3 additions and 32 deletions

View File

@ -8,7 +8,7 @@ Standards-Version: 3.9.4
Package: grommunio-web
Architecture: all
Section: web
Depends: system-user-groweb, ${misc:Depends}, gromox (>= 1.27), php-bcmath,
Depends: system-user-grommunio, ${misc:Depends}, gromox (>= 1.27), php-bcmath,
php-curl, php-gd, php-iconv, php-json, php-mbstring,
php-sqlite3, php-sysvshm, php-xml, php-zip, mapi-header-php, ${dist:Depends}
Provides: grommunio-web-plugin-zdeveloper, grommunio-web-plugin-webmanual, grommunio-web-plugin-folderwidgets, grommunio-web-plugin-quickitems, grommunio-web-plugin-titlecounter, grommunio-web-plugin-desktopnotifications, grommunio-web-plugin-filepreviewer

View File

@ -57,17 +57,10 @@ BuildRequires: libxml2-tools
%else
BuildRequires: libxml2
%endif
%if 0%{?suse_version} >= 1500
BuildRequires: sysuser-tools
%sysusers_requires
%else
Requires(pre): %_sbindir/groupadd
Requires(pre): %_sbindir/useradd
%endif
BuildArch: noarch
BuildRequires: user(groweb)
Obsoletes: system-user-groweb
Provides: system-user-groweb
Requires(pre): user(groweb)
Requires: gromox >= 1.27
Requires: mapi-header-php
%if 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora_version}
@ -130,11 +123,6 @@ echo "%version-%release" | sha1sum | cut -b 1-8 >cachebuster
%build
%make_build -j1
%if 0%{?suse_version} >= 1500
%sysusers_generate_pre %_sourcedir/system-user-groweb.conf %name system-user-groweb.conf
%else
: >>"%name.pre"
%endif
%install
b="%buildroot"
@ -177,21 +165,10 @@ for dir in "$b/%_datadir/%name/plugins"/*; do
fi
done
%if 0%{?suse_version} >= 1500
mkdir -p "%buildroot/%_sysusersdir"
install -m 0644 "%_sourcedir/system-user-groweb.conf" "%buildroot/%_sysusersdir/"
%endif
%if 0%{?fdupes:1}
%fdupes %buildroot/%_prefix
%endif
%pre -f %name.pre
%if 0%{?suse_version} < 1500
getent group groweb >/dev/null || %_sbindir/groupadd -r groweb
getent passwd groweb >/dev/null || %_sbindir/useradd -g groweb -s /bin/false \
-r -c "user for %name" -d "%_localstatedir/lib/groweb" groweb
%endif
%post
# clear translation caches
ipcrm -M 0x950412de 2>/dev/null || :
@ -237,10 +214,6 @@ ipcrm -M 0x950412de 2>/dev/null || :
%_datadir/%name/cachebuster
%attr(750,root,root) /var/log/grommunio/
%if 0%{?suse_version} >= 1500
%_sysusersdir/*.conf
%endif
%dir %langdir/
%lang(af_ZA) %langdir/af_ZA.UTF-8
%lang(am_ET) %langdir/am_ET.UTF-8

View File

@ -1,2 +0,0 @@
#Type Name ID GECOS Home directory Shell
u groweb - "user for grommunio-web" /var/lib/groweb -