Просмотр исходного кода

Enhance spec file

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@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Jan Friesse 13 лет назад
Родитель
Сommit
5da3fe9f73
1 измененных файлов с 4 добавлено и 6 удалено
  1. 4 6
      corosync.spec.in

+ 4 - 6
corosync.spec.in

@@ -13,6 +13,7 @@
 %bcond_with rdma
 %bcond_with rdma
 %bcond_with systemd
 %bcond_with systemd
 %bcond_with xmlconf
 %bcond_with xmlconf
+%bcond_with runautogen
 
 
 %global gitver %{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}
 %global gitver %{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}
 %global gittarver %{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
 %global gittarver %{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
@@ -35,14 +36,11 @@ Conflicts: openais <= 0.89, openais-devel <= 0.89
 
 
 # Build bits
 # Build bits
 
 
-%define buildtrunk 0
-%{?_with_buildtrunk: %define buildtrunk 1}
-
 BuildRequires: groff
 BuildRequires: groff
 BuildRequires: libqb-devel
 BuildRequires: libqb-devel
 BuildRequires: nss-devel
 BuildRequires: nss-devel
-%if %{buildtrunk}
-BuildRequires: autoconf automake
+%if %{with runautogen}
+BuildRequires: autoconf automake libtool
 %endif
 %endif
 %if %{with monitoring}
 %if %{with monitoring}
 BuildRequires: libstatgrab-devel
 BuildRequires: libstatgrab-devel
@@ -69,7 +67,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 %setup -q -n %{name}-%{version}%{?gittarver}
 %setup -q -n %{name}-%{version}%{?gittarver}
 
 
 %build
 %build
-%if %{buildtrunk}
+%if %{with runautogen}
 ./autogen.sh
 ./autogen.sh
 %endif
 %endif