rebootmgr/rebootmgr.spec
Thorsten Kukuk 0c696a3680 - Update to version 3.0+git20250128.8fa577c:
* Import version 3.0 based on sd-varlink

- Update to version 3.0+git20250127.73667d7:
  * rebootmgrctl: implement verbose dump-config verb
  * Fix search path for vendor config file
  * Add CI with openSUSE container
  * Add new methods and use UID auth
- Add timezone to BuildRequires for test suite

- Update to version 3.0+git20250114.f74a9d5:
  * Add bash-completion for rebootmgrctl

- Update to version 3.0+git20241219.7166827:
  * Remove left overs from dbus related manual page
  * Use int64 to parse JSON for time_t
  * Set varlink info
  * Move announce_ready() call to a later place
  * Require libeconf 0.7.5
  * Free event loop in destroy context.
  * Add missing error reply
  * Remove unused log_type variable
  * Add internal error to varlink interface
  * Move varlink definition into own file
  * Update manual pages

OBS-URL: https://build.opensuse.org/package/show/devel:microos/rebootmgr?expand=0&rev=22
2025-01-28 15:21:23 +00:00

83 lines
2.5 KiB
RPMSpec

#
# spec file for package rebootmgr
#
# Copyright (c) 2025 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/
#
Name: rebootmgr
Version: 3.0+git20250128.8fa577c
Release: 0
Summary: Automatic controlled reboot during a maintenance window
License: GPL-2.0-only AND LGPL-2.1-or-later
Group: System/Base
URL: https://github.com/SUSE/rebootmgr
Source: %{name}-%{version}.tar.xz
BuildRequires: docbook-xsl-stylesheets
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: timezone
BuildRequires: pkgconfig(libeconf) >= 0.7.6
BuildRequires: pkgconfig(libsystemd) >= 257
%description
RebootManager is a dbus service to execute a controlled reboot after updates in a defined maintenance window.
If you updated a system with e.g. transactional updates or a kernel update was applied, you can tell rebootmgrd with rebootmgrctl, that the machine should be reboot at the next possible time. This can either be immediately or during a defined maintenance window.
%prep
%autosetup
%build
%meson
%meson_build
%install
%meson_install
%check
%meson_test
%pre
%service_add_pre rebootmgr.service
if [ -f /etc/rebootmgr.conf ] && [ ! -f /etc/rebootmgr/rebootmgr.conf.d/20-old-rebootmgr.conf ]; then
mkdir -p /etc/rebootmgr/rebootmgr.conf.d ||:
mv /etc/rebootmgr.conf /etc/rebootmgr/rebootmgr.conf.d/20-old-rebootmgr.conf
fi
%post
%service_add_post rebootmgr.service
%preun
%service_del_preun rebootmgr.service
%postun
%service_del_postun rebootmgr.service
%files
%license COPYING COPYING.LIB
%doc NEWS
%dir %{_datadir}/rebootmgr
%{_datadir}/rebootmgr/rebootmgr.conf
%{_unitdir}/rebootmgr.service
%{_bindir}/rebootmgrctl
%{_libexecdir}/rebootmgrd
%{_datadir}/bash-completion/completions/rebootmgrctl
%{_mandir}/man1/rebootmgrctl.1%{?ext_man}
%{_mandir}/man5/rebootmgr.conf.5%{?ext_man}
%{_mandir}/man8/rebootmgrd.8%{?ext_man}
%{_mandir}/man8/rebootmgr.service.8%{?ext_man}
%changelog