]> git.pld-linux.org Git - packages/fence.git/blobdiff - fence.spec
- up to 1.03.00
[packages/fence.git] / fence.spec
index 94feca6a7528d0877c77ca35abd4331c6480015b..7eb724cc548f8c0768728cfc5c53cebaca03974e 100644 (file)
@@ -1,15 +1,17 @@
 Summary:       I/O fencing system
 Summary(pl):   System barier I/O
 Name:          fence
-%define        snap    20040625
-Version:       0.0.0.%{snap}.1
+Version:       1.03.00
 Release:       1
+Epoch:         1
 License:       GPL
 Group:         Applications/System
-Source0:       %{name}.tar.gz
-# Source0-md5: f3f40096cf957c6825ae76cac153d698
+Source0:       ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz
+# Source0-md5: 8eea23df70d2007c4fb8c234cfea49cf
 URL:           http://sources.redhat.com/cluster/fence/
-BuildRequires: awk
+BuildRequires: cman-devel
+BuildRequires: perl-base
+BuildRequires: rpm-pythonprov
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sbindir        /sbin
@@ -19,7 +21,7 @@ The Fence system does I/O fencing of cluster members. Any member may
 join the default fence domain after which it will be fenced if it
 fails without leaving the fence domain cleanly. The lock_dlm GFS lock
 module will not permit GFS to be mounted until the node has joined a
-fence domain. 
+fence domain.
 
 The fence daemon, fenced, is usually started by running "fence_tool
 join". Once started, fenced joins the default fence domain and the
@@ -28,11 +30,11 @@ agents are used by fenced to interface with hardware devices (usually
 to shut off its path to shared storage or cycle its power source.)
 
 %description -l pl
-System Fence odpowiada za bariery I/O dla cz³onków klastra. K±¿dy z
-cz³oników mo¿e do³±czyæ do domy¶lnej domeny barier, po czym bêdzie
-odgrodzony je¶li zawiedzie nie opuszczaj±c czysto domeny barier.
-Modu³ blokuj±cy GFS-a lock_dlm nie pozwoli na podmontowanie GFS-a
-dopóki wêze³ nie do³±czy do domeny barier.
+System Fence odpowiada za bariery I/O dla cz³onków klastra. Ka¿dy z
+cz³onków mo¿e do³±czyæ do domy¶lnej domeny barier, po czym bêdzie
+odgrodzony je¶li zawiedzie nie opuszczaj±c czysto domeny barier. Modu³
+blokuj±cy GFS-a lock_dlm nie pozwoli na podmontowanie GFS-a dopóki
+wêze³ nie do³±czy do domeny barier.
 
 Demon fence, fenced, jest zwykle uruchamiany przez fence_tool join. Po
 uruchomieniu fenced do³±cza do domy¶lnej domeny barier, a wêze³ jest
@@ -42,12 +44,16 @@ odcinania drogi do dzielonej pami
 zasilania).
 
 %prep
-%setup -q -n %{name}
+%setup -q -n cluster-%{version}
+cd %{name}
+
+%{__perl} -pi -e 's/-Wall/%{rpmcflags} -Wall/' make/defines.mk.input
+%{__perl} -pi -e 's/-O2 //' fence_node/Makefile fence_tool/Makefile fenced/Makefile
 
 %build
+cd %{name}
 ./configure \
        --incdir=%{_includedir} \
-       --kernel_src=%{_kernelsrcdir} \
        --libdir=%{_libdir} \
        --mandir=%{_mandir} \
        --prefix=%{_prefix} \
@@ -57,6 +63,7 @@ zasilania).
 
 %install
 rm -rf $RPM_BUILD_ROOT
+cd %{name}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -67,4 +74,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/*
+#%attr(754,root,root) /etc/rc.d/init.d/fenced
 %{_mandir}/man?/*
This page took 0.181077 seconds and 4 git commands to generate.