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)