From 8eac3ac647cb1f41f8a400ebf10c872b4a1b3fc934f7ceb546411dcd21cf6994 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Sat, 18 Feb 2017 02:19:43 +0000 Subject: [PATCH] Accepting request 458507 from devel:CaaSP Submit new package rebootmgr OBS-URL: https://build.opensuse.org/request/show/458507 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rebootmgr?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + rebootmgr-0.10.tar.bz2 | 3 ++ rebootmgr.changes | 62 ++++++++++++++++++++++++++++++++ rebootmgr.spec | 82 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 171 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 rebootmgr-0.10.tar.bz2 create mode 100644 rebootmgr.changes create mode 100644 rebootmgr.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/rebootmgr-0.10.tar.bz2 b/rebootmgr-0.10.tar.bz2 new file mode 100644 index 0000000..947aee6 --- /dev/null +++ b/rebootmgr-0.10.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a38e9631abbe71ee7ac03bf552dfb82ec4a43e8f9827f048892250947da24630 +size 269394 diff --git a/rebootmgr.changes b/rebootmgr.changes new file mode 100644 index 0000000..d58b1a8 --- /dev/null +++ b/rebootmgr.changes @@ -0,0 +1,62 @@ +------------------------------------------------------------------- +Thu Feb 16 15:01:51 CET 2017 - kukuk@suse.de + +- Update to version 0.10 + - Fix typos in documentation + - Fix compilation on 32bit systems + +------------------------------------------------------------------- +Tue Feb 14 11:36:41 CET 2017 - kukuk@suse.de + +- Update to version 0.9 + - Finish rebootmgrctl manual page + +------------------------------------------------------------------- +Wed Feb 8 16:48:30 CET 2017 - kukuk@suse.de + +- Update to version 0.8 + - Implement changing number of hosts holding a lock at the same time + - Add new and enhance existing manual pages + +------------------------------------------------------------------- +Thu Jan 12 21:19:48 CET 2017 - kukuk@suse.de + +- Update to version 0.7 + - Fix dbus name in systemd service file + +------------------------------------------------------------------- +Thu Jan 12 11:34:33 CET 2017 - kukuk@suse.de + +- Update to version 0.6 + - Add etcd lock support + +------------------------------------------------------------------- +Mon Jan 9 16:33:00 CET 2017 - kukuk@suse.de + +- Update to version 0.5 + - Rewrite for better dbus support + - Merges typo.patch + +------------------------------------------------------------------- +Tue Dec 13 10:08:30 CET 2016 - kukuk@suse.de + +- Fix typo in executing systemctl + +------------------------------------------------------------------- +Wed Nov 23 15:16:38 CET 2016 - kukuk@suse.de + +- Update to versin 0.3 + - fix path for systemctl + +------------------------------------------------------------------- +Wed Nov 23 10:50:31 CET 2016 - kukuk@suse.de + +- Update to version 0.2 + - implement maintenance window + - implement rebootmgrctl get-strategy + +------------------------------------------------------------------- +Sun Nov 20 21:37:09 CET 2016 - kukuk@suse.de + +- Initial submission + diff --git a/rebootmgr.spec b/rebootmgr.spec new file mode 100644 index 0000000..b232741 --- /dev/null +++ b/rebootmgr.spec @@ -0,0 +1,82 @@ +# +# spec file for package rebootmgr +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: rebootmgr +Version: 0.10 +Release: 0 +Summary: Automatic controlled reboot during a maintenance window +License: GPL-2.0 and LGPL-2.1+ +Group: System/Base +Url: https://github.com/SUSE/rebootmgr +Source: %{name}-%{version}.tar.bz2 +BuildRequires: cetcd-devel +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: pkgconfig(dbus-glib-1) +BuildRequires: pkgconfig(glib-2.0) >= 2.40 +BuildRequires: pkgconfig(json-c) +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{?systemd_requires} + +%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 immeaditly, during a defined maintenance window or, to avoid that a lot of machines boot at the same time, controlled with locks and etcd. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +make %{?_smp_mflags} DESTDIR=%{buildroot} install +ln -sf service %{buildroot}%{_sbindir}/rcrebootmgr +%fdupes %{buildroot}%{_mandir} + +%pre +%service_add_pre rebootmgr.service + +%post +%service_add_post rebootmgr.service + +%preun +%service_del_preun rebootmgr.service + +%postun +%service_del_postun rebootmgr.service + +%files +%defattr(-,root,root) +%doc NEWS COPYING COPYING.LIB +%dir %{_sysconfdir}/dbus-1/system.d +%config %{_sysconfdir}/rebootmgr.conf +%config %{_sysconfdir}/dbus-1/system.d/org.opensuse.RebootMgr.conf +%{_prefix}/lib/systemd/system/rebootmgr.service +%{_sbindir}/rebootmgrctl +%{_sbindir}/rebootmgrd +%{_sbindir}/rcrebootmgr +%{_datadir}/dbus-1/interfaces/org.opensuse.RebootMgr.xml +%{_mandir}/man1/rebootmgrctl.1%{ext_man} +%{_mandir}/man5/rebootmgr.conf.5%{ext_man} +%{_mandir}/man8/rebootmgrd.8%{ext_man} +%{_mandir}/man8/org.opensuse.RebootMgr.conf.8%{ext_man} +%{_mandir}/man8/rebootmgr.service.8%{ext_man} + +%changelog