File transactional-update.spec of Package transactional-update
#
# spec file for package transactional-update
#
# 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: transactional-update
Version: 1.15
Release: 0
Summary: Transactional Updates with btrfs and snapshots
License: GPL-2.0+
Group: System/Base
Url: https://github.com/thkukuk/transactional-update
Source: %{name}-%{version}.tar.bz2
Requires: logrotate
Requires: lsof
# psmisc is needed because of fuser
Requires: psmisc
Recommends: rebootmgr
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: fdupes
%{?systemd_requires}
%description
transactional-update is a tool to update a system in an atomic
way with zypper, btrfs and snapshots.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%fdupes %{buildroot}%{_mandir}
%pre
%service_add_pre %{name}.service %{name}.timer
%post
%service_add_post %{name}.service %{name}.timer
%preun
%service_del_preun %{name}.service %{name}.timer
%postun
%service_del_postun %{name}.service %{name}.timer
%files
%defattr(-,root,root)
%doc NEWS COPYING
%config(noreplace) %{_sysconfdir}/logrotate.d/transactional-update
%{_unitdir}/transactional-update.service
%{_unitdir}/transactional-update.timer
%{_sbindir}/transactional-update
%{_sbindir}/tu-rebuild-kdump-initrd
%{_mandir}/man8/transactional-update.8%{ext_man}
%{_mandir}/man8/transactional-update.timer.8%{ext_man}
%{_mandir}/man8/transactional-update.service.8%{ext_man}
%changelog