ferdnyc / rpms / OpenIPMI

Forked from rpms/OpenIPMI 5 years ago
Clone
547b3c5
%define ipmitoolver 1.8.2
de32eba
Summary: OpenIPMI (Intelligent Platform Management Interface) library and tools
de32eba
Name: OpenIPMI
547b3c5
Version: 1.4.14
843fe09
Release: 15
de32eba
License: GPL
de32eba
Group: System Environment/Base
547b3c5
URL: http://sourceforge.net/projects/openipmi/
de32eba
Source: http://prdownloads.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
547b3c5
Source2: http://prdownloads.sourceforge.net/ipmitool/ipmitool-%{ipmitoolver}.tar.gz
547b3c5
Source3: openipmi.sysconf
547b3c5
Source4: openipmi.initscript
33c91a3
Patch1: OpenIPMI-1.4.11-gcc4.patch
547b3c5
Patch2: OpenIPMI-1.4.14-oob.patch
c7f2a24
Patch3: OpenIPMI-1.4.14-warnings.patch
bda78e2
Patch4: OpenIPMI-1.4.14-lanplus-session-privset.patch
62de057
BuildRoot: /var/tmp/%{name}-%{version}-root
31e3fcf
BuildPrereq: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel openssl-devel
de32eba
de32eba
%description
de32eba
The Open IPMI project aims to develop an open code base to allow access to
de32eba
platform information using Intelligent Platform Management Interface (IPMI).
547b3c5
This package contains the tools of the OpenIPMI project.
547b3c5
547b3c5
%package libs
547b3c5
Group: Development/Libraries
547b3c5
Summary: The OpenIPMI runtime libraries
547b3c5
547b3c5
%description libs
547b3c5
The OpenIPMI-libs package contains the runtime libraries for shared binaries
547b3c5
and applications.
547b3c5
547b3c5
%package tools
547b3c5
Group: Applications/System
547b3c5
Summary: OpenIPMI utilities and scripts from ipmitool
547b3c5
547b3c5
%description tools
547b3c5
The OpenIPMI-tools package contains the addon utilities and script from the
547b3c5
ipmitool project.
de32eba
de32eba
%package devel
de32eba
Group: Development/Libraries
de32eba
Summary: The development environment for the OpenIPMI project.
de32eba
Requires: %{name} = %{version}
de32eba
de32eba
%description devel
de32eba
The OpenIPMI-devel package contains the development libraries and header files
de32eba
of the OpenIPMI project.
de32eba
de32eba
%prep
547b3c5
%setup -q -a 2
33c91a3
%patch1 -p1 -b .gcc4
547b3c5
%patch2 -p1 -b .oob
c7f2a24
%patch3 -p1 -b .warnings
bda78e2
%patch4 -p1 -b .lanplus-session-privset
de32eba
de32eba
%build
de32eba
%configure
e94f0b1
make
547b3c5
pushd ipmitool-%{ipmitoolver}
547b3c5
%configure
e94f0b1
make 
547b3c5
popd
de32eba
de32eba
%install
de32eba
%makeinstall
de32eba
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
547b3c5
pushd ipmitool-%{ipmitoolver}
547b3c5
%makeinstall
547b3c5
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/
547b3c5
popd
547b3c5
547b3c5
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
547b3c5
install -m 644 %SOURCE3 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/ipmi
547b3c5
install -d ${RPM_BUILD_ROOT}%{_initrddir}
547b3c5
install -m 755 %SOURCE4 ${RPM_BUILD_ROOT}%{_initrddir}/ipmi
547b3c5
547b3c5
%post
547b3c5
/sbin/chkconfig --add ipmi
547b3c5
547b3c5
%preun
547b3c5
if [ $1 = 0 ]; then
c57b4dd
   service ipmi stop >/dev/null 2>&1
547b3c5
   /sbin/chkconfig --del ipmi
547b3c5
fi
547b3c5
547b3c5
%postun
547b3c5
if [ "$1" -ge "1" ]; then
547b3c5
    service ipmi condrestart >/dev/null 2>&1 || :
547b3c5
fi
547b3c5
547b3c5
%post libs -p /sbin/ldconfig
547b3c5
547b3c5
%postun libs -p /sbin/ldconfig
de32eba
de32eba
%clean
de32eba
rm -rf $RPM_BUILD_ROOT
de32eba
de32eba
%files
de32eba
%defattr(-,root,root)
547b3c5
%config(noreplace) %{_sysconfdir}/sysconfig/ipmi
1a97e9d
%config %{_initrddir}/ipmi
547b3c5
%{_bindir}/ipmi_ui
547b3c5
%{_bindir}/ipmicmd
547b3c5
%{_bindir}/ipmilan
547b3c5
%{_bindir}/ipmish
547b3c5
%{_mandir}/man[18]/*
f4e77b7
%{_libdir}/perl5/site_perl/*/*-linux-thread-multi/OpenIPMI.pm
f4e77b7
%dir %{_libdir}/perl5/site_perl/*/*-linux-thread-multi/auto/OpenIPMI
f4e77b7
%{_libdir}/perl5/site_perl/*/*-linux-thread-multi/auto/OpenIPMI/*
de32eba
547b3c5
%files tools
547b3c5
%defattr(-,root,root)
547b3c5
%{_datadir}/ipmitool/
547b3c5
%{_bindir}/ipmitool
547b3c5
/usr/sbin/ipmievd
547b3c5
547b3c5
%files libs
547b3c5
%defattr(-,root,root)
547b3c5
%{_libdir}/*.so.*
547b3c5
%{_libdir}/pkgconfig/*
547b3c5
de32eba
%files devel
de32eba
%defattr(-,root,root)
547b3c5
%{_mandir}/man7/*
de32eba
%{_includedir}/OpenIPMI
c279869
%{_libdir}/*.so
de32eba
%{_libdir}/*.a
de32eba
de32eba
%changelog
843fe09
* Tue Jan 03 2006 Radek Vokal <rvokal@redhat.com> 1.4.14-15
843fe09
- Rebuilt against new libnetsnmp
843fe09
fd63c67
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
fd63c67
- rebuilt
fd63c67
0e5db56
* Wed Nov 23 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-14
0e5db56
- Some more initscript and sysconfig updates from Dell.
0e5db56
bda78e2
* Wed Nov 09 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-13
2a3e579
- Rebuilt to link against latest openssl libs.
bda78e2
- Fixed ipmitool not setting session privilege level (#172312)
2a3e579
ce30332
* Wed Nov 02 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-11
ce30332
- Rebuild to link against new net-snmp libs.
ce30332
54dcbd5
* Tue Oct 11 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-10
54dcbd5
- Updated initscript to fix missing redhat-lsb bug (#169901)
54dcbd5
31e3fcf
* Thu Sep 08 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-9
31e3fcf
- Another update to latest initscripts from Dell
31e3fcf
- Fixed some missing return statements for non-void functions (#164138)
31e3fcf
4b715b9
* Thu Sep 01 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-8
4b715b9
- Updated initscript to latest version from Dell
4b715b9
e94f0b1
* Fri Aug 12 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-7
e94f0b1
- Fixed the unwanted output of failed module loading of the initscript. Behaves
e94f0b1
  now like all our other initscripts (#165476)
e94f0b1
1dd9814
* Fri Aug 05 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-6
1dd9814
- Fixed build problem on 64bit machines
1dd9814
1a97e9d
* Fri Jul 15 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-5
1a97e9d
- Fixed missing change to not autostart in the initscript
1a97e9d
1a97e9d
* Wed Jul 06 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-4
1a97e9d
- Made the initscript a replacing configfile
1a97e9d
1a97e9d
* Mon Jul 04 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-3
c57b4dd
- Updated versions of the initscripts and sysconf files
c57b4dd
- Fixed typo in preun script and changelog
c57b4dd
547b3c5
* Mon Jun 27 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.14-2
547b3c5
- Updated to OpenIPMI-1.4.14
547b3c5
- Split the main package into normal and libs package for multilib support
c57b4dd
- Added ipmitool-1.8.2 to OpenIPMI and put it in tools package
547b3c5
- Added sysconf and initscript (#158270)
547b3c5
- Fixed oob subscripts (#149142)
547b3c5
c279869
* Wed Mar 30 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.11-5
c279869
- Correctly put libs in the proper packages
c279869
33c91a3
* Thu Mar 17 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.11-4
33c91a3
- gcc4 rebuild fixes
33c91a3
- Added missing gdbm-devel buildprereq
33c91a3
3a0293d
* Wed Mar 02 2005 Phil Knirsch <pknirsch@redhat.com> 1.4.11-3
3a0293d
- bump release and rebuild with gcc 4
3a0293d
62de057
* Tue Feb 08 2005 Karsten Hopp <karsten@redhat.de> 1.4.11-2 
62de057
- update
62de057
de32eba
* Tue Oct 26 2004 Phil Knirsch <pknirsch@redhat.com>
de32eba
- Initial version