Steffen Winterfeldt 2023-04-24 17:48:09 +00:00 committed by Git OBS Bridge
parent 205005e8a0
commit 0dc0b45d68
4 changed files with 36 additions and 81 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b3059f2e0cebb677fce10e917b1bc381eb7ba8ff98bb7e7edfcbc41e26526632
size 165804

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:94dbfe6a97b39b3985c9974f0e3bc3b7db616fbffa49e11a1e6b6d04f43ec8d2
size 166816

View File

@ -1,3 +1,21 @@
--------------------------------------------------------------------
Mon Apr 24 17:38:14 UTC 2023 - wfeldt@opensuse.org
- merge gh#openSUSE/perl-bootloader#143
- adjust Makefile for usrmerge and legacy package split
- move obs spec file to git repo
- split off old perl code to perl-Bootloader-legacy package
- remove legacy part completely
- 0.943
--------------------------------------------------------------------
Mon Apr 24 15:07:57 UTC 2023 - wfeldt@opensuse.org
- merge gh#openSUSE/perl-bootloader#142
- use fw_platform_size to distinguish between 32 bit and 64 bit
UEFI platforms (bsc#1208003)
- 0.942
--------------------------------------------------------------------
Thu Jan 12 17:30:54 UTC 2023 - wfeldt@opensuse.org

View File

@ -16,47 +16,32 @@
#
%if 0%{suse_version} > 1550
%if 0%{?usrmerged}
%define sbindir %{_sbindir}
%else
%define sbindir /sbin
%endif
%{!?_distconfdir:%global _distconfdir /etc}
Name: perl-Bootloader
Version: 0.941
Version: 0.943
Release: 0
Requires: coreutils
Requires: perl-base = %{perl_version}
Recommends: perl-gettext
Summary: Library for Configuring Boot Loaders
Provides: perl-Bootloader-YAML = %{version}
Obsoletes: perl-Bootloader-YAML < %{version}
Summary: Tool for boot loader configuration
License: GPL-2.0-or-later
Group: System/Boot
URL: https://github.com/openSUSE/perl-bootloader
Source: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
Conflicts: multipath-tools < 0.4.8-40.25.1
#!BuildIgnore: mdadm e2fsprogs limal-bootloader
%description
Perl modules for configuring various boot loaders.
Authors:
--------
Jiri Srain <jsrain@suse.cz>
Joachim Plack <jplack@suse.de>
Alexander Osthof <aosthof@suse.de>
Josef Reidinger <jreidinger@suse.cz>
%package YAML
Requires: %{name} = %{version}
Requires: perl-YAML-LibYAML
Summary: YAML interface for perl-Bootloader
Group: System/Boot
%description YAML
A command line interface to perl-Bootloader using YAML files for input and output.
Shell script wrapper for configuring various boot loaders.
%prep
%setup -q
@ -64,46 +49,8 @@ A command line interface to perl-Bootloader using YAML files for input and outpu
%build
%install
make DESTDIR=$RPM_BUILD_ROOT install
%if %{suse_version} > 1550
mv %{buildroot}/sbin/* %{buildroot}%{_sbindir}
ln -sf ../../sbin/pbl %{buildroot}/usr/lib/bootloader/bootloader_entry
rm $RPM_BUILD_ROOT/boot/boot.readme
%endif
install -d -m 700 $RPM_BUILD_ROOT/var/log/YaST2
touch $RPM_BUILD_ROOT/var/log/pbl.log
%perl_process_packlist
#install only needed files for bootloader for specific architecture
%ifarch %ix86 x86_64
rm -f $RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{ZIPL*,PowerLILO*}
rm -f $RPM_BUILD_ROOT/%{_mandir}/man?/{*ZIPL*,*PowerLILO*}
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
sed -i '/ZIPL/D;/PowerLILO/D;' $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/Bootloader/.packlist
%endif
%endif
%ifarch ppc ppc64
rm -f $RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{ZIPL*,LILO*,ELILO*,GRUB.*}
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
sed -i '/ZIPL/D;/ELILO/D;/\/LILO/D;/GRUB/D;' $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/Bootloader/.packlist
%endif
%endif
%ifarch s390 s390x
rm -f $RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{*LILO*,GRUB.*,GRUB2EFI.*}
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
sed -i '/LILO/D;/GRUB/D;' $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/Bootloader/.packlist
%endif
%endif
%ifarch ia32 ia64
rm -f $RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{LILO*,GRUB*,ZIPL*,PowerLILO*}
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
sed -i '/ZIPL/D;/PowerLILO/D;/\/LILO/D;/GRUB/D;' $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/Bootloader/.packlist
%endif
%endif
# move logrotate files from /etc/logrotate.d to /usr/etc/logrotate.d
%if 0%{?suse_version} > 1500
mkdir -p %{buildroot}%{_distconfdir}/logrotate.d
mv %{buildroot}/%{_sysconfdir}/logrotate.d/pbl %{buildroot}%{_distconfdir}/logrotate.d
%endif
make install DESTDIR=%{buildroot} SBINDIR=%{sbindir} ETCDIR=%{_distconfdir}
touch %{buildroot}/var/log/pbl.log
%post
echo -n >>/var/log/pbl.log
@ -112,26 +59,16 @@ chmod 600 /var/log/pbl.log
%files
%defattr(-, root, root)
%license COPYING
%doc %{_mandir}/man?/*
%doc %{_mandir}/man8/*
%doc boot.readme
%{perl_vendorarch}/auto/Bootloader
%{perl_vendorlib}/Bootloader
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
/var/adm/perl-modules/perl-Bootloader
%endif
%{sbindir}/update-bootloader
%{sbindir}/pbl
/usr/lib/bootloader
%if 0%{?suse_version} > 1500
%{_distconfdir}/logrotate.d/pbl
%if "%{_distconfdir}" == "/etc"
%config(noreplace) %{_distconfdir}/logrotate.d/pbl
%else
%config(noreplace) %{_sysconfdir}/logrotate.d/pbl
%{_distconfdir}/logrotate.d/pbl
%endif
%dir %attr(0700,root,root) /var/log/YaST2
%ghost %attr(0600,root,root) /var/log/pbl.log
%files YAML
%defattr(-, root, root)
%{_sbindir}/pbl-yaml
%changelog