[PATCH] flatiron: Enhance spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Weird construct buildtrunk is gone. Instead of that, we use bcond
feature. Also buildtrunk is renamed to runautogen, because SVN era is
gone.

Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 corosync.spec.in |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/corosync.spec.in b/corosync.spec.in
index 5b7cd0b..04970de 100644
--- a/corosync.spec.in
+++ b/corosync.spec.in
@@ -11,6 +11,7 @@
 %bcond_with snmp
 %bcond_with dbus
 %bcond_with rdma
+%bcond_with runautogen
 
 Name: corosync
 Summary: The Corosync Cluster Engine and Application Programming Interfaces
@@ -30,10 +31,7 @@ Conflicts: openais <= 0.89, openais-devel <= 0.89
 
 # Build bits
 
-%define buildtrunk 0
-%{?_with_buildtrunk: %define buildtrunk 1}
-
-%if %{buildtrunk}
+%if %{with runautogen}
 BuildRequires: autoconf automake
 %endif
 BuildRequires: nss-devel
@@ -53,7 +51,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 %setup -q -n %{name}-%{version}%{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
 
 %build
-%if %{buildtrunk}
+%if %{with runautogen}
 ./autogen.sh
 %endif
 
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux