File yast2-prep-hook.spec of Package yast2-prep-hook
#
# spec file for package
#
# Copyright (c) spec 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-prep-hook
Version: 1.0
Release: 0
License: GPL-3.0
Summary: YaST installation PReP hook
Url: https://github.com/k0da/prep_shrink
Group: Installation
Source: before_kickoff_00_prep_shrink.rb
Source1: COPYING
Requires: libstorage-ruby
BuildRequires: yast2-installation
BuildRequires: yast2-devtools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ppc ppc64 ppc64le
%description
Hook is inteded to be used during installation, to resize PReP partition
to 8M if it is bigger that that.
%prep
cp %{SOURCE1} .
%build
%install
install -d %{buildroot}/%{yast_vardir}/hooks/installation
install -m 755 %{SOURCE0} %{buildroot}/%{yast_vardir}/hooks/installation
%files
%defattr(-,root,root)
%doc COPYING
%{yast_vardir}/hooks/installation/before_kickoff_00_prep_shrink.rb
%changelog