File yast2-storage.spec of Package yast2-storage

# spec file for package yast2-storage
# Copyright (c) 2016 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

Name:           yast2-storage
Version:        3.1.103
Release:        4

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2
Patch1: 0001-fix-update-reiserfs-support.patch
Patch2: 0002-update-jfs-support.patch
Patch3: 0003-reiserfs-replace-format-option-to-block-size.patch
Patch4: 0004-add-reiser4-support.patch

BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  libstorage-devel >= 2.26.6
BuildRequires:  libstorage-ruby >= 2.25.36
BuildRequires:  libtool
BuildRequires:  libxslt
BuildRequires:  perl-XML-Writer
BuildRequires:  sgml-skel
BuildRequires:  update-desktop-files
BuildRequires:  yast2 >= 3.1.22
BuildRequires:  yast2-core-devel >= 2.23.1
BuildRequires:  yast2-devtools >= 3.1.10
BuildRequires:  yast2-ruby-bindings >= 3.1.7
BuildRequires:  yast2-testsuite >= 2.19.0
BuildRequires:  rubygem(rspec)
BuildRequires:  rubygem(ruby-dbus)
Requires:       libstorage-ruby >= 2.26.1
Requires:       libstorage7 >= 2.26.6
Requires:       yast2 >= 3.1.22
Requires:       yast2-core >= 2.18.3
Requires:       yast2-libyui >= 2.18.7
Requires:       rubygem(%{rb_default_ruby_abi}:ruby-dbus)
%ifarch s390 s390x
Requires:       yast2-s390
PreReq:         %fillup_prereq
Provides:       y2a_fdsk
Provides:       yast2-config-disk
Obsoletes:      y2a_fdsk
Obsoletes:      yast2-config-disk
Provides:       yast2-agent-fdisk
Provides:       yast2-agent-fdisk-devel
Obsoletes:      yast2-agent-fdisk
Obsoletes:      yast2-agent-fdisk-devel
Provides:       yast2-trans-inst-partitioning
Obsoletes:      yast2-trans-inst-partitioning
Provides:       y2t_inst-partitioning
Obsoletes:      y2t_inst-partitioning
Requires:       yast2-ruby-bindings >= 3.1.7

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

This package contains the files for YaST2 that handle access to disk
devices during installation and on an installed system.

%setup -n %{name}-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1



rm -f $RPM_BUILD_ROOT/%{yast_plugindir}/
rm -f $RPM_BUILD_ROOT/%{yast_plugindir}/

%{fillup_only -an storage}


# storage
%dir %{yast_yncludedir}/partitioning
%dir %{yast_libdir}/storage

%dir %{yast_ydatadir}

%doc %dir %{yast_docdir}
%doc %{yast_docdir}/README*
%doc %{yast_docdir}/COPY*

# agents-scr

# libstorage ycp callbacks

# disk
%dir %{yast_desktopdir}

# scripts

%package devel
Requires:       libstdc++-devel
Requires:       yast2-storage = %version
Requires:       libstorage-devel = %(echo `rpm -q --queryformat '%{VERSION}' libstorage-devel`)

Summary:        YaST2 - Storage Library Headers and Documentation
Group:          Development/Libraries/YaST

%description devel
This package contains the files for YaST2 that are needed if one wants
to develop a program using yast2-storage.

%files devel
%doc %{yast_docdir}/config.xml.description