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