55 lines
1.5 KiB
RPMSpec
55 lines
1.5 KiB
RPMSpec
#
|
|
# spec file for package system-user-vdsm
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
%global user vdsm
|
|
|
|
Name: system-user-%{user}
|
|
Summary: System user and group '%{user}'
|
|
Version: 1.0.0
|
|
Release: 0
|
|
URL: https://github.com/oVirt/vdsm
|
|
License: Apache-2.0
|
|
Group: Applications/System
|
|
Source: %{name}.sysusers
|
|
Provides: user(%{user})
|
|
Provides: group(%{user})
|
|
Requires(pre): group(qemu)
|
|
Requires(pre): group(sanlock)
|
|
Requires(pre): group(ovirtimg)
|
|
BuildArch: noarch
|
|
BuildRequires: sysuser-tools
|
|
%{?sysusers_requires}
|
|
|
|
%description
|
|
This packages provides a system user and group for %{user}.
|
|
|
|
%prep
|
|
|
|
%build
|
|
%sysusers_generate_pre %{SOURCE0} %{name}
|
|
|
|
%install
|
|
install -D -m 0644 %{SOURCE0} %{buildroot}%{_sysusersdir}/%{name}.conf
|
|
|
|
%pre -f %{name}.pre
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%{_sysusersdir}/%{name}.conf
|
|
|
|
%changelog
|