Fix Fedora version check for cases where "fedora" is undefined (rh #810851)

This commit is contained in:
Jiří Klimeš 2012-04-10 09:42:23 +02:00
parent fc54dd3346
commit bc36dde52f

View File

@ -10,7 +10,7 @@
%define snapshot .git20120328_2
%define realversion 0.9.4.0
%if 0%{?fedora} < 17
%if 0%{?fedora} && 0%{?fedora} < 17
%define systemd_dir /lib/systemd/system
%else
%define systemd_dir %{_prefix}/lib/systemd/system
@ -93,7 +93,7 @@ BuildRequires: wimax-devel
BuildRequires: gnome-bluetooth-libs-devel >= 2.27.7.1-1
%endif
BuildRequires: systemd systemd-devel
%if 0%{?fedora} < 17
%if 0%{?fedora} && 0%{?fedora} < 17
# systemd.pc is in systemd-units for F16 and below
BuildRequires: systemd-units
%endif