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