2007-01-08 17:33:44 +00:00
|
|
|
#
|
2011-10-14 07:34:15 +00:00
|
|
|
# spec file for package perl-Bootloader
|
2007-01-08 17:33:44 +00:00
|
|
|
#
|
2024-01-25 16:23:37 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-08 17:33:44 +00:00
|
|
|
#
|
2011-10-14 07:34:15 +00:00
|
|
|
# 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.
|
|
|
|
|
2022-07-06 11:26:30 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-08 17:33:44 +00:00
|
|
|
#
|
|
|
|
|
2012-03-05 14:26:14 +00:00
|
|
|
|
2023-05-19 14:50:11 +00:00
|
|
|
%if %{suse_version} > 1550
|
2022-08-02 14:08:04 +00:00
|
|
|
%define sbindir %{_sbindir}
|
|
|
|
%else
|
|
|
|
%define sbindir /sbin
|
|
|
|
%endif
|
|
|
|
|
2023-04-24 17:52:49 +00:00
|
|
|
%{!?_distconfdir:%global _distconfdir /etc}
|
|
|
|
|
2007-01-08 17:33:44 +00:00
|
|
|
Name: perl-Bootloader
|
2024-02-19 19:51:02 +00:00
|
|
|
Version: 1.12
|
2011-09-19 15:29:00 +00:00
|
|
|
Release: 0
|
2013-02-12 09:26:56 +00:00
|
|
|
Requires: coreutils
|
2023-04-24 17:52:49 +00:00
|
|
|
Obsoletes: perl-Bootloader-YAML < %{version}
|
2023-07-03 12:41:09 +00:00
|
|
|
Conflicts: kexec-tools < 2.0.26.0
|
2023-04-24 17:52:49 +00:00
|
|
|
Summary: Tool for boot loader configuration
|
2018-03-27 10:19:19 +00:00
|
|
|
License: GPL-2.0-or-later
|
2011-12-16 18:10:29 +00:00
|
|
|
Group: System/Boot
|
2023-04-24 17:52:49 +00:00
|
|
|
URL: https://github.com/openSUSE/perl-bootloader
|
2014-10-15 12:41:38 +00:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2007-01-08 17:33:44 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2023-06-26 15:15:35 +00:00
|
|
|
BuildRequires: rubygem(asciidoctor)
|
2007-01-08 17:33:44 +00:00
|
|
|
|
|
|
|
%description
|
2023-04-24 17:52:49 +00:00
|
|
|
Shell script wrapper for configuring various boot loaders.
|
2013-10-29 14:19:05 +00:00
|
|
|
|
2007-01-08 17:33:44 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2023-04-24 17:52:49 +00:00
|
|
|
make install DESTDIR=%{buildroot} SBINDIR=%{sbindir} ETCDIR=%{_distconfdir}
|
2023-06-26 15:15:35 +00:00
|
|
|
make doc
|
|
|
|
install -D -m 644 pbl.8 %{buildroot}%{_mandir}/man8/pbl.8
|
|
|
|
install -D -m 644 bootloader_entry.8 %{buildroot}%{_mandir}/man8/bootloader_entry.8
|
|
|
|
install -D -m 644 update-bootloader.8 %{buildroot}%{_mandir}/man8/update-bootloader.8
|
2023-07-03 12:41:09 +00:00
|
|
|
install -D -m 644 kexec-bootloader.8 %{buildroot}%{_mandir}/man8/kexec-bootloader.8
|
2023-04-24 18:01:31 +00:00
|
|
|
mkdir -p %{buildroot}/var/log
|
2023-04-24 17:52:49 +00:00
|
|
|
touch %{buildroot}/var/log/pbl.log
|
2007-01-08 17:33:44 +00:00
|
|
|
|
2012-09-05 14:40:58 +00:00
|
|
|
%post
|
2012-09-05 14:51:31 +00:00
|
|
|
echo -n >>/var/log/pbl.log
|
|
|
|
chmod 600 /var/log/pbl.log
|
2012-09-05 14:40:58 +00:00
|
|
|
|
2007-01-08 17:33:44 +00:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2018-03-27 10:19:19 +00:00
|
|
|
%license COPYING
|
2023-04-24 17:52:49 +00:00
|
|
|
%doc %{_mandir}/man8/*
|
2022-08-02 14:08:04 +00:00
|
|
|
%doc boot.readme
|
|
|
|
%{sbindir}/update-bootloader
|
|
|
|
%{sbindir}/pbl
|
2023-07-03 12:41:09 +00:00
|
|
|
%{sbindir}/kexec-bootloader
|
2007-01-08 17:33:44 +00:00
|
|
|
/usr/lib/bootloader
|
2023-04-24 17:52:49 +00:00
|
|
|
%if "%{_distconfdir}" == "/etc"
|
|
|
|
%config(noreplace) %{_distconfdir}/logrotate.d/pbl
|
2023-04-24 17:51:15 +00:00
|
|
|
%else
|
2023-04-24 17:52:49 +00:00
|
|
|
%{_distconfdir}/logrotate.d/pbl
|
2022-07-06 11:26:30 +00:00
|
|
|
%endif
|
2012-09-05 14:40:58 +00:00
|
|
|
%ghost %attr(0600,root,root) /var/log/pbl.log
|
2007-11-30 12:30:04 +00:00
|
|
|
|
2011-10-14 07:34:15 +00:00
|
|
|
%changelog
|