# # spec file for package cmirrord (Version 2.02.56) # # 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/ # # norootforbuild Name: cmirrord Version: 2.02.61 Release: 1 Summary: Clustered RAID 1 support using device-mapper and openais Group: System/Daemons License: GPLv2 Url: http://sourceware.org/lvm2/ Source: LVM2.%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libopenais-devel libcorosync-devel device-mapper-devel Prefix: / Patch0: make-cmirrord-independent.diff Patch1: wait_for_device.diff Patch2: compat-with-devmapper.diff %description Clustered RAID 1 support using device-mapper and openais. The dm-log-userspace kernel module exports dm-mirror's dirty log to the user space via netlink connector, which is used by cmirrord to provide cluster aware RAID-1 setup. %prep %setup -q -n LVM2.%{version} #mv LVM2.%{version} cmirrord-%{version} %patch0 -p1 %patch1 -p1 #%patch2 -p1 %build export CXXFLAGS="%{optflags}" %configure --enable-cmirrord --enable-debug make #cd buildgcc #make release %install install -d -m 0755 %{buildroot}/%{_sbindir} install -m 0755 daemons/cmirrord/%{name} %{buildroot}/%{_sbindir} %clean rm -rf %{buildroot} %files %defattr(0644,root,root,0755) %defattr(-,root,root,0755) %{_sbindir}/%{name} %post /sbin/ldconfig %postun /sbin/ldconfig %changelog