]>
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 |
e743d0fe | 8 | Version: 2.0.18 |
334fad6a | 9 | Release: 5 |
9996877d | 10 | License: LGPL v2+ (library), GPL v2+ (ipmicmd) |
e25b096b AM |
11 | Group: Libraries |
12 | Source0: http://dl.sourceforge.net/openipmi/%{name}-%{version}.tar.gz | |
e743d0fe | 13 | # Source0-md5: 8392539200fbda670503770292dfbb8f |
3f33a1f3 | 14 | Patch0: %{name}-link.patch |
e743d0fe | 15 | Patch1: %{name}-popt.patch |
16 | Patch2: %{name}-pthread.patch | |
e25b096b | 17 | URL: http://openipmi.sourceforge.net/ |
3f33a1f3 JB |
18 | BuildRequires: autoconf |
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 JB |
25 | BuildRequires: net-snmp-devel |
26 | BuildRequires: perl-devel | |
27 | BuildRequires: pkgconfig | |
3f33a1f3 | 28 | BuildRequires: popt-devel |
8e07c864 | 29 | BuildRequires: python-devel |
1b0573f7 JB |
30 | %{?with_gui:BuildRequires: python-tkinter} |
31 | BuildRequires: tcl-devel | |
5ce9a439 | 32 | BuildRequires: rpm-pythonprov |
c3f6a455 | 33 | BuildRequires: swig-perl >= 1.3.25 |
0340f64d | 34 | BuildRequires: swig-python >= 1.3.25 |
e25b096b AM |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
3f33a1f3 | 38 | OpenIPMI project aims to develop an open code base to allow access to |
e25b096b AM |
39 | platform information using Intelligent Platform Management Interface |
40 | (IPMI). | |
41 | ||
2756e887 | 42 | %description -l pl.UTF-8 |
3f33a1f3 | 43 | Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu |
2756e887 | 44 | pozwalającego na dostęp do informacji o platformie pzy użyciu |
3f33a1f3 | 45 | interfejsu IPMI (Intelligent Platform Management Interface - |
2756e887 | 46 | interfejsu inteligentnego zarządzania platformą) |
3f33a1f3 | 47 | |
e25b096b AM |
48 | %package devel |
49 | Summary: Development part of OpenIPMI Toolkit libraries | |
e6e22c26 | 50 | Summary(pl.UTF-8): Programistyczna cześć bibliotek OpenIPMI |
e25b096b | 51 | Group: Development/Libraries |
6897ea01 | 52 | Requires: %{name} = %{version}-%{release} |
e25b096b AM |
53 | |
54 | %description devel | |
3f33a1f3 JB |
55 | Development part of OpenIPMI libraries. |
56 | ||
2756e887 JR |
57 | %description devel -l pl.UTF-8 |
58 | Programistyczna cześć bibliotek OpenIPMI. | |
e25b096b AM |
59 | |
60 | %package static | |
61 | Summary: Static OpenIPMI libraries | |
e6e22c26 | 62 | Summary(pl.UTF-8): Statyczne biblioteki OpenIPMI |
e25b096b | 63 | Group: Development/Libraries |
6897ea01 | 64 | Requires: %{name}-devel = %{version}-%{release} |
e25b096b AM |
65 | |
66 | %description static | |
67 | Static OpenIPMI Toolkit libraries. | |
68 | ||
2756e887 | 69 | %description static -l pl.UTF-8 |
3f33a1f3 | 70 | Statyczne biblioteki OpenIPMI. |
e25b096b | 71 | |
3c3ddf24 JB |
72 | %package -n perl-%{name} |
73 | Summary: Perl interface to OpenIPMI | |
e6e22c26 | 74 | Summary(pl.UTF-8): Perlowy interfejs do OpenIPMI |
3c3ddf24 JB |
75 | Group: Development/Languages/Perl |
76 | Requires: %{name} = %{version}-%{release} | |
77 | ||
78 | %description -n perl-%{name} | |
79 | Perl interface to OpenIPMI. | |
80 | ||
2756e887 | 81 | %description -n perl-%{name} -l pl.UTF-8 |
3c3ddf24 JB |
82 | Perlowy interfejs do OpenIPMI. |
83 | ||
698af8e6 | 84 | %package -n python-%{name} |
f312100c | 85 | Summary: Python interface to OpenIPMI |
e6e22c26 | 86 | Summary(pl.UTF-8): Pythonowy interfejs do OpenIPMI |
f312100c ER |
87 | Group: Development/Languages/Python |
88 | Requires: %{name} = %{version}-%{release} | |
5f92767c | 89 | %pyrequires_eq python-libs |
698af8e6 | 90 | |
91 | %description -n python-%{name} | |
92 | Python interface to OpenIPMI. | |
93 | ||
2756e887 | 94 | %description -n perl-%{name} -l pl.UTF-8 |
698af8e6 | 95 | Pythonowy interfejs do OpenIPMI. |
96 | ||
5ce9a439 JB |
97 | %package gui |
98 | Summary: OpenIPMI GUI | |
e6e22c26 | 99 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do OpenIPMI |
5ce9a439 JB |
100 | Group: X11/Applications |
101 | Requires: python-%{name} = %{version}-%{release} | |
1b0573f7 | 102 | Requires: python-tkinter |
5ce9a439 JB |
103 | |
104 | %description gui | |
105 | OpenIPMI GUI. | |
106 | ||
2756e887 JR |
107 | %description gui -l pl.UTF-8 |
108 | Graficzny interfejs użytkownika do OpenIPMI. | |
5ce9a439 | 109 | |
e25b096b AM |
110 | %prep |
111 | %setup -q | |
3f33a1f3 | 112 | %patch0 -p1 |
5ce9a439 | 113 | %patch1 -p1 |
1defc821 | 114 | %patch2 -p1 |
e25b096b AM |
115 | |
116 | %build | |
117 | %{__libtoolize} | |
118 | %{__aclocal} | |
119 | %{__autoconf} | |
120 | %{__automake} | |
3f33a1f3 | 121 | CPPFLAGS="-I/usr/include/ncurses" |
5ce9a439 | 122 | %configure \ |
9996877d | 123 | --with-pythoninstalllib=%{py_sitedir} \ |
5ce9a439 | 124 | --without-glib12 \ |
1b0573f7 | 125 | %{!?with_gui:--without-tkinter} |
22ebbb5c | 126 | %{__make} %{?with_gui:-j1} |
e25b096b AM |
127 | |
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
06d50aea | 131 | %{__make} install -j1 \ |
9996877d | 132 | DESTDIR=$RPM_BUILD_ROOT |
e25b096b | 133 | |
9996877d JB |
134 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \ |
135 | $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py \ | |
136 | $RPM_BUILD_ROOT%{py_sitescriptdir}/openipmigui/*.py | |
dbd75781 | 137 | |
e25b096b AM |
138 | %clean |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %post -p /sbin/ldconfig | |
142 | %postun -p /sbin/ldconfig | |
143 | ||
144 | %files | |
145 | %defattr(644,root,root,755) | |
3386018d | 146 | %doc CONFIGURING_FOR_LAN ChangeLog FAQ README* TODO |
9996877d JB |
147 | %attr(755,root,root) %{_bindir}/ipmi_ui |
148 | %attr(755,root,root) %{_bindir}/ipmicmd | |
149 | %attr(755,root,root) %{_bindir}/ipmilan | |
150 | %attr(755,root,root) %{_bindir}/ipmish | |
5ce9a439 JB |
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 | |
9996877d | 155 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so.*.*.* |
9996877d | 156 | %attr(755,root,root) %ghost %{_libdir}/libIPMIlanserv.so.0 |
1defc821 JB |
157 | %attr(755,root,root) %{_libdir}/libOpenIPMI.so.*.*.* |
158 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMI.so.0 | |
159 | %attr(755,root,root) %{_libdir}/libOpenIPMIcmdlang.so.*.*.* | |
160 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIcmdlang.so.0 | |
161 | %attr(755,root,root) %{_libdir}/libOpenIPMIglib.so.*.*.* | |
162 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIglib.so.0 | |
163 | %attr(755,root,root) %{_libdir}/libOpenIPMIposix.so.*.*.* | |
164 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIposix.so.0 | |
165 | %attr(755,root,root) %{_libdir}/libOpenIPMIpthread.so.*.*.* | |
166 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIpthread.so.0 | |
167 | %attr(755,root,root) %{_libdir}/libOpenIPMItcl.so.*.*.* | |
168 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMItcl.so.0 | |
169 | %attr(755,root,root) %{_libdir}/libOpenIPMIui.so.*.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIui.so.1 | |
171 | %attr(755,root,root) %{_libdir}/libOpenIPMIutils.so.*.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIutils.so.0 | |
9996877d JB |
173 | %{_mandir}/man1/ipmi_ui.1* |
174 | %{_mandir}/man1/openipmicmd.1* | |
175 | %{_mandir}/man1/openipmish.1* | |
176 | %{_mandir}/man1/rmcp_ping.1* | |
177 | %{_mandir}/man1/solterm.1* | |
178 | %{_mandir}/man7/ipmi_cmdlang.7* | |
179 | %{_mandir}/man7/openipmi_conparms.7* | |
180 | %{_mandir}/man8/ipmilan.8* | |
e25b096b AM |
181 | |
182 | %files devel | |
183 | %defattr(644,root,root,755) | |
9996877d | 184 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so |
1defc821 JB |
185 | %attr(755,root,root) %{_libdir}/libOpenIPMI.so |
186 | %attr(755,root,root) %{_libdir}/libOpenIPMIcmdlang.so | |
187 | %attr(755,root,root) %{_libdir}/libOpenIPMIglib.so | |
188 | %attr(755,root,root) %{_libdir}/libOpenIPMIposix.so | |
189 | %attr(755,root,root) %{_libdir}/libOpenIPMIpthread.so | |
190 | %attr(755,root,root) %{_libdir}/libOpenIPMItcl.so | |
191 | %attr(755,root,root) %{_libdir}/libOpenIPMIui.so | |
192 | %attr(755,root,root) %{_libdir}/libOpenIPMIutils.so | |
9996877d | 193 | %{_libdir}/libIPMIlanserv.la |
1defc821 JB |
194 | %{_libdir}/libOpenIPMI.la |
195 | %{_libdir}/libOpenIPMIcmdlang.la | |
196 | %{_libdir}/libOpenIPMIglib.la | |
197 | %{_libdir}/libOpenIPMIposix.la | |
198 | %{_libdir}/libOpenIPMIpthread.la | |
199 | %{_libdir}/libOpenIPMItcl.la | |
200 | %{_libdir}/libOpenIPMIui.la | |
201 | %{_libdir}/libOpenIPMIutils.la | |
e25b096b | 202 | %{_includedir}/%{name} |
1defc821 JB |
203 | %{_pkgconfigdir}/OpenIPMI.pc |
204 | %{_pkgconfigdir}/OpenIPMIcmdlang.pc | |
205 | %{_pkgconfigdir}/OpenIPMIglib.pc | |
206 | %{_pkgconfigdir}/OpenIPMIposix.pc | |
207 | %{_pkgconfigdir}/OpenIPMIpthread.pc | |
208 | %{_pkgconfigdir}/OpenIPMItcl.pc | |
209 | %{_pkgconfigdir}/OpenIPMIui.pc | |
210 | %{_pkgconfigdir}/OpenIPMIutils.pc | |
e25b096b AM |
211 | |
212 | %files static | |
213 | %defattr(644,root,root,755) | |
9996877d | 214 | %{_libdir}/libIPMIlanserv.a |
1defc821 JB |
215 | %{_libdir}/libOpenIPMI.a |
216 | %{_libdir}/libOpenIPMIcmdlang.a | |
217 | %{_libdir}/libOpenIPMIglib.a | |
218 | %{_libdir}/libOpenIPMIposix.a | |
219 | %{_libdir}/libOpenIPMIpthread.a | |
220 | %{_libdir}/libOpenIPMItcl.a | |
221 | %{_libdir}/libOpenIPMIui.a | |
222 | %{_libdir}/libOpenIPMIutils.a | |
3c3ddf24 JB |
223 | |
224 | %files -n perl-%{name} | |
225 | %defattr(644,root,root,755) | |
226 | %{perl_vendorarch}/OpenIPMI.pm | |
227 | %dir %{perl_vendorarch}/auto/OpenIPMI | |
228 | %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so | |
698af8e6 | 229 | |
230 | %files -n python-%{name} | |
9fc26b0d | 231 | %defattr(644,root,root,755) |
5ce9a439 | 232 | %attr(755,root,root) %{py_sitedir}/_OpenIPMI.so |
9996877d | 233 | %{py_sitescriptdir}/OpenIPMI.py[co] |
5ce9a439 JB |
234 | |
235 | %if %{with gui} | |
236 | %files gui | |
237 | %defattr(644,root,root,755) | |
238 | %doc swig/python/openipmigui/TODO | |
239 | %attr(755,root,root) %{_bindir}/openipmigui | |
9996877d JB |
240 | %dir %{py_sitescriptdir}/openipmigui |
241 | %{py_sitescriptdir}/openipmigui/*.py[co] | |
242 | %{_mandir}/man1/openipmigui.1* | |
5ce9a439 | 243 | %endif |