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