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