2 # - bad BR (version mismatch):
3 # File "_mc_user.py", line 240, in ?
4 # class MCUsers(gui_treelist.TreeList): AttributeError: 'module' object has no attribute 'TreeList'
5 # make[4]: *** [_entity.pyc] Error 1
8 %bcond_without gui # don't build tkinter-based GUI
10 Summary: IPMI abstraction layer
11 Summary(pl): Warstwa abstrakcji IPMI
15 License: LGPL (library), GPL (ipmicmd)
17 Source0: http://dl.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
18 # Source0-md5: 8f5c200c5f25c33250567eaeb685e8c0
19 Patch0: %{name}-link.patch
20 Patch1: %{name}-python.patch
21 URL: http://openipmi.sourceforge.net/
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: gcc >= 5:3.2
25 BuildRequires: gdbm-devel
26 BuildRequires: glib2-devel >= 2.0
27 BuildRequires: libtool >= 1:1.4.2-9
28 BuildRequires: ncurses-devel
29 BuildRequires: net-snmp-devel
30 BuildRequires: perl-devel
31 BuildRequires: pkgconfig
32 BuildRequires: popt-devel
33 BuildRequires: python-devel
34 %{?with_gui:BuildRequires: python-tkinter}
35 BuildRequires: tcl-devel
36 BuildRequires: rpm-pythonprov
37 BuildRequires: swig-perl >= 1.3.25
38 BuildRequires: swig-python >= 1.3.25
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 OpenIPMI project aims to develop an open code base to allow access to
43 platform information using Intelligent Platform Management Interface
47 Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu
48 pozwalaj±cego na dostêp do informacji o platformie pzy u¿yciu
49 interfejsu IPMI (Intelligent Platform Management Interface -
50 interfejsu inteligentnego zarz±dzania platform±)
53 Summary: Development part of OpenIPMI Toolkit libraries
54 Summary(pl): Programistyczna cze¶æ bibliotek OpenIPMI
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
59 Development part of OpenIPMI libraries.
61 %description devel -l pl
62 Programistyczna cze¶æ bibliotek OpenIPMI.
65 Summary: Static OpenIPMI libraries
66 Summary(pl): Statyczne biblioteki OpenIPMI
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Static OpenIPMI Toolkit libraries.
73 %description static -l pl
74 Statyczne biblioteki OpenIPMI.
76 %package -n perl-%{name}
77 Summary: Perl interface to OpenIPMI
78 Summary(pl): Perlowy interfejs do OpenIPMI
79 Group: Development/Languages/Perl
80 Requires: %{name} = %{version}-%{release}
82 %description -n perl-%{name}
83 Perl interface to OpenIPMI.
85 %description -n perl-%{name} -l pl
86 Perlowy interfejs do OpenIPMI.
88 %package -n python-%{name}
89 Summary: Python interface to OpenIPMI
90 Summary(pl): Pythonowy interfejs do OpenIPMI
91 Group: Development/Languages/Python
92 Requires: %{name} = %{version}-%{release}
93 %pyrequires_eq python-libs
95 %description -n python-%{name}
96 Python interface to OpenIPMI.
98 %description -n perl-%{name} -l pl
99 Pythonowy interfejs do OpenIPMI.
102 Summary: OpenIPMI GUI
103 Summary(pl): Graficzny interfejs u¿ytkownika do OpenIPMI
104 Group: X11/Applications
105 Requires: python-%{name} = %{version}-%{release}
106 Requires: python-tkinter
111 %description gui -l pl
112 Graficzny interfejs u¿ytkownika do OpenIPMI.
124 CPPFLAGS="-I/usr/include/ncurses"
127 %{!?with_gui:--without-tkinter}
129 PYTHON_INSTALL_DIR=%{py_sitedir}
132 rm -rf $RPM_BUILD_ROOT
134 %{__make} install -j1 \
135 DESTDIR=$RPM_BUILD_ROOT \
136 PYTHON_INSTALL_DIR=%{py_sitedir}
138 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{py,la,a} \
139 $RPM_BUILD_ROOT%{py_sitedir}/openipmigui/*.py
142 rm -rf $RPM_BUILD_ROOT
144 %post -p /sbin/ldconfig
145 %postun -p /sbin/ldconfig
148 %defattr(644,root,root,755)
149 %doc ChangeLog FAQ README* TODO
150 %attr(755,root,root) %{_bindir}/ipmi*
151 %attr(755,root,root) %{_bindir}/openipmicmd
152 %attr(755,root,root) %{_bindir}/openipmish
153 %attr(755,root,root) %{_bindir}/rmcp_ping
154 %attr(755,root,root) %{_bindir}/solterm
155 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
156 %{_mandir}/man[178]/*
159 %defattr(644,root,root,755)
160 %attr(755,root,root) %{_libdir}/lib*.so
162 %{_includedir}/%{name}
163 %{_pkgconfigdir}/*.pc
166 %defattr(644,root,root,755)
169 %files -n perl-%{name}
170 %defattr(644,root,root,755)
171 %{perl_vendorarch}/OpenIPMI.pm
172 %dir %{perl_vendorarch}/auto/OpenIPMI
173 %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so
175 %files -n python-%{name}
176 %defattr(644,root,root,755)
177 %attr(755,root,root) %{py_sitedir}/_OpenIPMI.so
178 %{py_sitedir}/OpenIPMI.py[co]
182 %defattr(644,root,root,755)
183 %doc swig/python/openipmigui/TODO
184 %attr(755,root,root) %{_bindir}/openipmigui
185 %dir %{py_sitedir}/openipmigui
186 %{py_sitedir}/openipmigui/*.py[co]