This commit is contained in:
Ales Ledvinka 2015-04-22 14:07:48 +02:00
parent 15c3d841c0
commit 26da34ce00

View File

@ -3,10 +3,9 @@
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Summary: IPMI (Intelligent Platform Management Interface) library and tools Summary: IPMI (Intelligent Platform Management Interface) library and tools
Name: OpenIPMI Name: OpenIPMI
%global once %{_localstatedir}/run/%{name}/first_installation
Version: 2.0.21 Version: 2.0.21
Release: 6%{?dist} Release: 7%{?dist}
License: LGPLv2+ and GPLv2+ or BSD License: LGPLv2+ and GPLv2+ or BSD
Group: System Environment/Base Group: System Environment/Base
URL: http://sourceforge.net/projects/openipmi/ URL: http://sourceforge.net/projects/openipmi/
@ -14,7 +13,6 @@ Source: http://downloads.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
Source1: openipmi.sysconf Source1: openipmi.sysconf
Source2: openipmi-helper Source2: openipmi-helper
Source3: ipmi.service Source3: ipmi.service
Source4: openipmi.modalias
BuildRequires: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel BuildRequires: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel
BuildRequires: openssl-devel python-devel perl-devel tcl-devel tkinter BuildRequires: openssl-devel python-devel perl-devel tcl-devel tkinter
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
@ -45,20 +43,9 @@ The Open IPMI project aims to develop an open code base to allow access to
platform information using Intelligent Platform Management Interface (IPMI). platform information using Intelligent Platform Management Interface (IPMI).
This package contains the tools of the OpenIPMI project. This package contains the tools of the OpenIPMI project.
%package modalias
Group: System Environment/Kernel
Summary: Module aliases for IPMI subsystem
Requires: systemd
Requires: kmod
%description modalias
The OpenIPMI-modalias provides configuration file with module aliases
of ACPI and PNP wildcards.
%package libs %package libs
Group: Development/Libraries Group: Development/Libraries
Summary: The OpenIPMI runtime libraries Summary: The OpenIPMI runtime libraries
Requires:%{name}-modalias = %{version}-%{release}
%description libs %description libs
The OpenIPMI-libs package contains the runtime libraries for shared binaries The OpenIPMI-libs package contains the runtime libraries for shared binaries
@ -160,22 +147,6 @@ if test -L ${RPM_BUILD_ROOT}/%{_bindir}/ipmish && ! test -a ${RPM_BUILD_ROOT}/%{
%{__ln_s} openipmish.1.gz ${RPM_BUILD_ROOT}/%{_mandir}/man1/ipmish.1.gz %{__ln_s} openipmish.1.gz ${RPM_BUILD_ROOT}/%{_mandir}/man1/ipmish.1.gz
fi fi
%posttrans modalias
if [ -f "%{once}" ]; then
if /usr/bin/udevadm info --export-db | grep -qie 'acpi:IPI0'; then
/sbin/modprobe ipmi_si || :;
/sbin/modprobe ipmi_devintf || :;
/sbin/modprobe ipmi_msghandler || :;
%{__rm} -f %{once} || :;
/usr/bin/udevadm settle
fi
fi
%post modalias
if [ "$1" -eq 1 ]; then
/bin/touch %{once}
fi
%post %post
%systemd_post ipmi.service %systemd_post ipmi.service
@ -254,11 +225,10 @@ fi
%doc %{_mandir}/man5/ipmi_lan.5* %doc %{_mandir}/man5/ipmi_lan.5*
%doc %{_mandir}/man5/ipmi_sim_cmd.5* %doc %{_mandir}/man5/ipmi_sim_cmd.5*
%files modalias
%config(noreplace) %{_sysconfdir}/modprobe.d/OpenIPMI.conf
%{_localstatedir}/run/%{name}
%changelog %changelog
* Wed Apr 22 2015 Ales Ledvinka <aledvink@redhat.com> - 2.0.21-7
- Remove modalias subpackage.
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.0.21-6 * Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.0.21-6
- Perl 5.20 rebuild - Perl 5.20 rebuild