forked from pool/util-linux
Accepting request 834768 from home:sbrabec:branches:util-linux-multibuild
Fix flavor names and cross provides. OBS-URL: https://build.opensuse.org/request/show/834768 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=434
This commit is contained in:
parent
644790947b
commit
9ae5124e0d
@ -1,5 +1,4 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>mini</package>
|
<package>mini</package>
|
||||||
<package>standard</package>
|
|
||||||
<package>python</package>
|
<package>python</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Sep 8 00:10:31 UTC 2020 - Stanislav Brabec <sbrabec@suse.com>
|
Wed Sep 16 00:10:11 UTC 2020 - Stanislav Brabec <sbrabec@suse.com>
|
||||||
|
|
||||||
- Migrate multi-spec build to multibuild.
|
- Migrate multi-spec build to multibuild.
|
||||||
- Change packaging from per-partes build to mini+full build.
|
- Change packaging from per-partes build to mini+full build.
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
%define group_pl Development/Languages/Python
|
%define group_pl Development/Languages/Python
|
||||||
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "standard"
|
%if "%{flavor}" == ""
|
||||||
%define main_summary %summary_ul
|
%define main_summary %summary_ul
|
||||||
%define main_group %group_ul
|
%define main_group %group_ul
|
||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
@ -53,16 +53,6 @@
|
|||||||
%bcond_without python
|
%bcond_without python
|
||||||
%bcond_without systemd
|
%bcond_without systemd
|
||||||
%endif
|
%endif
|
||||||
%if "%{flavor}" == ""
|
|
||||||
%define main_summary %summary_ul
|
|
||||||
%define main_group %group_ul
|
|
||||||
%define psuffix %{nil}
|
|
||||||
%bcond_without base
|
|
||||||
# All python flavors are build separately. No module can be built together with base.
|
|
||||||
# This is a limitation of %%python_subpackages.
|
|
||||||
%bcond_with python
|
|
||||||
%bcond_without systemd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if ! %{defined _distconfdir}
|
%if ! %{defined _distconfdir}
|
||||||
%define _distconfdir %{_sysconfdir}
|
%define _distconfdir %{_sysconfdir}
|
||||||
@ -143,9 +133,9 @@ Patch2: Add-documentation-on-blacklisted-modules-to-mount-8-.patch
|
|||||||
Requires(pre): group(tty)
|
Requires(pre): group(tty)
|
||||||
%endif
|
%endif
|
||||||
PreReq: %install_info_prereq permissions
|
PreReq: %install_info_prereq permissions
|
||||||
%if "%{flavor}" == "standard"
|
%if "%{flavor}" == ""
|
||||||
# We do not want to provide these in the "mini" package.
|
# We do not want to provide these in the "mini" package.
|
||||||
# If util-linux-mini is not explicitly wanted, ZYPP should always pick "standard" flavor.
|
# If util-linux-mini is not explicitly wanted, ZYPP should always pick "" flavor.
|
||||||
Supplements: filesystem(minix)
|
Supplements: filesystem(minix)
|
||||||
Provides: fsck-with-dev-lock = %{version}
|
Provides: fsck-with-dev-lock = %{version}
|
||||||
# bnc#651598:
|
# bnc#651598:
|
||||||
@ -193,6 +183,7 @@ Recommends: which
|
|||||||
# Allows live build of packages using in BuildRequires: util-linux-mini.
|
# Allows live build of packages using in BuildRequires: util-linux-mini.
|
||||||
Provides: util-linux-mini = %{version}
|
Provides: util-linux-mini = %{version}
|
||||||
%else
|
%else
|
||||||
|
Provides: util-linux = %{version}
|
||||||
Conflicts: util-linux
|
Conflicts: util-linux
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@ -215,6 +206,7 @@ License: LGPL-2.1-or-later
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libblkid1
|
Conflicts: libblkid1
|
||||||
|
Provides: libblkid1 = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libblkid1-mini = %{version}
|
Provides: libblkid1-mini = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -229,6 +221,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libblkid1%{psuffix} = %{version}
|
Requires: libblkid1%{psuffix} = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libblkid-devel
|
Conflicts: libblkid-devel
|
||||||
|
Provides: libblkid-devel = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libblkid-mini-devel = %{version}
|
Provides: libblkid-mini-devel = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -244,6 +237,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libblkid%{psuffix}-devel = %{version}
|
Requires: libblkid%{psuffix}-devel = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libblkid-devel-static
|
Conflicts: libblkid-devel-static
|
||||||
|
Provides: libblkid-devel-static = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libblkid-mini-devel-static = %{version}
|
Provides: libblkid-mini-devel-static = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -258,6 +252,7 @@ License: LGPL-2.1-or-later
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libfdisk1
|
Conflicts: libfdisk1
|
||||||
|
Provides: libfdisk1 = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libfdisk1-mini = %{version}
|
Provides: libfdisk1-mini = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -272,6 +267,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libfdisk1%{psuffix} = %{version}
|
Requires: libfdisk1%{psuffix} = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libfdisk-devel
|
Conflicts: libfdisk-devel
|
||||||
|
Provides: libfdisk-devel = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libfdisk-mini-devel = %{version}
|
Provides: libfdisk-mini-devel = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -287,6 +283,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libfdisk%{psuffix}-devel = %{version}
|
Requires: libfdisk%{psuffix}-devel = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libfdisk-devel-static
|
Conflicts: libfdisk-devel-static
|
||||||
|
Provides: libfdisk-devel-static = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libfdisk-mini-devel-static = %{version}
|
Provides: libfdisk-mini-devel-static = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -301,6 +298,7 @@ License: LGPL-2.1-or-later
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libmount1
|
Conflicts: libmount1
|
||||||
|
Provides: libmount1 = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libmount1-mini = %{version}
|
Provides: libmount1-mini = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -316,6 +314,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libmount1%{psuffix} = %{version}
|
Requires: libmount1%{psuffix} = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libmount-devel
|
Conflicts: libmount-devel
|
||||||
|
Provides: libmount-devel = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libmount-mini-devel = %{version}
|
Provides: libmount-mini-devel = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -330,6 +329,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libmount%{psuffix}-devel = %{version}
|
Requires: libmount%{psuffix}-devel = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libmount-devel-static
|
Conflicts: libmount-devel-static
|
||||||
|
Provides: libmount-devel-static = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libmount-mini-devel-static = %{version}
|
Provides: libmount-mini-devel-static = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -343,6 +343,7 @@ License: LGPL-2.1-or-later
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libsmartcols1
|
Conflicts: libsmartcols1
|
||||||
|
Provides: libsmartcols1 = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libsmartcols1-mini = %{version}
|
Provides: libsmartcols1-mini = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -357,6 +358,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libsmartcols1%{psuffix} = %{version}
|
Requires: libsmartcols1%{psuffix} = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libsmartcols-devel
|
Conflicts: libsmartcols-devel
|
||||||
|
Provides: libsmartcols-devel = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libsmartcols-mini-devel = %{version}
|
Provides: libsmartcols-mini-devel = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -371,6 +373,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libsmartcols%{psuffix}-devel = %{version}
|
Requires: libsmartcols%{psuffix}-devel = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libsmartcols-devel-static
|
Conflicts: libsmartcols-devel-static
|
||||||
|
Provides: libsmartcols-devel-static = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libsmartcols-mini-devel-static = %{version}
|
Provides: libsmartcols-mini-devel-static = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -384,6 +387,7 @@ License: BSD-3-Clause
|
|||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libuuid1
|
Conflicts: libuuid1
|
||||||
|
Provides: libuuid1 = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libuuid1-mini = %{version}
|
Provides: libuuid1-mini = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -398,6 +402,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libuuid1%{psuffix} = %{version}
|
Requires: libuuid1%{psuffix} = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libuuid-devel
|
Conflicts: libuuid-devel
|
||||||
|
Provides: libuuid-devel = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libuuid-mini-devel = %{version}
|
Provides: libuuid-mini-devel = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -413,6 +418,7 @@ Group: Development/Libraries/C and C++
|
|||||||
Requires: libuuid%{psuffix}-devel = %{version}
|
Requires: libuuid%{psuffix}-devel = %{version}
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: libuuid-devel-static
|
Conflicts: libuuid-devel-static
|
||||||
|
Provides: libuuid-devel-static = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: libuuid-mini-devel-static = %{version}
|
Provides: libuuid-mini-devel-static = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -436,6 +442,7 @@ Conflicts: util-linux < 2.25
|
|||||||
%systemd_requires
|
%systemd_requires
|
||||||
%if "%{flavor}" == "mini"
|
%if "%{flavor}" == "mini"
|
||||||
Conflicts: uuidd
|
Conflicts: uuidd
|
||||||
|
Provides: uuidd = %{version}
|
||||||
%else
|
%else
|
||||||
Provides: uuidd-mini = %{version}
|
Provides: uuidd-mini = %{version}
|
||||||
%endif
|
%endif
|
||||||
@ -691,7 +698,7 @@ rm -r %{buildroot}{%{_bindir},%{_mandir},%{_datadir},%{_includedir},%{_libdir}/{
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
# Perform testsuite with the standard build only.
|
# Perform testsuite with the standard build only.
|
||||||
%if "%{flavor}" == "standard"
|
%if "%{flavor}" == ""
|
||||||
# mark some tests "known_fail"
|
# mark some tests "known_fail"
|
||||||
#
|
#
|
||||||
%if 0%{?qemu_user_space_build}
|
%if 0%{?qemu_user_space_build}
|
||||||
|
Loading…
Reference in New Issue
Block a user