summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2486071)
raw | patch | inline | side by side (parent: 2486071)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 4 Jun 2016 12:18:57 +0000 (14:18 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 4 Jun 2016 13:16:41 +0000 (15:16 +0200) |
Otherwise the else clause in the condition matches on Fedora too.
This makes the spec build on Fedora.
This makes the spec build on Fedora.
contrib/redhat/collectd.spec | patch | blob | history |
index ce37c52a3d5bf06cde5c6ba2ca158432a7843b82..c8c1c258f9dd306f9563301b23262239e991c295 100644 (file)
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
- %if 0%{?rhel} >= 6
-BuildRequires: perl-ExtUtils-Embed
- %else
+ %if 0%{?rhel} && 0%{?rhel} < 6
BuildRequires: perl
+ %else
+BuildRequires: perl-ExtUtils-Embed
%endif
%description perl
The Perl plugin embeds a Perl interpreter into collectd and exposes the
Summary: Python plugin for collectd
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
- %if 0%{?rhel} >= 6
-BuildRequires: python-devel
- %else
+ %if 0%{?rhel} && 0%{?rhel} < 6
BuildRequires: python26-devel
+ %else
+BuildRequires: python-devel
%endif
%description python
The Python plugin embeds a Python interpreter into collectd and exposes the
%endif
%if %{with_python}
- %if 0%{?rhel} >= 6
-%define _with_python --enable-python
- %else
+ %if 0%{?rhel} && 0%{?rhel} < 6
%define _with_python --enable-python --with-python=%{_bindir}/python2.6
+ %else
+%define _with_python --enable-python
%endif
%else
%define _with_python --disable-python