]>
Commit | Line | Data |
---|---|---|
5ce9a439 JB |
1 | # |
2 | # Conditional build: | |
1b0573f7 | 3 | %bcond_without gui # don't build tkinter-based GUI |
5ce9a439 | 4 | # |
e25b096b | 5 | Summary: IPMI abstraction layer |
e6e22c26 | 6 | Summary(pl.UTF-8): Warstwa abstrakcji IPMI |
e25b096b | 7 | Name: OpenIPMI |
a5bfc6a3 JB |
8 | Version: 2.0.33 |
9 | Release: 1 | |
9996877d | 10 | License: LGPL v2+ (library), GPL v2+ (ipmicmd) |
e25b096b | 11 | Group: Libraries |
115ed3f3 | 12 | Source0: http://downloads.sourceforge.net/openipmi/%{name}-%{version}.tar.gz |
a5bfc6a3 | 13 | # Source0-md5: 923d2914dbbc3307712f8c58401bab0f |
b4cd7bfe | 14 | Patch0: %{name}-tcl.patch |
e25b096b | 15 | URL: http://openipmi.sourceforge.net/ |
45705701 | 16 | BuildRequires: autoconf >= 2.50 |
c892f694 | 17 | BuildRequires: autoconf-archive >= 2017.03.21 |
3f33a1f3 | 18 | BuildRequires: automake |
6582d0ee | 19 | BuildRequires: gcc >= 5:3.2 |
effce6a6 | 20 | BuildRequires: gdbm-devel |
3c3ddf24 | 21 | BuildRequires: glib2-devel >= 2.0 |
3f33a1f3 | 22 | BuildRequires: libtool >= 1:1.4.2-9 |
e25b096b | 23 | BuildRequires: ncurses-devel |
3c3ddf24 | 24 | BuildRequires: net-snmp-devel |
115ed3f3 | 25 | BuildRequires: openssl-devel |
3c3ddf24 JB |
26 | BuildRequires: perl-devel |
27 | BuildRequires: pkgconfig | |
3f33a1f3 | 28 | BuildRequires: popt-devel |
b4cd7bfe JB |
29 | BuildRequires: python3-devel >= 1:3.2 |
30 | %{?with_gui:BuildRequires: python3-tkinter} | |
57c80e3b | 31 | BuildRequires: sed >= 4.0 |
1b0573f7 | 32 | BuildRequires: tcl-devel |
5ce9a439 | 33 | BuildRequires: rpm-pythonprov |
c3f6a455 | 34 | BuildRequires: swig-perl >= 1.3.25 |
b4cd7bfe | 35 | BuildRequires: swig-python >= 2.0 |
e25b096b AM |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
45705701 JB |
38 | # libOpenIPMIcmdlang refers to global ipmi_cmdlang_{global_err,report_event} symbols |
39 | # libIPMIlanserv uses symbols from binaries (ipmilan, ipmi_sim) | |
40 | %define skip_post_check_so libOpenIPMIcmdlang\.so\..* libIPMIlanserv\.so\..* | |
d92c5328 | 41 | |
e25b096b | 42 | %description |
3f33a1f3 | 43 | OpenIPMI project aims to develop an open code base to allow access to |
e25b096b AM |
44 | platform information using Intelligent Platform Management Interface |
45 | (IPMI). | |
46 | ||
2756e887 | 47 | %description -l pl.UTF-8 |
3f33a1f3 | 48 | Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu |
2756e887 | 49 | pozwalającego na dostęp do informacji o platformie pzy użyciu |
3f33a1f3 | 50 | interfejsu IPMI (Intelligent Platform Management Interface - |
2756e887 | 51 | interfejsu inteligentnego zarządzania platformą) |
3f33a1f3 | 52 | |
e25b096b AM |
53 | %package devel |
54 | Summary: Development part of OpenIPMI Toolkit libraries | |
e6e22c26 | 55 | Summary(pl.UTF-8): Programistyczna cześć bibliotek OpenIPMI |
e25b096b | 56 | Group: Development/Libraries |
6897ea01 | 57 | Requires: %{name} = %{version}-%{release} |
e25b096b AM |
58 | |
59 | %description devel | |
3f33a1f3 JB |
60 | Development part of OpenIPMI libraries. |
61 | ||
2756e887 JR |
62 | %description devel -l pl.UTF-8 |
63 | Programistyczna cześć bibliotek OpenIPMI. | |
e25b096b AM |
64 | |
65 | %package static | |
66 | Summary: Static OpenIPMI libraries | |
e6e22c26 | 67 | Summary(pl.UTF-8): Statyczne biblioteki OpenIPMI |
e25b096b | 68 | Group: Development/Libraries |
6897ea01 | 69 | Requires: %{name}-devel = %{version}-%{release} |
e25b096b AM |
70 | |
71 | %description static | |
72 | Static OpenIPMI Toolkit libraries. | |
73 | ||
2756e887 | 74 | %description static -l pl.UTF-8 |
3f33a1f3 | 75 | Statyczne biblioteki OpenIPMI. |
e25b096b | 76 | |
3c3ddf24 JB |
77 | %package -n perl-%{name} |
78 | Summary: Perl interface to OpenIPMI | |
e6e22c26 | 79 | Summary(pl.UTF-8): Perlowy interfejs do OpenIPMI |
3c3ddf24 JB |
80 | Group: Development/Languages/Perl |
81 | Requires: %{name} = %{version}-%{release} | |
82 | ||
83 | %description -n perl-%{name} | |
84 | Perl interface to OpenIPMI. | |
85 | ||
2756e887 | 86 | %description -n perl-%{name} -l pl.UTF-8 |
3c3ddf24 JB |
87 | Perlowy interfejs do OpenIPMI. |
88 | ||
b4cd7bfe | 89 | %package -n python3-%{name} |
f312100c | 90 | Summary: Python interface to OpenIPMI |
e6e22c26 | 91 | Summary(pl.UTF-8): Pythonowy interfejs do OpenIPMI |
f312100c ER |
92 | Group: Development/Languages/Python |
93 | Requires: %{name} = %{version}-%{release} | |
b4cd7bfe | 94 | Obsoletes: python-OpenIPMI < 2.0.32 |
698af8e6 | 95 | |
b4cd7bfe | 96 | %description -n python3-%{name} |
698af8e6 | 97 | Python interface to OpenIPMI. |
98 | ||
b4cd7bfe | 99 | %description -n python3-%{name} -l pl.UTF-8 |
698af8e6 | 100 | Pythonowy interfejs do OpenIPMI. |
101 | ||
5ce9a439 JB |
102 | %package gui |
103 | Summary: OpenIPMI GUI | |
e6e22c26 | 104 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do OpenIPMI |
5ce9a439 | 105 | Group: X11/Applications |
ab507beb JB |
106 | Requires: python3-%{name} = %{version}-%{release} |
107 | Requires: python3-tkinter | |
5ce9a439 JB |
108 | |
109 | %description gui | |
110 | OpenIPMI GUI. | |
111 | ||
2756e887 JR |
112 | %description gui -l pl.UTF-8 |
113 | Graficzny interfejs użytkownika do OpenIPMI. | |
5ce9a439 | 114 | |
e25b096b AM |
115 | %prep |
116 | %setup -q | |
3f33a1f3 | 117 | %patch0 -p1 |
e25b096b | 118 | |
b4cd7bfe | 119 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' swig/python/openipmigui.py |
c892f694 | 120 | %{__rm} m4/ax_python_devel.m4 |
57c80e3b | 121 | |
e25b096b AM |
122 | %build |
123 | %{__libtoolize} | |
45705701 | 124 | %{__aclocal} -I m4 |
e25b096b | 125 | %{__autoconf} |
45705701 | 126 | %{__autoheader} |
e25b096b | 127 | %{__automake} |
45705701 | 128 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" |
5ce9a439 | 129 | %configure \ |
b4cd7bfe JB |
130 | PYTHON=%{__python3} \ |
131 | --with-pythoninstall=%{py3_sitescriptdir} \ | |
132 | --with-pythoninstalllib=%{py3_sitedir} \ | |
5ce9a439 | 133 | --without-glib12 \ |
7a27fd13 | 134 | --with-tkinter%{!?with_gui:=no} |
22ebbb5c | 135 | %{__make} %{?with_gui:-j1} |
e25b096b AM |
136 | |
137 | %install | |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
06d50aea | 140 | %{__make} install -j1 \ |
9996877d | 141 | DESTDIR=$RPM_BUILD_ROOT |
e25b096b | 142 | |
b4cd7bfe JB |
143 | %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir} |
144 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir} | |
7a27fd13 | 145 | |
b4cd7bfe | 146 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.{la,a} |
dbd75781 | 147 | |
e25b096b AM |
148 | %clean |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %post -p /sbin/ldconfig | |
152 | %postun -p /sbin/ldconfig | |
153 | ||
154 | %files | |
155 | %defattr(644,root,root,755) | |
3386018d | 156 | %doc CONFIGURING_FOR_LAN ChangeLog FAQ README* TODO |
45705701 | 157 | %attr(755,root,root) %{_bindir}/ipmi_sim |
9996877d JB |
158 | %attr(755,root,root) %{_bindir}/ipmi_ui |
159 | %attr(755,root,root) %{_bindir}/ipmicmd | |
160 | %attr(755,root,root) %{_bindir}/ipmilan | |
161 | %attr(755,root,root) %{_bindir}/ipmish | |
74674ade | 162 | %attr(755,root,root) %{_bindir}/openipmi_eventd |
5ce9a439 JB |
163 | %attr(755,root,root) %{_bindir}/openipmicmd |
164 | %attr(755,root,root) %{_bindir}/openipmish | |
165 | %attr(755,root,root) %{_bindir}/rmcp_ping | |
45705701 | 166 | %attr(755,root,root) %{_bindir}/sdrcomp |
5ce9a439 | 167 | %attr(755,root,root) %{_bindir}/solterm |
9996877d | 168 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so.*.*.* |
9996877d | 169 | %attr(755,root,root) %ghost %{_libdir}/libIPMIlanserv.so.0 |
1defc821 JB |
170 | %attr(755,root,root) %{_libdir}/libOpenIPMI.so.*.*.* |
171 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMI.so.0 | |
172 | %attr(755,root,root) %{_libdir}/libOpenIPMIcmdlang.so.*.*.* | |
173 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIcmdlang.so.0 | |
174 | %attr(755,root,root) %{_libdir}/libOpenIPMIglib.so.*.*.* | |
175 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIglib.so.0 | |
176 | %attr(755,root,root) %{_libdir}/libOpenIPMIposix.so.*.*.* | |
177 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIposix.so.0 | |
178 | %attr(755,root,root) %{_libdir}/libOpenIPMIpthread.so.*.*.* | |
179 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIpthread.so.0 | |
180 | %attr(755,root,root) %{_libdir}/libOpenIPMItcl.so.*.*.* | |
181 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMItcl.so.0 | |
182 | %attr(755,root,root) %{_libdir}/libOpenIPMIui.so.*.*.* | |
183 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIui.so.1 | |
184 | %attr(755,root,root) %{_libdir}/libOpenIPMIutils.so.*.*.* | |
185 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIutils.so.0 | |
45705701 JB |
186 | %dir %{_sysconfdir}/ipmi |
187 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipmi/ipmisim1.emu | |
188 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipmi/lan.conf | |
189 | %{_mandir}/man1/ipmi_sim.1* | |
9996877d | 190 | %{_mandir}/man1/ipmi_ui.1* |
74674ade | 191 | %{_mandir}/man1/openipmi_eventd.1* |
9996877d JB |
192 | %{_mandir}/man1/openipmicmd.1* |
193 | %{_mandir}/man1/openipmish.1* | |
194 | %{_mandir}/man1/rmcp_ping.1* | |
195 | %{_mandir}/man1/solterm.1* | |
45705701 JB |
196 | %{_mandir}/man5/ipmi_lan.5* |
197 | %{_mandir}/man5/ipmi_sim_cmd.5* | |
9996877d JB |
198 | %{_mandir}/man7/ipmi_cmdlang.7* |
199 | %{_mandir}/man7/openipmi_conparms.7* | |
200 | %{_mandir}/man8/ipmilan.8* | |
e25b096b AM |
201 | |
202 | %files devel | |
203 | %defattr(644,root,root,755) | |
9996877d | 204 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so |
1defc821 JB |
205 | %attr(755,root,root) %{_libdir}/libOpenIPMI.so |
206 | %attr(755,root,root) %{_libdir}/libOpenIPMIcmdlang.so | |
207 | %attr(755,root,root) %{_libdir}/libOpenIPMIglib.so | |
208 | %attr(755,root,root) %{_libdir}/libOpenIPMIposix.so | |
209 | %attr(755,root,root) %{_libdir}/libOpenIPMIpthread.so | |
210 | %attr(755,root,root) %{_libdir}/libOpenIPMItcl.so | |
211 | %attr(755,root,root) %{_libdir}/libOpenIPMIui.so | |
212 | %attr(755,root,root) %{_libdir}/libOpenIPMIutils.so | |
9996877d | 213 | %{_libdir}/libIPMIlanserv.la |
1defc821 JB |
214 | %{_libdir}/libOpenIPMI.la |
215 | %{_libdir}/libOpenIPMIcmdlang.la | |
216 | %{_libdir}/libOpenIPMIglib.la | |
217 | %{_libdir}/libOpenIPMIposix.la | |
218 | %{_libdir}/libOpenIPMIpthread.la | |
219 | %{_libdir}/libOpenIPMItcl.la | |
220 | %{_libdir}/libOpenIPMIui.la | |
221 | %{_libdir}/libOpenIPMIutils.la | |
7a27fd13 | 222 | %{_includedir}/OpenIPMI |
1defc821 JB |
223 | %{_pkgconfigdir}/OpenIPMI.pc |
224 | %{_pkgconfigdir}/OpenIPMIcmdlang.pc | |
225 | %{_pkgconfigdir}/OpenIPMIglib.pc | |
226 | %{_pkgconfigdir}/OpenIPMIposix.pc | |
227 | %{_pkgconfigdir}/OpenIPMIpthread.pc | |
228 | %{_pkgconfigdir}/OpenIPMItcl.pc | |
229 | %{_pkgconfigdir}/OpenIPMIui.pc | |
230 | %{_pkgconfigdir}/OpenIPMIutils.pc | |
e25b096b AM |
231 | |
232 | %files static | |
233 | %defattr(644,root,root,755) | |
9996877d | 234 | %{_libdir}/libIPMIlanserv.a |
1defc821 JB |
235 | %{_libdir}/libOpenIPMI.a |
236 | %{_libdir}/libOpenIPMIcmdlang.a | |
237 | %{_libdir}/libOpenIPMIglib.a | |
238 | %{_libdir}/libOpenIPMIposix.a | |
239 | %{_libdir}/libOpenIPMIpthread.a | |
240 | %{_libdir}/libOpenIPMItcl.a | |
241 | %{_libdir}/libOpenIPMIui.a | |
242 | %{_libdir}/libOpenIPMIutils.a | |
3c3ddf24 JB |
243 | |
244 | %files -n perl-%{name} | |
245 | %defattr(644,root,root,755) | |
246 | %{perl_vendorarch}/OpenIPMI.pm | |
247 | %dir %{perl_vendorarch}/auto/OpenIPMI | |
248 | %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so | |
698af8e6 | 249 | |
b4cd7bfe | 250 | %files -n python3-%{name} |
9fc26b0d | 251 | %defattr(644,root,root,755) |
b4cd7bfe JB |
252 | %attr(755,root,root) %{py3_sitedir}/_OpenIPMI.so |
253 | %{py3_sitescriptdir}/OpenIPMI.py | |
254 | %{py3_sitescriptdir}/__pycache__/OpenIPMI.cpython-*.py[co] | |
5ce9a439 JB |
255 | |
256 | %if %{with gui} | |
257 | %files gui | |
258 | %defattr(644,root,root,755) | |
259 | %doc swig/python/openipmigui/TODO | |
260 | %attr(755,root,root) %{_bindir}/openipmigui | |
b4cd7bfe | 261 | %{py3_sitescriptdir}/openipmigui |
9996877d | 262 | %{_mandir}/man1/openipmigui.1* |
5ce9a439 | 263 | %endif |