- fix Fedora/RHEL builds

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=66
This commit is contained in:
Klaus Kämpf 2015-06-18 07:37:41 +00:00 committed by Git OBS Bridge
parent 628bb17e40
commit 8dc864becb
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 18 07:37:27 UTC 2015 - kkaempf@suse.com
- fix Fedora/RHEL builds
-------------------------------------------------------------------
Tue Jun 2 10:53:50 UTC 2015 - kkaempf@suse.com

View File

@ -52,6 +52,9 @@ BuildRequires: fdupes
%if 0%{?suse_version} >=1230
BuildRequires: pkgconfig(systemd)
%endif
%if 0%{?fedora_version} == 20 || 0%{?rhel_version} >= 700
BuildRequires: perl-Exporter
%endif
Obsoletes: freeipmi-ipmimonitoring < %{version}
Provides: freeipmi-ipmimonitoring = %{version}
@ -124,7 +127,7 @@ libtoolize --force --automake --copy
autoconf
automake --gnu --include-deps --copy --add-missing
%endif
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
%if (0%{?fedora_version} > 0 && 0%{?fedora_version} < 21) || 0%{?centos_version} || 0%{?rhel_version}
%define docpath %{_docdir}/%{name}-%{version}
%else
%define docpath %{_docdir}/%{name}
@ -324,9 +327,9 @@ fi
%doc doc/freeipmi-libraries.txt
%doc doc/freeipmi-bugs-issues-and-workarounds.txt
#%dir %{_docdir}
#%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?fedora} || 0%{?rhel}
#%{_docdir}
#%endif
%if 0%{?fedora_version} == 20
%{docpath}
%endif
%config %{_sysconfdir}/freeipmi/ipmiseld.conf
%if 0%{?suse_version} >=1230
%{_unitdir}/ipmiseld.service