perl-Bootloader/perl-Bootloader.spec
Steffen Winterfeldt ef029835be - use ReadFileRaw() to read grub2 config (bnc#899921)
- rewrite ReadFile() to handle utf8 properly (bnc#899921)
- add device scannning speed-ups done for sle11-sp3 (bnc#910479)
- preserve config file permissions (bnc#908664)
- join byid and kern maps instead of picking one (bnc#896665)
- support GRUB_ENABLE_CRYPTODISK config option (bnc#887888)
- remove dependency on e2fsprogs (bnc#890795)
- fix regexp to not backtrack endlessly if parentheses don't match (bnc#875369)
- use logrotate file (bnc#822774)
- fix ppc install (bnc#871691)
- don't forget to update device.map (bnc#869083)
- propagate serial console setting to xen (bnc#862614)
- fix section info not returning initrd (bnc#863909)
- fix grub2-editenv path: failed to determine default menu entry (bnc#861469)
  (bnc#858268)
- more flexible GetProduct() uses /etc/os-release (bnc#845606)
- don't report an error if bootloader type is unset (bnc#757942)
- don't use Sys::Hostname (bnc#792634)
- support 'parmfile' option in zipl.conf (bnc#788391)
- fix conversion function from unix disk names to grub names (bnc#688418)
-  add fix for labeled md raid partitions bnc#535065
  for this section (bnc#537208)
  (bnc#529729) 
  (bnc#528220) 
- Allow parameters without root in zipl (bnc#511398)
  (bnc#466427) 
- fix bad log channel (bnc#510037)
- suppress warning about testing extended partition (bnc#504083)
  (bnc#506742)
- doesn't parse # after text for grub bootloader (bnc#481416)

OBS-URL: https://build.opensuse.org/package/show/Base:System/perl-Bootloader?expand=0&rev=217
2017-04-13 11:22:55 +00:00

119 lines
3.6 KiB
RPMSpec

#
# spec file for package perl-Bootloader
#
# 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: perl-Bootloader
Version: 0.917
Release: 0
Requires: coreutils
Requires: perl-base = %{perl_version}
Recommends: perl-gettext
Summary: Library for Configuring Boot Loaders
License: GPL-2.0+
Group: System/Boot
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.
%prep
%setup -q
%build
%install
make DESTDIR=$RPM_BUILD_ROOT install
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
%post
echo -n >>/var/log/pbl.log
chmod 600 /var/log/pbl.log
%files
%defattr(-, root, root)
%doc COPYING
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/Bootloader
%{perl_vendorlib}/Bootloader
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
/var/adm/perl-modules/perl-Bootloader
%endif
/sbin/update-bootloader
/sbin/pbl
/usr/lib/bootloader
/boot/boot.readme
/etc/logrotate.d/pbl
%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