Skip to content

Add new package citus for work item 47499297 #13653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: 3.0-dev
Choose a base branch
from
Prev Previous commit
Next Next commit
Add shadow utils for useradd command
  • Loading branch information
cyberbandya007 committed May 1, 2025
commit b6ed51456e9f3d5523906b633c532cdb58a8977e
5 changes: 5 additions & 0 deletions SPECS/citus/citus.spec
Original file line number Diff line number Diff line change
@@ -14,6 +14,9 @@ BuildRequires: lz4-devel
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(icu-uc)
Requires: postgresql
%if 0%{?with_check}
Requires: shadow-utils
%endif
Provides: %{name}

%description
@@ -51,6 +54,7 @@ make %{?_smp_mflags}
%{__cp} NOTICE %{buildroot}%{_docdir}/postgresql/extension/NOTICE-%{name}

%check
%if 0%{?with_check}
mkdir -p /run/postgresql
useradd -s /usr/bin/sh test
usermod -a -G root test
@@ -60,6 +64,7 @@ chmod -R g+w %{_datadir}/postgresql
chmod -R g+w /run/postgresql
chown -R test .
su test -s /bin/sh -c 'make check'
%endif

%files
%defattr(-,root,root,-)