SHA256
1
0
forked from pool/systemd

- Convert systemd package to multibuild

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1206
This commit is contained in:
Franck Bui 2021-10-18 10:30:34 +00:00 committed by Git OBS Bridge
parent 89c84b0ccb
commit c439b9bec9
7 changed files with 18 additions and 13392 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>mini</package>
</multibuild>

View File

@ -1,15 +0,0 @@
#!/bin/sh
# This script is based on libcdio_spec-prepare.sh (thanks to sbrabec@suse.cz)
# create a -mini spec for systemd for bootstrapping
ORIG_SPEC=systemd
EDIT_WARNING="##### WARNING: please do not edit this auto generated spec file. Use the ${ORIG_SPEC}.spec! #####\n"
sed "s/^%define bootstrap .*$/${EDIT_WARNING}%define bootstrap 1/;
s/^%define mini .*$/${EDIT_WARNING}%define mini -mini/;
s/^Name:.*/&-mini/
" < ${ORIG_SPEC}.spec > ${ORIG_SPEC}-mini.spec
cp ${ORIG_SPEC}.changes ${ORIG_SPEC}-mini.changes
cp ${ORIG_SPEC}-rpmlintrc ${ORIG_SPEC}-mini-rpmlintrc
osc service localrun format_spec_file

View File

@ -1,11 +0,0 @@
addFilter(".*filelist-forbidden-systemd-userdirs /etc/systemd/.*\.conf")
addFilter(".*dbus-policy-allow-receive")
addFilter(".*devel-file-in-non-devel-package.*udev.pc.*")
addFilter("devel-file-in-non-devel-package.*/usr/share/pkgconfig/(udev|systemd)\.pc.*")
addFilter(".*missing-call-to-setgroups-before-setuid.*")
addFilter(".*systemd-service-without-service.*")
addFilter("env-script-interpreter")
addFilter(".*files-duplicate /usr/lib/systemd/.*")
addFilter(".*files-duplicated-waste.*")
addFilter(".*explicit-lib-dependency .*")
addFilter(".*tmpfile-not-in-filelist .*")

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 18 10:06:08 UTC 2021 - Franck Bui <fbui@suse.com>
- Convert systemd package to multibuild
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 15 12:09:44 UTC 2021 - Franck Bui <fbui@suse.com> Fri Oct 15 12:09:44 UTC 2021 - Franck Bui <fbui@suse.com>

View File

@ -21,8 +21,16 @@
# found at: https://github.com/openSUSE/systemd. # found at: https://github.com/openSUSE/systemd.
# #
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "mini"
%define bootstrap 1
%define mini -mini
%else
%define bootstrap 0 %define bootstrap 0
%define mini %nil %define mini %nil
%endif
%define min_kernel_version 4.5 %define min_kernel_version 4.5
%define suse_version +suse.47.g8521f8d22f %define suse_version +suse.47.g8521f8d22f
%define _testsuitedir /usr/lib/systemd/tests %define _testsuitedir /usr/lib/systemd/tests
@ -59,7 +67,7 @@
# Kept to ease migrations toward SLE # Kept to ease migrations toward SLE
%bcond_with split_usr %bcond_with split_usr
Name: systemd Name: systemd%{?mini}
URL: http://www.freedesktop.org/wiki/Software/systemd URL: http://www.freedesktop.org/wiki/Software/systemd
Version: 249.5 Version: 249.5
Release: 0 Release: 0
@ -163,7 +171,7 @@ Obsoletes: pm-utils <= 1.4.1
Obsoletes: suspend <= 1.0 Obsoletes: suspend <= 1.0
Obsoletes: systemd-analyze < 201 Obsoletes: systemd-analyze < 201
Source0: systemd-v%{version}%{suse_version}.tar.xz Source0: systemd-v%{version}%{suse_version}.tar.xz
Source1: %{name}-rpmlintrc Source1: systemd-rpmlintrc
Source2: systemd-user Source2: systemd-user
%if %{with sysvcompat} %if %{with sysvcompat}
Source3: systemd-sysv-convert Source3: systemd-sysv-convert