- Fix SLE10 and RHEL5 builds
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=69
This commit is contained in:
parent
3d259e2be1
commit
44c368c2cd
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user