From 44c368c2cd806b27ecacabb84e3eb045420a8feb7bf85a833745582102f2e887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Wed, 21 Oct 2015 12:30:10 +0000 Subject: [PATCH] - Fix SLE10 and RHEL5 builds OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=69 --- freeipmi.changes | 5 +++++ freeipmi.spec | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/freeipmi.changes b/freeipmi.changes index 9f1fe16..6065e19 100644 --- a/freeipmi.changes +++ b/freeipmi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 21 12:29:56 UTC 2015 - kkaempf@suse.com + +- Fix SLE10 and RHEL5 builds + ------------------------------------------------------------------- Wed Oct 21 07:40:59 UTC 2015 - kkaempf@suse.com diff --git a/freeipmi.spec b/freeipmi.spec index 803a6bc..9fd003a 100644 --- a/freeipmi.spec +++ b/freeipmi.spec @@ -127,11 +127,18 @@ libtoolize --force --automake --copy autoconf automake --gnu --include-deps --copy --add-missing %endif -%if (0%{?fedora_version} > 0 && 0%{?fedora_version} < 21) || 0%{?centos_version} || 0%{?rhel_version} + +# simple .spec expressions for SLE10 + +%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} +%if 0%{?fedora_version} < 21 %define docpath %{_docdir}/%{name}-%{version} %else %define docpath %{_docdir}/%{name} %endif +%else +%define docpath %{_docdir}/%{name} +%endif %configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \ --docdir=%{docpath} \ %{?_enable_debug} --disable-static @@ -142,7 +149,6 @@ mkdir -p %{buildroot} %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel} # /etc/rc.d/init.d -mkdir -p %{buildroot}/%{_initddir} # 'make install' installs to /etc/init.d # /etc/init.d -> /etc/rc.d/init.d (cd %{buildroot}/%{_sysconfdir}; ln -s rc.d/init.d init.d)