Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12:Update
OpenIPMI
OpenIPMI.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File OpenIPMI.spec of Package OpenIPMI
# # spec file for package OpenIPMI # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} Name: OpenIPMI BuildRequires: gd-devel BuildRequires: gdbm-devel BuildRequires: glib2-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libtool BuildRequires: ncurses-devel BuildRequires: net-snmp-devel BuildRequires: openssl-devel %if 0%{?suse_version} > 1200 BuildRequires: perl-macros %endif BuildRequires: pkg-config BuildRequires: popt-devel BuildRequires: python-devel BuildRequires: python-tk BuildRequires: python-xml BuildRequires: swig BuildRequires: tcl-devel BuildRequires: tix Version: 2.0.21 Release: 0 Source0: http://prdownloads.sourceforge.net/openipmi/%{name}-%{version}.tar.gz Source1: sysconfig.ipmi Source2: openipmi.initscript Patch0: OpenIPMI-prefer_perl_vendor.patch Patch2: OpenIPMI-libtool.patch Patch7: fix-conversions.patch Source99: OpenIPMI-rpmlintrc Url: http://openipmi.sourceforge.net Provides: ipmi_ui Provides: ipmicmd Provides: ipmilan BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: OpenIPMI License: LGPL-2.1+ Group: System/Monitoring PreReq: %install_info_prereq %insserv_prereq %fillup_prereq %if 0%{?suse_version} > 1200 %{perl_requires} %else %define perl_version %(eval "`%{__perl} -V:version`"; echo $version) %if 0%{?fedora} %define perl_requires perl(:MODULE_COMPAT_%{perl_version}) Requires: %{perl_version} %else Requires: perl = %{perl_version} %endif %endif # Perl is sometimes installed in /usr/lib, not /usr/lib64 on 64-bit platforms. # %define perl_libdir %{_exec_prefix}/lib %description OpenIPMI is an effort to create a full-function IPMI system to allow full access to all IPMI information on a server and to abstract it to a level that makes it easy to use. OpenIPMI consists of two main parts: a device driver that is included in the Linux kernel and a user-level library that provides a higher-level abstraction of IPMI and generic services that can be used on any operation system. This package contains the user-level library part. This OpenIPMI library also includes the ipmicmd program, a small program that lets you inject and receive messages. %package devel Summary: OpenIPMI - Development libraries Group: Development/Libraries/Other Provides: libIPMIlanserv Provides: libOpenIPMI Provides: libOpenIPMIui Requires: OpenIPMI = %{version} Requires: glibc-devel %description devel These libraries are needed to get full access to the OpenIPMI functions. %package python License: LGPL-2.1+ Summary: OpenIPMI Group: System/Monitoring Requires: OpenIPMI python-tk tix Provides: openipmigui AutoReqProv: on %description python The python parts provide a OpenIPMI python library and a GUI, openipmigui making use of it. %prep %setup -n %{name}-%{version} %patch0 -p1 %patch2 %patch7 -p1 %build autoreconf --install --force %configure --disable-static --with-pic \ --with-openssl=yes \ --with-pythoninstall=%{py_sitedir} \ --with-tcl=yes \ --with-tcllibs=-ltcl%{tcl_version} # parallel make does not work make %install make DESTDIR=$RPM_BUILD_ROOT install install -d $RPM_BUILD_ROOT/var/adm/fillup-templates install -d $RPM_BUILD_ROOT/etc/init.d install -d $RPM_BUILD_ROOT/sbin install -m 644 %{S:1} $RPM_BUILD_ROOT/var/adm/fillup-templates install -m 755 %{S:2} $RPM_BUILD_ROOT/etc/init.d/ipmi ln -sf ../etc/init.d/ipmi $RPM_BUILD_ROOT/sbin/rcipmi %{__rm} -f %{buildroot}%{_libdir}/*.la # rebuild python files to fix timestamps: for d in "%{python_sitelib}" "%{python_sitearch}"; do [ -d "%{buildroot}$d" ] || continue find "%{buildroot}$d/" -type f \( -name '*.pyc' -o -name '*.pyo' \) -exec %__rm {} \; %__python -c 'import compileall; compileall.compile_dir("%{buildroot}'"$d"'",ddir="'"$d"'",force=1)' done %clean %{?buildroot:%__rm -rf "%{buildroot}"} %post /sbin/ldconfig %{fillup_and_insserv -n ipmi ipmi} %postun /sbin/ldconfig %restart_on_update ipmi %insserv_cleanup %post devel %install_info --info-dir=%_infodir %_infodir/%name.info.gz %postun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %files %defattr(-,root,root) %doc CONFIGURING_FOR_LAN COPYING COPYING.BSD COPYING.LIB FAQ %doc README README.Force README.MotorolaMXP /var/adm/fillup-templates/sysconfig.ipmi /etc/init.d/ipmi /sbin/rcipmi %{_libdir}/libOpenIPMI*.so.* %dir %{_sysconfdir}/ipmi %config(noreplace) %{_sysconfdir}/ipmi/* ###### perl files ###### %dir %{perl_vendorarch}/auto/OpenIPMI %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so %{perl_vendorarch}/OpenIPMI.pm %doc swig/perl/sample swig/perl/ipmi_powerctl ###### ui files ###### %{_bindir}/ipmi_sim %{_bindir}/ipmi_ui %{_bindir}/ipmicmd %{_bindir}/openipmicmd %{_bindir}/ipmish %{_bindir}/openipmish %{_bindir}/sdrcomp %{_bindir}/solterm %{_bindir}/rmcp_ping %doc %{_mandir}/man1/ipmi_ui.1* %doc %{_mandir}/man1/openipmicmd.1* %doc %{_mandir}/man1/openipmish.1* %doc %{_mandir}/man1/solterm.1* %doc %{_mandir}/man1/rmcp_ping.1* %doc %{_mandir}/man1/ipmi_sim.1* %doc %{_mandir}/man5/ipmi_lan.5* %doc %{_mandir}/man5/ipmi_sim_cmd.5* %doc %{_mandir}/man7/ipmi_cmdlang.7* %doc %{_mandir}/man7/openipmi_conparms.7* ###### lanserv files ##### %{_bindir}/ipmilan %{_libdir}/libIPMIlanserv.so.* %doc %{_mandir}/man8/ipmilan.8* %files devel %defattr(644,root,root,755) %{_prefix}/include/* %{_prefix}/%{_lib}/*.so %{_prefix}/%{_lib}/pkgconfig/*.pc %doc doc/IPMI.pdf ################################################### %files python %defattr(644,root,root,755) %{py_sitedir}/*OpenIPMI.* %doc swig/OpenIPMI.i ###### gui files ###### %dir %{py_sitedir}/openipmigui %{py_sitedir}/openipmigui/* %{_bindir}/openipmigui %doc %{_mandir}/man1/openipmigui.1* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor