Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > fbc187c31d78279a45a350b03da1e63c > files > 4

drbd-utils-8.4.2-1.mga3.src.rpm

%bcond_with pacemaker
%global with_pacemaker 1

%define major	8
%define minor	4
%define sub	2
%define pre	0
%define drbd_api_ver	88

Name:		drbd-utils
Version:	%{major}.%{minor}.%{sub}
Release:	%mkrel 1
Summary:	Utilities to manage DRBD devices
License:	GPLv2+
Group:		System/Kernel and hardware
URL:		http://www.drbd.org/
Source:		http://oss.linbit.com/drbd/%{major}.%{minor}/drbd-%{version}.tar.gz
Patch0:		drbd-8.4.2-usrsbin.patch
Patch1:		drbd-8.3.11-udev-rules.patch
# Install bash completion file on Mandriva
BuildRequires:	bison
BuildRequires:	flex
Requires(post):	rpm-helper
Requires(preun):	rpm-helper
Requires(post):	initscripts
Requires:	drbd-api = %{drbd_api_ver}
Requires:	bash-completion
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%if %{with pacemaker}
%package pacemaker
Summary:       Script to help integration with heartbeat
Group:         System/Kernel and hardware
Requires:      pacemaker
Requires:      %{name} = %{version}
%endif

%description
DRBD is a block device which is designed to build High Availability clusters.
This is done by mirroring a whole block device via (maybe dedicated) network.
You could see it as a network RAID 1. This package contains the tools to
manage DRBD devices.

%if %{with pacemaker}
%description pacemaker
Installs the datadisk script, designed to ease integration with pacemaker.
%endif

%prep
%setup -q -n drbd-%{version}
%patch0 -p1 -b .sbin
%patch1 -p0

# non-arch executable in datadir, fix conf file
sed -i 's,%{_libdir}/drbd/outdate-peer\.sh,%{_datadir}/drbd/outdate-peer.sh,g' scripts/drbd.conf

%build
%configure2_5x \
	--sysconfdir=%{_sysconfdir} \
	--localstatedir=%{_var} \
	--prefix=%{_exec_prefix} \
	--with-utils \
	--without-legacy_utils \
	--with-bashcompletion \
	--without-heartbeat \
%if %{with pacemaker}
	--with-pacemaker\
%else
	--without-pacemaker\
%endif
	--without-xen
%make

%install
%makeinstall_std

install -d %{buildroot}%{_var}/lib/drbd
install -d %{buildroot}{%{_bindir},%{_sbindir}}

mkdir -p %{buildroot}%{_datadir}/drbd
mkdir -p %{buildroot}%{_sysconfdir}

%post
%_post_service drbd

%preun
%_preun_service drbd

%files
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/drbd.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/drbd.d/global_common.conf
%dir %{_var}/lib/drbd
%{_sysconfdir}/bash_completion.d/drbdadm
%{_sysconfdir}/rc.d/init.d/drbd
%{_udevrulesdir}/65-drbd.rules
%{_sbindir}/drbd-overview
%{_sbindir}/drbdadm
%{_sbindir}/drbdmeta
%{_sbindir}/drbdsetup
%dir %{_datadir}/drbd
/usr/lib/drbd/crm-fence-peer.sh
/usr/lib/drbd/crm-unfence-peer.sh
/usr/lib/drbd/notify.sh
/usr/lib/drbd/notify-emergency-reboot.sh
/usr/lib/drbd/notify-emergency-shutdown.sh
/usr/lib/drbd/notify-io-error.sh
/usr/lib/drbd/notify-out-of-sync.sh
/usr/lib/drbd/notify-pri-lost-after-sb.sh
/usr/lib/drbd/notify-pri-lost.sh
/usr/lib/drbd/notify-pri-on-incon-degr.sh
/usr/lib/drbd/notify-split-brain.sh
/usr/lib/drbd/outdate-peer.sh
/usr/lib/drbd/snapshot-resync-target-lvm.sh
/usr/lib/drbd/unsnapshot-resync-target-lvm.sh
/usr/lib/ocf/resource.d/linbit/drbd

%defattr(0644,root,root,0755)
%doc %{_mandir}/man5/drbd.conf.5*
%doc %{_mandir}/man8/drbd.8*
%doc %{_mandir}/man8/drbdadm.8*
%doc %{_mandir}/man8/drbdmeta.8*
%doc %{_mandir}/man8/drbdsetup.8*

%if %{with pacemaker}
%files pacemaker
%defattr(-,root,root)
/usr/lib/drbd/stonith_admin-fence-peer.sh
%dir /usr/lib/ocf/resource.d/linbit
%defattr(0644,root,root,0755)
%endif




%changelog

* Sun Jan 20 2013 dlucio <dlucio> 8.4.2-1.mga3
+ Revision: 390285
- Correct mkrel
- 8.4.2
- P0 rediffed
- We drop heartbeat now we use pacemaker
- Lets use bash-completion

* Wed Jan 16 2013 fwang <fwang> 8.3.11-4.mga3
+ Revision: 388491
- correct udev rules dir

* Fri Jan 11 2013 umeabot <umeabot> 8.3.11-3.mga3
+ Revision: 349106
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Apr 20 2012 boklm <boklm> 8.3.11-2.mga2
+ Revision: 232185
- disable heartbeat

* Tue Apr 03 2012 ennael <ennael> 8.3.11-1.mga2
+ Revision: 228186
- sync userspace tools with kernel module

* Thu Sep 08 2011 tv <tv> 8.3.10-1.mga2
+ Revision: 141560
- new release

* Thu May 26 2011 pterjan <pterjan> 8.3.9-3.mga1
+ Revision: 100510
- Fix configure parameter

  + boklm <boklm>
    - rebuild with heartbeat as it is now available

* Thu May 26 2011 boklm <boklm> 8.3.9-2.mga1
+ Revision: 100488
- use make macro
- disable heartbeat as it is not available

* Mon May 16 2011 boklm <boklm> 8.3.9-1.mga1
+ Revision: 99259
- version 8.3.9
- imported package drbd-utils


* Tue May 03 2011 Oden Eriksson <oeriksson@mandriva.com> 8.3.7-4mdv2011.0
+ Revision: 663878
- mass rebuild

* Mon Apr 04 2011 Leonardo Coelho <leonardoc@mandriva.com> 8.3.7-3
+ Revision: 650372
-release bump
- updated version 8.3.7

* Thu Dec 02 2010 Oden Eriksson <oeriksson@mandriva.com> 8.3.5-2mdv2011.0
+ Revision: 604829
- rebuild

* Sat Nov 07 2009 Frederik Himpe <fhimpe@mandriva.org> 8.3.5-1mdv2010.1
+ Revision: 462678
- Update to new version 8.3.5
- Fix installation of bash_completion on Mandriva

* Fri Jul 03 2009 Thomas Backlund <tmb@mandriva.org> 8.3.2-1mdv2010.0
+ Revision: 391939
- update to 8.3.2
- rediff patch0
- update filelists

* Fri Apr 03 2009 Thomas Backlund <tmb@mandriva.org> 8.3.1-1mdv2009.1
+ Revision: 363734
- update to 8.3.1

* Sat Feb 14 2009 Thomas Backlund <tmb@mandriva.org> 8.3.0-1mdv2009.1
+ Revision: 340323
- update drbd-utils to 8.3.0

* Wed Jul 23 2008 Thomas Backlund <tmb@mandriva.org> 8.2.6-1mdv2009.0
+ Revision: 241287
- update to 8.2.6

* Tue Jun 17 2008 Thierry Vignaud <tv@mandriva.org> 8.0.11-3mdv2009.0
+ Revision: 220706
- rebuild

* Wed Feb 13 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 8.0.11-2mdv2008.1
+ Revision: 167159
- New upstream: 8.0.11
- Removed es and pt-BR i18n from specfile.
- compare.pl is not shipped by upstream anymore.

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Adam Williamson <awilliamson@mandriva.org>
    - new version 8.0.8

* Thu Sep 06 2007 Adam Williamson <awilliamson@mandriva.org> 8.0.6-1mdv2008.0
+ Revision: 80699
- rediff patch
- use Fedora license policy
- new release 8.0.6

* Sun Jul 01 2007 Adam Williamson <awilliamson@mandriva.org> 8.0.3-1mdv2008.0
+ Revision: 46612
- new release 8.0.3, rebuild for 2008


* Mon Sep 11 2006 Andreas Hasenack <andreas@mandriva.com>
+ 2006-09-11 19:52:16 (60907)
- ok, so _lib is not equal to lib
- be more careful removing directories

* Mon Sep 11 2006 Andreas Hasenack <andreas@mandriva.com>
+ 2006-09-11 19:38:45 (60902)
- bump release

* Mon Sep 11 2006 Andreas Hasenack <andreas@mandriva.com>
+ 2006-09-11 19:37:09 (60901)
- move arch-independant file to proper place, adjust conf file. This
  fixes x86_64 build

* Wed Aug 30 2006 Andreas Hasenack <andreas@mandriva.com>
+ 2006-08-30 21:35:07 (58890)
- add pre version to release

* Wed Aug 30 2006 Andreas Hasenack <andreas@mandriva.com>
+ 2006-08-30 20:54:52 (58882)
- removed changelog section, this package is in svn

* Wed Aug 30 2006 Marcelo Ricardo Leitner <mrl@mandriva.com>
+ 2006-08-30 20:39:10 (58879)
- Fixed usrsbin patch version.

* Wed Aug 30 2006 Marcelo Ricardo Leitner <mrl@mandriva.com>
+ 2006-08-30 20:38:16 (58878)
- New upstream: 8.0pre4
- Added P0 due to new upstream.
- Fixed /var/lib/lib/drbd issue.
- Merged fixes from 2006.

* Wed Aug 30 2006 Marcelo Ricardo Leitner <mrl@mandriva.com>
+ 2006-08-30 20:34:41 (58877)
- Synced with cooker with parts from 2006 (the package was updated outside svn):
  * Fri Jul 07 2006 Vincent Danen <vdanen@mandriva.com> 0.7.19-2.1.20060mdk
  - build for updates
  * Mon Jul 03 2006 Nicolas L?\239?\191?\189cureuil <neoclust@mandriva.org> 0.7.19-3mdk
  - Fix Requires
  * Mon Jun 19 2006 Marcelo Ricardo Leitner <mrl@mandriva.com> 0.7.19-2mdk
  - Added Requires to drbd-api = 78
  * Thu Jun 08 2006 Marcelo Ricardo Leitner <mrl@mandriva.com> 0.7.19-1mdk
  - New upstream: 0.7.19
  - Fixed drbd{adm,setup} paths through patch usrsbin.
  * Mon Dec 26 2005 Nicolas L?\239?\191?\189cureuil <neoclust@mandriva.org> 0.7.15-1mdk
  - New release 0.7.15
  - Drop patch 0 : Merged upstream
  * Thu Nov 03 2005 Nicolas L?\239?\191?\189cureuil <neoclust@mandriva.org> 0.7.14-1mdk
  - 0.7.14
  * Wed Aug 10 2005 Nicolas L?\239?\191?\189cureuil <neoclust@mandriva.org> 0.7.10-4mdk
  - fix BuildRequires
  * Sat Jul 30 2005 Nicolas L?\239?\191?\189cureuil <neoclust@mandriva.org> 0.7.10-3mdk
  - Add Bison as BuildRequires

* Mon May 29 2006 Andreas Hasenack <andreas@mandriva.com>
+ 2006-05-29 14:36:37 (31646)
- renamed mdv to packages because mdv is too generic and it's hosting only packages anyway

* Fri Jul 08 2005 Flavio Bruno Leitner <fbl@mandriva.com>
+ 2005-07-08 11:01:45 (345)
- fixed URL

* Mon Jul 04 2005 Flavio Bruno Leitner <fbl@mandriva.com>
+ 2005-07-04 14:10:58 (287)
- fixed rpmlint errors

* Thu Jun 23 2005 Flavio Bruno Leitner <fbl@mandriva.com>
+ 2005-06-23 16:31:44 (239)
- added drbd sources and spec file.

* Thu Jun 23 2005 Flavio Bruno Leitner <fbl@mandriva.com>
+ 2005-06-23 13:42:50 (238)
- Created package structure for drbd-utils.