]>
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 |
c597489d | 9 | Release: 9 |
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 |
e743d0fe | 13 | # Source0-md5: 8392539200fbda670503770292dfbb8f |
3f33a1f3 | 14 | Patch0: %{name}-link.patch |
e743d0fe | 15 | Patch1: %{name}-popt.patch |
16 | Patch2: %{name}-pthread.patch | |
c597489d | 17 | Patch3: avoid-echo-e.patch |
e25b096b | 18 | URL: http://openipmi.sourceforge.net/ |
3f33a1f3 JB |
19 | BuildRequires: autoconf |
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 | ||
115ed3f3 | 39 | # refers to global ipmi_cmdlang_{global_err,report_event} symbols |
c597489d | 40 | %define skip_post_check_so libOpenIPMIcmdlang\.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 | ||
698af8e6 | 89 | %package -n python-%{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} | |
5f92767c | 94 | %pyrequires_eq python-libs |
698af8e6 | 95 | |
96 | %description -n python-%{name} | |
97 | Python interface to OpenIPMI. | |
98 | ||
db38745c | 99 | %description -n python-%{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 JB |
105 | Group: X11/Applications |
106 | Requires: python-%{name} = %{version}-%{release} | |
1b0573f7 | 107 | Requires: python-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 |
5ce9a439 | 118 | %patch1 -p1 |
1defc821 | 119 | %patch2 -p1 |
c597489d | 120 | %patch3 -p1 |
e25b096b AM |
121 | |
122 | %build | |
123 | %{__libtoolize} | |
124 | %{__aclocal} | |
125 | %{__autoconf} | |
126 | %{__automake} | |
3f33a1f3 | 127 | CPPFLAGS="-I/usr/include/ncurses" |
5ce9a439 | 128 | %configure \ |
9996877d | 129 | --with-pythoninstalllib=%{py_sitedir} \ |
5ce9a439 | 130 | --without-glib12 \ |
1b0573f7 | 131 | %{!?with_gui:--without-tkinter} |
22ebbb5c | 132 | %{__make} %{?with_gui:-j1} |
e25b096b AM |
133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
06d50aea | 137 | %{__make} install -j1 \ |
9996877d | 138 | DESTDIR=$RPM_BUILD_ROOT |
e25b096b | 139 | |
115ed3f3 | 140 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \ |
9996877d | 141 | $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py \ |
38ae4a68 | 142 | %{?with_gui:$RPM_BUILD_ROOT%{py_sitescriptdir}/openipmigui/*.py} |
dbd75781 | 143 | |
e25b096b AM |
144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %post -p /sbin/ldconfig | |
148 | %postun -p /sbin/ldconfig | |
149 | ||
150 | %files | |
151 | %defattr(644,root,root,755) | |
3386018d | 152 | %doc CONFIGURING_FOR_LAN ChangeLog FAQ README* TODO |
9996877d JB |
153 | %attr(755,root,root) %{_bindir}/ipmi_ui |
154 | %attr(755,root,root) %{_bindir}/ipmicmd | |
155 | %attr(755,root,root) %{_bindir}/ipmilan | |
156 | %attr(755,root,root) %{_bindir}/ipmish | |
5ce9a439 JB |
157 | %attr(755,root,root) %{_bindir}/openipmicmd |
158 | %attr(755,root,root) %{_bindir}/openipmish | |
159 | %attr(755,root,root) %{_bindir}/rmcp_ping | |
160 | %attr(755,root,root) %{_bindir}/solterm | |
9996877d | 161 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so.*.*.* |
9996877d | 162 | %attr(755,root,root) %ghost %{_libdir}/libIPMIlanserv.so.0 |
1defc821 JB |
163 | %attr(755,root,root) %{_libdir}/libOpenIPMI.so.*.*.* |
164 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMI.so.0 | |
165 | %attr(755,root,root) %{_libdir}/libOpenIPMIcmdlang.so.*.*.* | |
166 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIcmdlang.so.0 | |
167 | %attr(755,root,root) %{_libdir}/libOpenIPMIglib.so.*.*.* | |
168 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIglib.so.0 | |
169 | %attr(755,root,root) %{_libdir}/libOpenIPMIposix.so.*.*.* | |
170 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIposix.so.0 | |
171 | %attr(755,root,root) %{_libdir}/libOpenIPMIpthread.so.*.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIpthread.so.0 | |
173 | %attr(755,root,root) %{_libdir}/libOpenIPMItcl.so.*.*.* | |
174 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMItcl.so.0 | |
175 | %attr(755,root,root) %{_libdir}/libOpenIPMIui.so.*.*.* | |
176 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIui.so.1 | |
177 | %attr(755,root,root) %{_libdir}/libOpenIPMIutils.so.*.*.* | |
178 | %attr(755,root,root) %ghost %{_libdir}/libOpenIPMIutils.so.0 | |
9996877d JB |
179 | %{_mandir}/man1/ipmi_ui.1* |
180 | %{_mandir}/man1/openipmicmd.1* | |
181 | %{_mandir}/man1/openipmish.1* | |
182 | %{_mandir}/man1/rmcp_ping.1* | |
183 | %{_mandir}/man1/solterm.1* | |
184 | %{_mandir}/man7/ipmi_cmdlang.7* | |
185 | %{_mandir}/man7/openipmi_conparms.7* | |
186 | %{_mandir}/man8/ipmilan.8* | |
e25b096b AM |
187 | |
188 | %files devel | |
189 | %defattr(644,root,root,755) | |
9996877d | 190 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so |
1defc821 JB |
191 | %attr(755,root,root) %{_libdir}/libOpenIPMI.so |
192 | %attr(755,root,root) %{_libdir}/libOpenIPMIcmdlang.so | |
193 | %attr(755,root,root) %{_libdir}/libOpenIPMIglib.so | |
194 | %attr(755,root,root) %{_libdir}/libOpenIPMIposix.so | |
195 | %attr(755,root,root) %{_libdir}/libOpenIPMIpthread.so | |
196 | %attr(755,root,root) %{_libdir}/libOpenIPMItcl.so | |
197 | %attr(755,root,root) %{_libdir}/libOpenIPMIui.so | |
198 | %attr(755,root,root) %{_libdir}/libOpenIPMIutils.so | |
9996877d | 199 | %{_libdir}/libIPMIlanserv.la |
1defc821 JB |
200 | %{_libdir}/libOpenIPMI.la |
201 | %{_libdir}/libOpenIPMIcmdlang.la | |
202 | %{_libdir}/libOpenIPMIglib.la | |
203 | %{_libdir}/libOpenIPMIposix.la | |
204 | %{_libdir}/libOpenIPMIpthread.la | |
205 | %{_libdir}/libOpenIPMItcl.la | |
206 | %{_libdir}/libOpenIPMIui.la | |
207 | %{_libdir}/libOpenIPMIutils.la | |
e25b096b | 208 | %{_includedir}/%{name} |
1defc821 JB |
209 | %{_pkgconfigdir}/OpenIPMI.pc |
210 | %{_pkgconfigdir}/OpenIPMIcmdlang.pc | |
211 | %{_pkgconfigdir}/OpenIPMIglib.pc | |
212 | %{_pkgconfigdir}/OpenIPMIposix.pc | |
213 | %{_pkgconfigdir}/OpenIPMIpthread.pc | |
214 | %{_pkgconfigdir}/OpenIPMItcl.pc | |
215 | %{_pkgconfigdir}/OpenIPMIui.pc | |
216 | %{_pkgconfigdir}/OpenIPMIutils.pc | |
e25b096b AM |
217 | |
218 | %files static | |
219 | %defattr(644,root,root,755) | |
9996877d | 220 | %{_libdir}/libIPMIlanserv.a |
1defc821 JB |
221 | %{_libdir}/libOpenIPMI.a |
222 | %{_libdir}/libOpenIPMIcmdlang.a | |
223 | %{_libdir}/libOpenIPMIglib.a | |
224 | %{_libdir}/libOpenIPMIposix.a | |
225 | %{_libdir}/libOpenIPMIpthread.a | |
226 | %{_libdir}/libOpenIPMItcl.a | |
227 | %{_libdir}/libOpenIPMIui.a | |
228 | %{_libdir}/libOpenIPMIutils.a | |
3c3ddf24 JB |
229 | |
230 | %files -n perl-%{name} | |
231 | %defattr(644,root,root,755) | |
232 | %{perl_vendorarch}/OpenIPMI.pm | |
233 | %dir %{perl_vendorarch}/auto/OpenIPMI | |
234 | %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so | |
698af8e6 | 235 | |
236 | %files -n python-%{name} | |
9fc26b0d | 237 | %defattr(644,root,root,755) |
5ce9a439 | 238 | %attr(755,root,root) %{py_sitedir}/_OpenIPMI.so |
9996877d | 239 | %{py_sitescriptdir}/OpenIPMI.py[co] |
5ce9a439 JB |
240 | |
241 | %if %{with gui} | |
242 | %files gui | |
243 | %defattr(644,root,root,755) | |
244 | %doc swig/python/openipmigui/TODO | |
245 | %attr(755,root,root) %{_bindir}/openipmigui | |
9996877d JB |
246 | %dir %{py_sitescriptdir}/openipmigui |
247 | %{py_sitescriptdir}/openipmigui/*.py[co] | |
248 | %{_mandir}/man1/openipmigui.1* | |
5ce9a439 | 249 | %endif |