summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Ward <david.ward@ll.mit.edu>2018-03-25 19:03:25 -0400
committerDavid Ward <david.ward@ll.mit.edu>2018-03-26 19:19:21 -0400
commit9910eb31a3e742a9734b526b27370cc8280a1ac8 (patch)
tree7a1106645d23c722fcfd4e557f6e6595aa04112d
parent1d3807c4da1e3cadf16b71192d2e41fac3488814 (diff)
downloadATCD-9910eb31a3e742a9734b526b27370cc8280a1ac8.tar.gz
Improve test for RHEL or CentOS in RPM packaging
The %{rhel_version} and %{centos_version} RPM macros are specific to the openSUSE Build Service. Use the %{rhel} macro to test for these distributions instead, which supports local builds.
-rw-r--r--ACE/rpmbuild/ace-tao.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/rpmbuild/ace-tao.spec b/ACE/rpmbuild/ace-tao.spec
index de43de6d99a..e7cd5110617 100644
--- a/ACE/rpmbuild/ace-tao.spec
+++ b/ACE/rpmbuild/ace-tao.spec
@@ -83,7 +83,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define _extension .gz
-%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
+%if 0%{?fedora} || 0%{?rhel}
BuildRequires: redhat-rpm-config elfutils sendmail
%endif