]>
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 |
45705701 | 8 | Version: 2.0.21 |
d2316aed | 9 | Release: 2 |
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 |
45705701 | 13 | # Source0-md5: dc0b42ae40b3f1d0db2a94b75b95fae1 |
3f33a1f3 | 14 | Patch0: %{name}-link.patch |
45705701 JB |
15 | Patch1: %{name}-pthread.patch |
16 | Patch2: avoid-echo-e.patch | |
d2316aed | 17 | Patch3: %{name}-ac.patch |
e25b096b | 18 | URL: http://openipmi.sourceforge.net/ |
45705701 | 19 | BuildRequires: autoconf >= 2.50 |
3f33a1f3 | 20 | BuildRequires: automake |
6582d0ee | 21 | BuildRequires: gcc >= 5:3.2 |
effce6a6 | 22 | BuildRequires: gdbm-devel |
3c3ddf24 | 23 | BuildRequires: glib2-devel >= 2.0 |
3f33a1f3 | 24 | BuildRequires: libtool >= 1:1.4.2-9 |
e25b096b | 25 | BuildRequires: ncurses-devel |
3c3ddf24 | 26 | BuildRequires: net-snmp-devel |
115ed3f3 | 27 | BuildRequires: openssl-devel |
3c3ddf24 JB |
28 | BuildRequires: perl-devel |
29 | BuildRequires: pkgconfig | |
3f33a1f3 | 30 | BuildRequires: popt-devel |
8e07c864 | 31 | BuildRequires: python-devel |
1b0573f7 JB |
32 | %{?with_gui:BuildRequires: python-tkinter} |
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 |
5ce9a439 | 119 | %patch1 -p1 |
1defc821 | 120 | %patch2 -p1 |
d2316aed | 121 | %patch3 -p1 |
e25b096b AM |
122 | |
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 \ |
9996877d | 131 | --with-pythoninstalllib=%{py_sitedir} \ |
5ce9a439 | 132 | --without-glib12 \ |
1b0573f7 | 133 | %{!?with_gui:--without-tkinter} |
22ebbb5c | 134 | %{__make} %{?with_gui:-j1} |
e25b096b AM |
135 | |
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
06d50aea | 139 | %{__make} install -j1 \ |
9996877d | 140 | DESTDIR=$RPM_BUILD_ROOT |
e25b096b | 141 | |
115ed3f3 | 142 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \ |
9996877d | 143 | $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py \ |
38ae4a68 | 144 | %{?with_gui:$RPM_BUILD_ROOT%{py_sitescriptdir}/openipmigui/*.py} |
dbd75781 | 145 | |
e25b096b AM |
146 | %clean |
147 | rm -rf $RPM_BUILD_ROOT | |
148 | ||
149 | %post -p /sbin/ldconfig | |
150 | %postun -p /sbin/ldconfig | |
151 | ||
152 | %files | |
153 | %defattr(644,root,root,755) | |
3386018d | 154 | %doc CONFIGURING_FOR_LAN ChangeLog FAQ README* TODO |
45705701 | 155 | %attr(755,root,root) %{_bindir}/ipmi_sim |
9996877d JB |
156 | %attr(755,root,root) %{_bindir}/ipmi_ui |
157 | %attr(755,root,root) %{_bindir}/ipmicmd | |
158 | %attr(755,root,root) %{_bindir}/ipmilan | |
159 | %attr(755,root,root) %{_bindir}/ipmish | |
5ce9a439 JB |
160 | %attr(755,root,root) %{_bindir}/openipmicmd |
161 | %attr(755,root,root) %{_bindir}/openipmish | |
162 | %attr(755,root,root) %{_bindir}/rmcp_ping | |
45705701 | 163 | %attr(755,root,root) %{_bindir}/sdrcomp |
5ce9a439 | 164 | %attr(755,root,root) %{_bindir}/solterm |
9996877d | 165 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so.*.*.* |
9996877d | 166 | %attr(755,root,root) %ghost %{_libdir}/libIPMIlanserv.so.0 |
1defc821 JB |
167 | %attr(755,root,root) %{_libdir}/libOpenIPMI.so.*.*.* |
168 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMI.so.0 | |
169 | %attr(755,root,root) %{_libdir}/libOpenIPMIcmdlang.so.*.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIcmdlang.so.0 | |
171 | %attr(755,root,root) %{_libdir}/libOpenIPMIglib.so.*.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIglib.so.0 | |
173 | %attr(755,root,root) %{_libdir}/libOpenIPMIposix.so.*.*.* | |
174 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIposix.so.0 | |
175 | %attr(755,root,root) %{_libdir}/libOpenIPMIpthread.so.*.*.* | |
176 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIpthread.so.0 | |
177 | %attr(755,root,root) %{_libdir}/libOpenIPMItcl.so.*.*.* | |
178 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMItcl.so.0 | |
179 | %attr(755,root,root) %{_libdir}/libOpenIPMIui.so.*.*.* | |
180 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIui.so.1 | |
181 | %attr(755,root,root) %{_libdir}/libOpenIPMIutils.so.*.*.* | |
182 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIutils.so.0 | |
45705701 JB |
183 | %dir %{_sysconfdir}/ipmi |
184 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipmi/ipmisim1.emu | |
185 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipmi/lan.conf | |
186 | %{_mandir}/man1/ipmi_sim.1* | |
9996877d JB |
187 | %{_mandir}/man1/ipmi_ui.1* |
188 | %{_mandir}/man1/openipmicmd.1* | |
189 | %{_mandir}/man1/openipmish.1* | |
190 | %{_mandir}/man1/rmcp_ping.1* | |
191 | %{_mandir}/man1/solterm.1* | |
45705701 JB |
192 | %{_mandir}/man5/ipmi_lan.5* |
193 | %{_mandir}/man5/ipmi_sim_cmd.5* | |
9996877d JB |
194 | %{_mandir}/man7/ipmi_cmdlang.7* |
195 | %{_mandir}/man7/openipmi_conparms.7* | |
196 | %{_mandir}/man8/ipmilan.8* | |
e25b096b AM |
197 | |
198 | %files devel | |
199 | %defattr(644,root,root,755) | |
9996877d | 200 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so |
1defc821 JB |
201 | %attr(755,root,root) %{_libdir}/libOpenIPMI.so |
202 | %attr(755,root,root) %{_libdir}/libOpenIPMIcmdlang.so | |
203 | %attr(755,root,root) %{_libdir}/libOpenIPMIglib.so | |
204 | %attr(755,root,root) %{_libdir}/libOpenIPMIposix.so | |
205 | %attr(755,root,root) %{_libdir}/libOpenIPMIpthread.so | |
206 | %attr(755,root,root) %{_libdir}/libOpenIPMItcl.so | |
207 | %attr(755,root,root) %{_libdir}/libOpenIPMIui.so | |
208 | %attr(755,root,root) %{_libdir}/libOpenIPMIutils.so | |
9996877d | 209 | %{_libdir}/libIPMIlanserv.la |
1defc821 JB |
210 | %{_libdir}/libOpenIPMI.la |
211 | %{_libdir}/libOpenIPMIcmdlang.la | |
212 | %{_libdir}/libOpenIPMIglib.la | |
213 | %{_libdir}/libOpenIPMIposix.la | |
214 | %{_libdir}/libOpenIPMIpthread.la | |
215 | %{_libdir}/libOpenIPMItcl.la | |
216 | %{_libdir}/libOpenIPMIui.la | |
217 | %{_libdir}/libOpenIPMIutils.la | |
e25b096b | 218 | %{_includedir}/%{name} |
1defc821 JB |
219 | %{_pkgconfigdir}/OpenIPMI.pc |
220 | %{_pkgconfigdir}/OpenIPMIcmdlang.pc | |
221 | %{_pkgconfigdir}/OpenIPMIglib.pc | |
222 | %{_pkgconfigdir}/OpenIPMIposix.pc | |
223 | %{_pkgconfigdir}/OpenIPMIpthread.pc | |
224 | %{_pkgconfigdir}/OpenIPMItcl.pc | |
225 | %{_pkgconfigdir}/OpenIPMIui.pc | |
226 | %{_pkgconfigdir}/OpenIPMIutils.pc | |
e25b096b AM |
227 | |
228 | %files static | |
229 | %defattr(644,root,root,755) | |
9996877d | 230 | %{_libdir}/libIPMIlanserv.a |
1defc821 JB |
231 | %{_libdir}/libOpenIPMI.a |
232 | %{_libdir}/libOpenIPMIcmdlang.a | |
233 | %{_libdir}/libOpenIPMIglib.a | |
234 | %{_libdir}/libOpenIPMIposix.a | |
235 | %{_libdir}/libOpenIPMIpthread.a | |
236 | %{_libdir}/libOpenIPMItcl.a | |
237 | %{_libdir}/libOpenIPMIui.a | |
238 | %{_libdir}/libOpenIPMIutils.a | |
3c3ddf24 JB |
239 | |
240 | %files -n perl-%{name} | |
241 | %defattr(644,root,root,755) | |
242 | %{perl_vendorarch}/OpenIPMI.pm | |
243 | %dir %{perl_vendorarch}/auto/OpenIPMI | |
244 | %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so | |
698af8e6 | 245 | |
246 | %files -n python-%{name} | |
9fc26b0d | 247 | %defattr(644,root,root,755) |
5ce9a439 | 248 | %attr(755,root,root) %{py_sitedir}/_OpenIPMI.so |
9996877d | 249 | %{py_sitescriptdir}/OpenIPMI.py[co] |
5ce9a439 JB |
250 | |
251 | %if %{with gui} | |
252 | %files gui | |
253 | %defattr(644,root,root,755) | |
254 | %doc swig/python/openipmigui/TODO | |
255 | %attr(755,root,root) %{_bindir}/openipmigui | |
9996877d JB |
256 | %dir %{py_sitescriptdir}/openipmigui |
257 | %{py_sitescriptdir}/openipmigui/*.py[co] | |
258 | %{_mandir}/man1/openipmigui.1* | |
5ce9a439 | 259 | %endif |