Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:openSUSE:Factory:rpmlint
systemd-default-settings
systemd-default-settings.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File systemd-default-settings.spec of Package systemd-default-settings
# # spec file for package systemd-default-settings # # 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/ # %define extra_version %{nil} Name: systemd-default-settings URL: https://github.com/openSUSE/systemd-default-settings Version: 0.10 Release: 0 Summary: Generic SUSE Customization of systemd defaults License: GPL-2.0-or-later Group: System/Base Source0: %{name}-%{version}%{extra_version}.tar.gz BuildArch: noarch BuildRequires: systemd-rpm-macros Requires: %{name}-branding = %{version}-%{release} %description This package overrides some of the upstream default settings which are better suited for openSUSE or SLE distributions. This package should not be installed alone but is supposed to be pulled in by the branding package instead. %package branding-SLE Summary: SLE Specific Customization of systemd defaults Group: System/Base Requires: %{name} = %{version}-%{release} Supplements: packageand(%{name}:branding-SLE) Provides: %{name}-branding = %{version}-%{release} Conflicts: otherproviders(%{name}-branding) %description branding-SLE This package overrides some of the upstream default settings to make them better suited for SLE distributions. %package branding-openSUSE Summary: openSUSE Specific Customization of systemd defaults Group: System/Base Requires: %{name} = %{version}-%{release} Supplements: packageand(%{name}:branding-openSUSE) Provides: %{name}-branding = %{version}-%{release} Conflicts: otherproviders(%{name}-branding) %description branding-openSUSE This package overrides some of the upstream default settings to make them better suited for openSUSE distributions. %package branding-upstream Summary: Restore upstream systemd defaults Group: System/Base Provides: %{name}-branding = %{version}-%{release} Conflicts: %{name} Conflicts: otherproviders(%{name}-branding) %description branding-upstream Installing this package restores some of the upstream default settings by uninstalling all drop-ins shipped by %{name} and its branding sub package. %package branding-SLE-Micro Summary: SLE-Micro Specific Customization of systemd defaults Group: System/Base Requires: %{name} = %{version}-%{release} Supplements: packageand(%{name}:branding-SLE-Micro) Provides: %{name}-branding = %{version}-%{release} Conflicts: otherproviders(%{name}-branding) %description branding-SLE-Micro This package overrides some of the upstream default settings to make them better suited for SLE-Micro distributions. %prep %setup -q -n %name-%{version}%{extra_version} %build %install %make_install # Convert early drop-ins into regular ones on Factory (1699) and ALP (1600). The # removal of early drop-ins happens on these 2 distros only. SLE15/Leap15 (1500) # still relies one them. %if %{suse_version} >= 1600 find %{buildroot} -name __\*.conf -exec rename '.conf.d/__' '.conf.d/' {} \; %endif find %{buildroot} -name \*.d -type d -printf "%%%%dir /%%P\n" >SUSE.list find %{buildroot} -name \*-defaults-SUSE.conf -printf "/%%P\n" >>SUSE.list find %{buildroot} -name \*-defaults-SLE.conf -printf "/%%P\n" >SLE.list find %{buildroot} -name \*-defaults-openSUSE.conf -printf "/%%P\n" >openSUSE.list find %{buildroot} -name \*-defaults-SLE-Micro.conf -printf "/%%P\n" >SLE-Micro.list %post # Reloading PID1 is probably not enough as some changes will require # service restarts or even a reboot. But it might be useful in a few # cases so... [ -x /usr/bin/systemctl ] && /usr/bin/systemctl daemon-reload || : %files -f SUSE.list %defattr(-,root,root) %files branding-SLE -f SLE.list %defattr(-,root,root) %files branding-openSUSE -f openSUSE.list %defattr(-,root,root) %files branding-upstream %defattr(-,root,root) %files branding-SLE-Micro -f SLE.list -f SLE-Micro.list %defattr(-,root,root) %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor