File yast2-bootloader.spec of Package yast2-bootloader

#
# spec file for package yast2-bootloader
#
# Copyright (c) 2014 SUSE LINUX Products 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:           yast2-bootloader
Version:        3.1.101a
Release:        0

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-3.1.101.tar.bz2
Patch0:         01-6f2c1882c8acc421cdd65ddde3a277378dd28126.patch
Patch1:         02-d67b9ef5a7ab8f33c5aa242fc5e03333c5e9b748.patch
Patch2:         03-f333b20c02e52346632f3404271ab81def611d06.patch
Patch3:         yast2-bootloader-ensure-branded-plymouth.patch
Patch4:         trying-more-debug.patch

Url:            http://github.com/yast/yast-bootloader
BuildRequires:  update-desktop-files
BuildRequires:  yast2 >= 3.1.0
BuildRequires:  yast2-devtools >= 3.1.10
BuildRequires:  yast2-storage
BuildRequires:  rubygem(rspec)
BuildRequires:  rubygem(yast-rake)
PreReq:         /bin/sed %fillup_prereq
# Installation::*version variables
# Wizard::SetDialogTitleAndIcon
Requires:       parted
Requires:       perl-Bootloader-YAML
Requires:       perl-Compress-Zlib
Requires:       yast2 >= 3.1.0
Requires:       yast2-core >= 2.18.7
Requires:       yast2-packager >= 2.17.24
Requires:       yast2-pkg-bindings >= 2.17.25
Requires:       yast2-storage >= 2.18.18

%ifarch %ix86 x86_64
Requires:       syslinux
%endif

Provides:       yast2-config-bootloader
Provides:       yast2-config-lilo
Obsoletes:      yast2-config-bootloader
Obsoletes:      yast2-config-lilo
Provides:       yast2-agent-liloconf
Provides:       yast2-agent-prom
Obsoletes:      yast2-agent-liloconf
Obsoletes:      yast2-agent-prom
Provides:       yast2-trans-boot
Provides:       yast2-trans-inst-bootloader
Provides:       yast2-trans-lilo
Obsoletes:      yast2-trans-boot
Obsoletes:      yast2-trans-inst-bootloader
Obsoletes:      yast2-trans-lilo
Provides:       y2c_boot
Provides:       y2t_boot
Obsoletes:      y2c_boot
Obsoletes:      y2t_boot
Provides:       y2t_inst-bootloader
Provides:       yast2-agent-liloconf-devel
Provides:       yast2-agent-prom-devel
Obsoletes:      y2t_inst-bootloader
Obsoletes:      yast2-agent-liloconf-devel
Obsoletes:      yast2-agent-prom-devel

Requires:       yast2-ruby-bindings >= 1.0.0

Summary:        YaST2 - Bootloader Configuration
License:        GPL-2.0+
Group:          System/YaST

%description
This package contains the YaST2 component for bootloader configuration.

%package devel-doc
Requires:       yast2-bootloader = %version
Summary:        YaST2 - Bootloader Configuration - Development Documentation
Group:          System/YaST

%description devel-doc
This package contains development documentation for using the API
provided by yast2-bootloader package.

%prep
%setup -n %{name}-3.1.101
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%check
rake test:unit

%build
yardoc

%install
rake install DESTDIR="%{buildroot}"

%post
%{fillup_only -n bootloader}

%files
%defattr(-,root,root)

# menu items

%dir %{yast_desktopdir}
%{yast_desktopdir}/bootloader.desktop

%dir %{yast_yncludedir}
%dir %{yast_yncludedir}/bootloader
%{yast_yncludedir}/bootloader/*
%dir %{yast_moduledir}
%{yast_moduledir}/*
%dir %{yast_clientdir}
%{yast_clientdir}/bootloader*.rb
%{yast_clientdir}/inst_*.rb
%dir %{yast_ybindir}
%{yast_ybindir}/*
%dir %{yast_scrconfdir}
%{yast_scrconfdir}/*.scr
%{yast_fillupdir}/*
%dir %{yast_schemadir}
%dir %{yast_schemadir}/autoyast
%dir %{yast_schemadir}/autoyast/rnc
%{yast_schemadir}/autoyast/rnc/bootloader.rnc
%{yast_libdir}/bootloader

%dir %{yast_docdir}
%doc %{yast_docdir}/COPYING
%doc %{yast_docdir}/README
%doc %{yast_docdir}/CONTRIBUTING.md

%files devel-doc
%defattr(-,root,root)
%doc %{yast_docdir}/autodocs

%changelog
openSUSE Build Service is sponsored by