]>
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 |
3386018d | 8 | Version: 2.0.16 |
4cde8705 | 9 | Release: 2 |
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 | |
3386018d | 13 | # Source0-md5: 0ab2b336b169ff41c258383b032c5681 |
3f33a1f3 | 14 | Patch0: %{name}-link.patch |
5ce9a439 | 15 | Patch1: %{name}-python.patch |
1defc821 | 16 | Patch2: %{name}-lt.patch |
f4219a8a | 17 | Patch3: %{name}-popt.patch |
7410ba06 | 18 | Patch4: %{name}-pthread.patch |
e25b096b | 19 | URL: http://openipmi.sourceforge.net/ |
3f33a1f3 JB |
20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
6582d0ee | 22 | BuildRequires: gcc >= 5:3.2 |
effce6a6 | 23 | BuildRequires: gdbm-devel |
3c3ddf24 | 24 | BuildRequires: glib2-devel >= 2.0 |
3f33a1f3 | 25 | BuildRequires: libtool >= 1:1.4.2-9 |
e25b096b | 26 | BuildRequires: ncurses-devel |
3c3ddf24 JB |
27 | BuildRequires: net-snmp-devel |
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 | ||
39 | %description | |
3f33a1f3 | 40 | OpenIPMI project aims to develop an open code base to allow access to |
e25b096b AM |
41 | platform information using Intelligent Platform Management Interface |
42 | (IPMI). | |
43 | ||
2756e887 | 44 | %description -l pl.UTF-8 |
3f33a1f3 | 45 | Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu |
2756e887 | 46 | pozwalającego na dostęp do informacji o platformie pzy użyciu |
3f33a1f3 | 47 | interfejsu IPMI (Intelligent Platform Management Interface - |
2756e887 | 48 | interfejsu inteligentnego zarządzania platformą) |
3f33a1f3 | 49 | |
e25b096b AM |
50 | %package devel |
51 | Summary: Development part of OpenIPMI Toolkit libraries | |
e6e22c26 | 52 | Summary(pl.UTF-8): Programistyczna cześć bibliotek OpenIPMI |
e25b096b | 53 | Group: Development/Libraries |
6897ea01 | 54 | Requires: %{name} = %{version}-%{release} |
e25b096b AM |
55 | |
56 | %description devel | |
3f33a1f3 JB |
57 | Development part of OpenIPMI libraries. |
58 | ||
2756e887 JR |
59 | %description devel -l pl.UTF-8 |
60 | Programistyczna cześć bibliotek OpenIPMI. | |
e25b096b AM |
61 | |
62 | %package static | |
63 | Summary: Static OpenIPMI libraries | |
e6e22c26 | 64 | Summary(pl.UTF-8): Statyczne biblioteki OpenIPMI |
e25b096b | 65 | Group: Development/Libraries |
6897ea01 | 66 | Requires: %{name}-devel = %{version}-%{release} |
e25b096b AM |
67 | |
68 | %description static | |
69 | Static OpenIPMI Toolkit libraries. | |
70 | ||
2756e887 | 71 | %description static -l pl.UTF-8 |
3f33a1f3 | 72 | Statyczne biblioteki OpenIPMI. |
e25b096b | 73 | |
3c3ddf24 JB |
74 | %package -n perl-%{name} |
75 | Summary: Perl interface to OpenIPMI | |
e6e22c26 | 76 | Summary(pl.UTF-8): Perlowy interfejs do OpenIPMI |
3c3ddf24 JB |
77 | Group: Development/Languages/Perl |
78 | Requires: %{name} = %{version}-%{release} | |
79 | ||
80 | %description -n perl-%{name} | |
81 | Perl interface to OpenIPMI. | |
82 | ||
2756e887 | 83 | %description -n perl-%{name} -l pl.UTF-8 |
3c3ddf24 JB |
84 | Perlowy interfejs do OpenIPMI. |
85 | ||
698af8e6 | 86 | %package -n python-%{name} |
f312100c | 87 | Summary: Python interface to OpenIPMI |
e6e22c26 | 88 | Summary(pl.UTF-8): Pythonowy interfejs do OpenIPMI |
f312100c ER |
89 | Group: Development/Languages/Python |
90 | Requires: %{name} = %{version}-%{release} | |
5f92767c | 91 | %pyrequires_eq python-libs |
698af8e6 | 92 | |
93 | %description -n python-%{name} | |
94 | Python interface to OpenIPMI. | |
95 | ||
2756e887 | 96 | %description -n perl-%{name} -l pl.UTF-8 |
698af8e6 | 97 | Pythonowy interfejs do OpenIPMI. |
98 | ||
5ce9a439 JB |
99 | %package gui |
100 | Summary: OpenIPMI GUI | |
e6e22c26 | 101 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do OpenIPMI |
5ce9a439 JB |
102 | Group: X11/Applications |
103 | Requires: python-%{name} = %{version}-%{release} | |
1b0573f7 | 104 | Requires: python-tkinter |
5ce9a439 JB |
105 | |
106 | %description gui | |
107 | OpenIPMI GUI. | |
108 | ||
2756e887 JR |
109 | %description gui -l pl.UTF-8 |
110 | Graficzny interfejs użytkownika do OpenIPMI. | |
5ce9a439 | 111 | |
e25b096b AM |
112 | %prep |
113 | %setup -q | |
3f33a1f3 | 114 | %patch0 -p1 |
5ce9a439 | 115 | %patch1 -p1 |
1defc821 | 116 | %patch2 -p1 |
f4219a8a | 117 | %patch3 -p1 |
7410ba06 | 118 | %patch4 -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 | |
9996877d JB |
138 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \ |
139 | $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py \ | |
140 | $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 |