ferdnyc / rpms / OpenIPMI

Forked from rpms/OpenIPMI 5 years ago
Clone
f1e2060
%define ipmitoolver 1.8.9
5573819
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
de32eba
Summary: OpenIPMI (Intelligent Platform Management Interface) library and tools
de32eba
Name: OpenIPMI
530783f
Version: 2.0.13
031b9b6
Release: 2%{?dist}
738eff8
License: BSD and BSD with advertising and LGPLv2+ and GPLv2+
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
738eff8
Patch100: ipmitool-1.8.9-open.patch
37871a0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c53aadc
PreReq: chkconfig
601c29d
BuildPrereq: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel
a499081
BuildPrereq: openssl-devel python-devel readline-devel popt-devel
f5c033c
BuildPrereq: perl-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
601c29d
%package perl
601c29d
Group: Development/Libraries
601c29d
Summary: OpenIPMI Perl language bindings
601c29d
601c29d
%description perl
601c29d
The OpenIPMI-perl package contains the Perl language bindings for OpenIPMI.
601c29d
601c29d
%package python
601c29d
Group: Development/Libraries
601c29d
Summary: OpenIPMI Python language bindings
601c29d
601c29d
%description python
601c29d
The OpenIPMI-perl package contains the Python language bindings for OpenIPMI.
601c29d
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
738eff8
pushd ipmitool-%{ipmitoolver}
738eff8
%patch100 -p1 -b .open
de32eba
de32eba
%build
5573819
%configure --with-pythoninstall=%{python_sitearch}
e94f0b1
make
547b3c5
pushd ipmitool-%{ipmitoolver}
547b3c5
%configure
e94f0b1
make 
547b3c5
popd
de32eba
de32eba
%install
601c29d
make install DESTDIR=$RPM_BUILD_ROOT
de32eba
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
6abca7b
# Remove python cruft in 32bit libdir on 64bit archs...
6abca7b
%ifarch ppc64 s390x x86_64
6abca7b
rm -rf $RPM_BUILD_ROOT/usr/lib
6abca7b
%endif
547b3c5
pushd ipmitool-%{ipmitoolver}
f1e2060
make install DESTDIR=$RPM_BUILD_ROOT
f1e2060
#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}/ipmicmd
547b3c5
%{_bindir}/ipmilan
547b3c5
%{_bindir}/ipmish
601c29d
%{_bindir}/ipmi_ui
601c29d
%{_bindir}/openipmicmd
601c29d
%{_bindir}/openipmish
601c29d
%{_bindir}/rmcp_ping
601c29d
%{_bindir}/solterm
a6e4d47
%{_mandir}/man1/ipmi_ui*
601c29d
%{_mandir}/man1/openipmicmd*
601c29d
%{_mandir}/man1/openipmigui*
601c29d
%{_mandir}/man1/openipmish*
601c29d
%{_mandir}/man1/rmcp_ping*
601c29d
%{_mandir}/man1/solterm*
601c29d
%{_mandir}/man7/ipmi_cmdlang*
601c29d
%{_mandir}/man7/openipmi_conparms*
a6e4d47
%{_mandir}/man8/ipmilan*
601c29d
601c29d
%files perl
f1e2060
%{_libdir}/perl5/vendor_perl/*/*-linux-thread-multi/OpenIPMI.pm
f1e2060
%dir %{_libdir}/perl5/vendor_perl/*/*-linux-thread-multi/auto/OpenIPMI
f1e2060
%{_libdir}/perl5/vendor_perl/*/*-linux-thread-multi/auto/OpenIPMI/*
de32eba
601c29d
%files python
601c29d
%{_libdir}/python*/site-packages/*
601c29d
547b3c5
%files tools
547b3c5
%defattr(-,root,root)
547b3c5
%{_bindir}/ipmitool
a6e4d47
%{_mandir}/man1/ipmitool*
a6e4d47
%{_mandir}/man8/ipmievd*
f1e2060
%{_datadir}/doc/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
031b9b6
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.13-2
031b9b6
- Autorebuild for GCC 4.3
031b9b6
530783f
* Wed Dec 05 2007 Phil Knirsch <pknirsch@redhat.com> - 2.0.13-1
530783f
- Updated to OpenIPMI-2.0.13
530783f
- Rebuild due to new openssl
530783f
f5c033c
* Wed Oct 10 2007 Phil Knirsch <pknirsch@redhat.com> - 2.0.11-3
f5c033c
- Added missing perl-devel buildrequires
f5c033c
a499081
* Mon Sep 24 2007 Phil Knirsch <pknirsch@redhat.com> - 2.0.11-2
a499081
- Added missing popt-devel buildrequires
a499081
738eff8
* Fri Aug 17 2007 Phil Knirsch <pknirsch@redhat.com> - 2.0.11-2
738eff8
- Fix rebuild problems due to glibc change
738eff8
- License review and fixes
738eff8
f1e2060
* Tue Apr 24 2007 Phil Knirsch <pknirsch@redhat.com> - 2.0.11-1
f1e2060
- Update to OpenIPMI-2.0.11
f1e2060
f1e2060
* Tue Feb 27 2007 Phil Knirsch <pknirsch@redhat.com> - 2.0.6-8
f1e2060
- Update for ipmitool-1.8.9
f1e2060
5573819
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 2.0.6-7
5573819
- rebuild for python 2.5
5573819
37871a0
* Tue Nov 28 2006 Phil Knirsch <pknirsch@redhat.com> - 2.0.6-6.fc7
37871a0
- Update due to new net-snmp-5.4
37871a0
- Some specfile updates
37871a0
9bfb685
* Tue Jul 18 2006 Phil Knirsch <pknirsch@redhat.com> - 2.0.6-5
9bfb685
- Fixed check for udev in initscript (#197956)
9bfb685
1dcb5d1
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.0.6-4.1
1dcb5d1
- rebuild
1dcb5d1
fe99703
* Fri Jun 16 2006 Bill Nottingham <notting@redhat.com> 2.0.6-4
fe99703
- don't include <linux/compiler.h>
fe99703
fe99703
* Fri Jun 16 2006 Jon Masters <jcm@redhat.com> 2.0.6-3
fe99703
- Fix a build requires (needs glibc-kernheaders)
fe99703
d028d30
* Thu Jun 15 2006 Jesse Keating <jkeating@redhat.com> 2.0.6-2
d028d30
- Bump for new glib2
d028d30
601c29d
* Tue May 16 2006 Phil Knirsch <pknirsch@redhat.com> 2.0.6-1
601c29d
- Fixed bug with type conversion in ipmitool (#191091)
601c29d
- Added python bindings 
601c29d
- Split off perl and python bindings in separate subpackages
601c29d
- Dropped obsolete patches
6ea3df0
- Added missing buildprereq on readline-devel
6abca7b
- Made it install the python bindings properly on 64bit archs
601c29d
601c29d
* Mon May 15 2006 Phil Knirsch <pknirsch@redhat.com>
3513deb
- Updated ipmitool to 1.8.8
601c29d
- Updated OpenIPMI to 2.0.6
601c29d
c53aadc
* Fri Feb 17 2006 Phil Knirsch <pknirsch@redhat.com> 1.4.14-19
c53aadc
- Added missing PreReq for chkconfig
c53aadc
b6ca050
* Mon Feb 13 2006 Jesse Keating <jkeating@redhat.com> - 1.4.14-18.2.1
b6ca050
- rebump for build order issues during double-long bump
b6ca050
d92b9b6
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.4.14-18.2
d92b9b6
- bump again for double-long bug on ppc(64)
d92b9b6
81dae43
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.4.14-18.1
81dae43
- rebuilt for new gcc4.1 snapshot and glibc changes
81dae43
a1346a0
* Mon Feb 06 2006 Phil Knirsch <pknirsch@redhat.com> 1.4.14-18
a1346a0
- Updated ipmitool to latest upstream version.
a1346a0
- Removed 3 patches for already fixed bugs in latest ipmitool.
a1346a0
- Adapted warning message fix for ipmitool for latest version.
a1346a0
7891584
* Tue Jan 24 2006 Phil Knirsch <pknirsch@redhat.com> 1.4.14-17
7891584
- Fixed some minor things in initscripts.
7891584
a21d08f
* Mon Jan 09 2006 Phil Knirsch <pknirsch@redhat.com> 1.4.14-16
a6e4d47
- Included FRU fix for displaying FRUs with ipmitool
a6e4d47
- Included patch for new option to specify a BMC password for IPMI 2.0 sessions
a6e4d47
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