2007-01-08 18:33:44 +01:00
|
|
|
#
|
2011-10-14 09:34:15 +02:00
|
|
|
# spec file for package perl-Bootloader
|
2007-01-08 18:33:44 +01:00
|
|
|
#
|
2015-09-22 16:11:15 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-08 18:33:44 +01:00
|
|
|
#
|
2011-10-14 09:34:15 +02: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.
|
|
|
|
|
2007-01-08 18:33:44 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-05 15:26:14 +01:00
|
|
|
|
2007-01-08 18:33:44 +01:00
|
|
|
Name: perl-Bootloader
|
2015-09-22 16:25:40 +02:00
|
|
|
Version: 0.842
|
2011-09-19 17:29:00 +02:00
|
|
|
Release: 0
|
2013-02-12 10:26:56 +01:00
|
|
|
Requires: coreutils
|
2013-07-09 09:12:23 +02:00
|
|
|
Requires: perl-base = %{perl_version}
|
2008-07-18 00:46:31 +02:00
|
|
|
Recommends: perl-gettext
|
2007-01-08 18:33:44 +01:00
|
|
|
Summary: Library for Configuring Boot Loaders
|
2012-03-05 15:30:45 +01:00
|
|
|
License: GPL-2.0+
|
2011-12-16 19:10:29 +01:00
|
|
|
Group: System/Boot
|
2014-10-15 14:41:38 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2007-01-08 18:33:44 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-19 11:55:52 +02:00
|
|
|
BuildRequires: perl
|
2011-09-19 17:29:00 +02:00
|
|
|
Conflicts: multipath-tools < 0.4.8-40.25.1
|
2007-01-08 18:33:44 +01:00
|
|
|
#!BuildIgnore: mdadm e2fsprogs limal-bootloader
|
|
|
|
|
|
|
|
%description
|
|
|
|
Perl modules for configuring various boot loaders.
|
|
|
|
|
2013-02-25 16:27:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jiri Srain <jsrain@suse.cz>
|
|
|
|
Joachim Plack <jplack@suse.de>
|
|
|
|
Alexander Osthof <aosthof@suse.de>
|
|
|
|
Josef Reidinger <jreidinger@suse.cz>
|
|
|
|
|
2013-10-29 15:19:05 +01:00
|
|
|
%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.
|
|
|
|
|
|
|
|
|
2007-01-08 18:33:44 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2012-08-23 16:56:17 +02:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2011-02-21 16:05:46 +01:00
|
|
|
install -d -m 700 $RPM_BUILD_ROOT/var/log/YaST2
|
2012-10-15 13:04:26 +02:00
|
|
|
touch $RPM_BUILD_ROOT/var/log/pbl.log
|
2007-01-08 18:33:44 +01:00
|
|
|
%perl_process_packlist
|
2009-04-29 01:34:00 +02:00
|
|
|
#install only needed files for bootloader for specific architecture
|
|
|
|
%ifarch %ix86 x86_64
|
2012-08-23 16:56:17 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{ZIPL*,PowerLILO*}
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_mandir}/man?/{*ZIPL*,*PowerLILO*}
|
2011-01-04 14:29:48 +01:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
|
2009-04-29 01:34:00 +02:00
|
|
|
sed -i '/ZIPL/D;/PowerLILO/D;' $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/Bootloader/.packlist
|
|
|
|
%endif
|
2011-01-04 14:29:48 +01:00
|
|
|
%endif
|
2009-04-29 01:34:00 +02:00
|
|
|
%ifarch ppc ppc64
|
2013-07-09 09:12:23 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{ZIPL*,LILO*,ELILO*,GRUB.*}
|
2011-01-04 14:29:48 +01:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
|
2009-04-29 01:34:00 +02:00
|
|
|
sed -i '/ZIPL/D;/ELILO/D;/\/LILO/D;/GRUB/D;' $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/Bootloader/.packlist
|
|
|
|
%endif
|
2011-01-04 14:29:48 +01:00
|
|
|
%endif
|
2009-04-29 01:34:00 +02:00
|
|
|
%ifarch s390 s390x
|
2014-03-04 17:50:04 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{*LILO*,GRUB.*,GRUB2EFI.*}
|
2011-01-04 14:29:48 +01:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
|
2009-04-29 01:34:00 +02:00
|
|
|
sed -i '/LILO/D;/GRUB/D;' $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/Bootloader/.packlist
|
|
|
|
%endif
|
2011-01-04 14:29:48 +01:00
|
|
|
%endif
|
2009-04-29 01:34:00 +02:00
|
|
|
%ifarch ia32 ia64
|
2012-08-23 16:56:17 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{perl_vendorlib}/Bootloader/Core/{LILO*,GRUB*,ZIPL*,PowerLILO*}
|
2011-01-04 14:29:48 +01:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
|
2009-04-29 01:34:00 +02:00
|
|
|
sed -i '/ZIPL/D;/PowerLILO/D;/\/LILO/D;/GRUB/D;' $RPM_BUILD_ROOT/%{perl_vendorarch}/auto/Bootloader/.packlist
|
|
|
|
%endif
|
2011-01-04 14:29:48 +01:00
|
|
|
%endif
|
2007-01-08 18:33:44 +01:00
|
|
|
|
2012-09-05 16:40:58 +02:00
|
|
|
%post
|
2012-09-05 16:51:31 +02:00
|
|
|
echo -n >>/var/log/pbl.log
|
|
|
|
chmod 600 /var/log/pbl.log
|
2012-09-05 16:40:58 +02:00
|
|
|
|
2007-01-08 18:33:44 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc COPYING
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{perl_vendorarch}/auto/Bootloader
|
|
|
|
%{perl_vendorlib}/Bootloader
|
2011-01-04 14:29:48 +01:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} <= 1130
|
2007-01-08 18:33:44 +01:00
|
|
|
/var/adm/perl-modules/perl-Bootloader
|
2011-01-04 14:29:48 +01:00
|
|
|
%endif
|
2007-01-08 18:33:44 +01:00
|
|
|
/sbin/update-bootloader
|
|
|
|
/usr/lib/bootloader
|
2008-11-20 01:44:59 +01:00
|
|
|
/boot/boot.readme
|
2014-04-09 15:34:38 +02:00
|
|
|
/etc/logrotate.d/pbl
|
2011-02-21 16:05:46 +01:00
|
|
|
%dir %attr(0700,root,root) /var/log/YaST2
|
2012-09-05 16:40:58 +02:00
|
|
|
%ghost %attr(0600,root,root) /var/log/pbl.log
|
2007-11-30 13:30:04 +01:00
|
|
|
|
2013-10-29 15:19:05 +01:00
|
|
|
%files YAML
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_sbindir}/pbl-yaml
|
|
|
|
|
2011-10-14 09:34:15 +02:00
|
|
|
%changelog
|