Compare commits

...

3 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek 1eb8bc72df Add deps for https://github.com/systemd/systemd/pull/8819 2018-04-26 12:17:01 +02:00
Zbigniew Jędrzejewski-Szmek ecd200ba43 Add dependencies useful for hwdb tests 2018-04-10 22:00:08 +02:00
Frederic Lepied 12425b1785 adapt for DLRN 2018-03-11 21:34:58 +01:00
1 changed files with 13 additions and 0 deletions

View File

@ -48,10 +48,12 @@ i=1; for j in 00*patch; do printf "Patch%04d: %s\n" $i $j; i=$((i+1));done|
GIT_DIR=../../src/systemd/.git git diffab -M v233..master@{2017-06-15} -- hwdb/[67]* hwdb/parse_hwdb.py > hwdb.patch
%endif
%if 0%{?dlrn} == 0
Patch0001: 0001-test-cgroup-util-bail-out-when-running-under-mock.patch
Patch0002: 0002-basic-fs-util-skip-fsync_directory_of_file-if-proc-s.patch
Patch0998: 0998-resolved-create-etc-resolv.conf-symlink-at-runtime.patch
%endif
%global num_patches %{lua: c=0; for i,p in ipairs(patches) do c=c+1; end; print(c);}
@ -105,6 +107,9 @@ BuildRequires: git
%endif
BuildRequires: meson >= 0.43
BuildRequires: gettext
BuildRequires: python3-pyparsing
BuildRequires: python3-evdev
BuildRequires: perl(IPC::SysV)
Requires(post): coreutils
Requires(post): sed
@ -263,6 +268,7 @@ They can be useful to test systemd internals.
%prep
%setup -q %{?gitcommit:-n %{name}-stable-%{gitcommit}}
%if 0%{?dlrn} == 0
%if %{num_patches}
git init
git config user.email "systemd-maint@redhat.com"
@ -274,6 +280,8 @@ They can be useful to test systemd internals.
git am %{patches}
%endif
%endif
# Restore systemd-user pam config from before "removal of Fedora-specific bits"
cp -p %{SOURCE12} src/login/
@ -423,6 +431,11 @@ install -Dm0644 -t %{buildroot}%{system_unit_dir}/systemd-udev-trigger.service.d
install -Dm0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE11}
install -D -t %{buildroot}/usr/lib/systemd/ %{SOURCE3}
%if 0%{?dlrn} == 0
mkdir -p %{buildroot}/etc/polkit-1/localauthority/10-vendor.d
mv %{buildroot}/var/lib/polkit-1/localauthority/10-vendor.d/systemd-networkd.pkla \
%{buildroot}/etc/polkit-1/localauthority/10-vendor.d/
%endif
%find_lang %{name}