File yast2-drbd.spec of Package yast2-drbd

# spec file for package yast2-drbd (Version 2.13.1)
# Copyright (c) 2008 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

# norootforbuild

Name:           yast2-drbd
Version:        2.13.1
Release:        215
License:        GPL v2 or later
Group:          System/YaST
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-drbd-%{version}.tar.bz2
Patch0:         icon-fix.patch
Patch1:         prop-ins-msg.patch
Patch2:         bug-291766_install-kmp.patch
Patch3:         bug-291778_create-conf.patch
Patch4:         bug-291785_def_val_protocol.patch
Patch5:         bug-291771_err_msg.patch
Patch6:         bug-295546_res-conf-deleted.pathch
Patch7:         bug-291490_typo.patch
Patch8:         setnextbutton.diff
Patch9:         bug-442758_set-button-lable.patch
Prefix:         /usr
BuildRequires:  perl-XML-Writer ruby ruby-racc update-desktop-files yast2 yast2-devtools yast2-testsuite
Requires:       yast2 
BuildArch:      noarch
Summary:        YaST2 - DRBD Configuration

YaST2 - Configuration of Distributed Replicated Block Devices. With
this module you can configure a distributed storage system, frequently
used on high availability (HA) clusters.


%setup -n yast2-drbd-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch8 -p1
%patch9 -p1 

%{prefix}/bin/y2tool y2autoconf
%{prefix}/bin/y2tool y2automake
autoreconf --force --install
%{?suse_update_config:%{suse_update_config -f}}
./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir}
make %{?jobs:-j%jobs}

make install DESTDIR="$RPM_BUILD_ROOT"
rm -f $RPM_BUILD_ROOT/%{prefix}/lib/YaST2/servers_non_y2/drbd.rb.yy
rm -f $RPM_BUILD_ROOT/%{prefix}/share/YaST2/clients/drbd_auto.ycp
rm -f $RPM_BUILD_ROOT/%{prefix}/share/YaST2/clients/drbd_proposal.ycp
[ -e "%{prefix}/share/YaST2/data/devtools/NO_MAKE_CHECK" ] || Y2DIR="$RPM_BUILD_ROOT/usr/share/YaST2" make check DESTDIR="$RPM_BUILD_ROOT"
for f in `find $RPM_BUILD_ROOT/%{prefix}/share/applications/YaST2/ -name "*.desktop"` ; do
    %suse_update_desktop_file -d ycc_${d%.desktop} ${d%.desktop}

rm -rf "$RPM_BUILD_ROOT"

%dir /usr/share/YaST2/include/drbd
# /usr/share/YaST2/clients/heartbeat_*.ycp
%doc %{prefix}/share/doc/packages/yast2-drbd

* Wed Nov 19 2008
- bnc#442758: use another API to set the button lable
* Thu Oct 02 2008
- Replace ReplaceNextButton with SetNextButton (bnc#429021)
* Wed Jul 16 2008
- pae was not recognized as a kernel arch (bnc#380074)
* Mon Apr 07 2008
- bugzilla 291490: typo in resource_conf.ycp
* Mon Jul 30 2007
- fix bug-295546: resource config get deleted
- refix bug-291766: check also iseries64 and ppc64
* Mon Jul 23 2007
- fix bug-291766: yast-drbd doesn't install drbd-kmp-<arch> pack
- fix bug-291778: yast-drbd recreate drbd.conf while it doesn't exist
- fix bug-291785: set the default val of protocol even 'advance page' not be accesed
- fix bug-291771: refine some error messages and logs
* Sun Jun 17 2007
- Change the instruction message about propagating configuration
- Reuse yast-iscsi-client.png
* Thu Apr 26 2007
- update to version 2.13.1
* Tue Apr 24 2007
- initial version 2.13.0