system-user-vdsm/system-user-vdsm.spec

55 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

2024-05-17 16:33:42 +02:00
#
# 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/
#
2024-05-17 19:31:32 +02:00
%global user vdsm
2024-05-17 16:33:42 +02:00
2024-05-17 19:31:32 +02:00
Name: system-user-%{user}
Summary: System user and group '%{user}'
2024-05-17 16:33:42 +02:00
Version: 1.0.0
2024-05-17 19:31:32 +02:00
Release: 0
URL: https://github.com/oVirt/vdsm
2024-05-17 16:33:42 +02:00
License: Apache-2.0
Group: Applications/System
2024-05-17 19:31:32 +02:00
Source: %{name}.sysusers
Provides: user(%{user})
Provides: group(%{user})
2024-05-17 16:33:42 +02:00
Requires(pre): group(qemu)
Requires(pre): group(sanlock)
Requires(pre): group(ovirtimg)
2024-05-17 19:31:32 +02:00
BuildArch: noarch
BuildRequires: sysuser-tools
%{?sysusers_requires}
2024-05-17 16:33:42 +02:00
%description
2024-05-17 19:31:32 +02:00
This packages provides a system user and group for %{user}.
2024-05-17 16:33:42 +02:00
%prep
%build
2024-05-17 19:31:32 +02:00
%sysusers_generate_pre %{SOURCE0} %{name}
2024-05-17 16:33:42 +02:00
%install
2024-05-17 19:31:32 +02:00
install -D -m 0644 %{SOURCE0} %{buildroot}%{_sysusersdir}/%{name}.conf
2024-05-17 16:33:42 +02:00
2024-05-17 19:31:32 +02:00
%pre -f %{name}.pre
2024-05-17 16:33:42 +02:00
%files
%defattr(-, root, root)
2024-05-17 19:31:32 +02:00
%{_sysusersdir}/%{name}.conf
2024-05-17 16:33:42 +02:00
%changelog