]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without gui # don't build tkinter-based GUI | |
4 | # | |
5 | Summary: IPMI abstraction layer | |
6 | Summary(pl.UTF-8): Warstwa abstrakcji IPMI | |
7 | Name: OpenIPMI | |
8 | Version: 2.0.25 | |
9 | Release: 3 | |
10 | License: LGPL v2+ (library), GPL v2+ (ipmicmd) | |
11 | Group: Libraries | |
12 | Source0: http://downloads.sourceforge.net/openipmi/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 1461ac4d78fc516646fd0a6e605a8b05 | |
14 | Patch0: %{name}-link.patch | |
15 | URL: http://openipmi.sourceforge.net/ | |
16 | BuildRequires: autoconf >= 2.50 | |
17 | BuildRequires: automake | |
18 | BuildRequires: gcc >= 5:3.2 | |
19 | BuildRequires: gdbm-devel | |
20 | BuildRequires: glib2-devel >= 2.0 | |
21 | BuildRequires: libtool >= 1:1.4.2-9 | |
22 | BuildRequires: ncurses-devel | |
23 | BuildRequires: net-snmp-devel | |
24 | BuildRequires: openssl-devel | |
25 | BuildRequires: perl-devel | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: popt-devel | |
28 | BuildRequires: python-devel | |
29 | %{?with_gui:BuildRequires: python-tkinter} | |
30 | BuildRequires: tcl-devel | |
31 | BuildRequires: rpm-pythonprov | |
32 | BuildRequires: swig-perl >= 1.3.25 | |
33 | BuildRequires: swig-python >= 1.3.25 | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | # libOpenIPMIcmdlang refers to global ipmi_cmdlang_{global_err,report_event} symbols | |
37 | # libIPMIlanserv uses symbols from binaries (ipmilan, ipmi_sim) | |
38 | %define skip_post_check_so libOpenIPMIcmdlang\.so\..* libIPMIlanserv\.so\..* | |
39 | ||
40 | %description | |
41 | OpenIPMI project aims to develop an open code base to allow access to | |
42 | platform information using Intelligent Platform Management Interface | |
43 | (IPMI). | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu | |
47 | pozwalającego na dostęp do informacji o platformie pzy użyciu | |
48 | interfejsu IPMI (Intelligent Platform Management Interface - | |
49 | interfejsu inteligentnego zarządzania platformą) | |
50 | ||
51 | %package devel | |
52 | Summary: Development part of OpenIPMI Toolkit libraries | |
53 | Summary(pl.UTF-8): Programistyczna cześć bibliotek OpenIPMI | |
54 | Group: Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
56 | ||
57 | %description devel | |
58 | Development part of OpenIPMI libraries. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Programistyczna cześć bibliotek OpenIPMI. | |
62 | ||
63 | %package static | |
64 | Summary: Static OpenIPMI libraries | |
65 | Summary(pl.UTF-8): Statyczne biblioteki OpenIPMI | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static OpenIPMI Toolkit libraries. | |
71 | ||
72 | %description static -l pl.UTF-8 | |
73 | Statyczne biblioteki OpenIPMI. | |
74 | ||
75 | %package -n perl-%{name} | |
76 | Summary: Perl interface to OpenIPMI | |
77 | Summary(pl.UTF-8): Perlowy interfejs do OpenIPMI | |
78 | Group: Development/Languages/Perl | |
79 | Requires: %{name} = %{version}-%{release} | |
80 | ||
81 | %description -n perl-%{name} | |
82 | Perl interface to OpenIPMI. | |
83 | ||
84 | %description -n perl-%{name} -l pl.UTF-8 | |
85 | Perlowy interfejs do OpenIPMI. | |
86 | ||
87 | %package -n python-%{name} | |
88 | Summary: Python interface to OpenIPMI | |
89 | Summary(pl.UTF-8): Pythonowy interfejs do OpenIPMI | |
90 | Group: Development/Languages/Python | |
91 | Requires: %{name} = %{version}-%{release} | |
92 | %pyrequires_eq python-libs | |
93 | ||
94 | %description -n python-%{name} | |
95 | Python interface to OpenIPMI. | |
96 | ||
97 | %description -n python-%{name} -l pl.UTF-8 | |
98 | Pythonowy interfejs do OpenIPMI. | |
99 | ||
100 | %package gui | |
101 | Summary: OpenIPMI GUI | |
102 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do OpenIPMI | |
103 | Group: X11/Applications | |
104 | Requires: python-%{name} = %{version}-%{release} | |
105 | Requires: python-tkinter | |
106 | ||
107 | %description gui | |
108 | OpenIPMI GUI. | |
109 | ||
110 | %description gui -l pl.UTF-8 | |
111 | Graficzny interfejs użytkownika do OpenIPMI. | |
112 | ||
113 | %prep | |
114 | %setup -q | |
115 | %patch0 -p1 | |
116 | ||
117 | %build | |
118 | %{__libtoolize} | |
119 | %{__aclocal} -I m4 | |
120 | %{__autoconf} | |
121 | %{__autoheader} | |
122 | %{__automake} | |
123 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" | |
124 | %configure \ | |
125 | --with-pythoninstall=%{py_sitescriptdir} \ | |
126 | --with-pythoninstalllib=%{py_sitedir} \ | |
127 | --without-glib12 \ | |
128 | %{!?with_gui:--without-tkinter} | |
129 | %{__make} %{?with_gui:-j1} | |
130 | ||
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %{__make} install -j1 \ | |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
137 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \ | |
138 | $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py \ | |
139 | %{?with_gui:$RPM_BUILD_ROOT%{py_sitescriptdir}/openipmigui/*.py} | |
140 | ||
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) | |
149 | %doc CONFIGURING_FOR_LAN ChangeLog FAQ README* TODO | |
150 | %attr(755,root,root) %{_bindir}/ipmi_sim | |
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 | |
155 | %attr(755,root,root) %{_bindir}/openipmi_eventd | |
156 | %attr(755,root,root) %{_bindir}/openipmicmd | |
157 | %attr(755,root,root) %{_bindir}/openipmish | |
158 | %attr(755,root,root) %{_bindir}/rmcp_ping | |
159 | %attr(755,root,root) %{_bindir}/sdrcomp | |
160 | %attr(755,root,root) %{_bindir}/solterm | |
161 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so.*.*.* | |
162 | %attr(755,root,root) %ghost %{_libdir}/libIPMIlanserv.so.0 | |
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 | |
179 | %dir %{_sysconfdir}/ipmi | |
180 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipmi/ipmisim1.emu | |
181 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ipmi/lan.conf | |
182 | %{_mandir}/man1/ipmi_sim.1* | |
183 | %{_mandir}/man1/ipmi_ui.1* | |
184 | %{_mandir}/man1/openipmi_eventd.1* | |
185 | %{_mandir}/man1/openipmicmd.1* | |
186 | %{_mandir}/man1/openipmish.1* | |
187 | %{_mandir}/man1/rmcp_ping.1* | |
188 | %{_mandir}/man1/solterm.1* | |
189 | %{_mandir}/man5/ipmi_lan.5* | |
190 | %{_mandir}/man5/ipmi_sim_cmd.5* | |
191 | %{_mandir}/man7/ipmi_cmdlang.7* | |
192 | %{_mandir}/man7/openipmi_conparms.7* | |
193 | %{_mandir}/man8/ipmilan.8* | |
194 | ||
195 | %files devel | |
196 | %defattr(644,root,root,755) | |
197 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so | |
198 | %attr(755,root,root) %{_libdir}/libOpenIPMI.so | |
199 | %attr(755,root,root) %{_libdir}/libOpenIPMIcmdlang.so | |
200 | %attr(755,root,root) %{_libdir}/libOpenIPMIglib.so | |
201 | %attr(755,root,root) %{_libdir}/libOpenIPMIposix.so | |
202 | %attr(755,root,root) %{_libdir}/libOpenIPMIpthread.so | |
203 | %attr(755,root,root) %{_libdir}/libOpenIPMItcl.so | |
204 | %attr(755,root,root) %{_libdir}/libOpenIPMIui.so | |
205 | %attr(755,root,root) %{_libdir}/libOpenIPMIutils.so | |
206 | %{_libdir}/libIPMIlanserv.la | |
207 | %{_libdir}/libOpenIPMI.la | |
208 | %{_libdir}/libOpenIPMIcmdlang.la | |
209 | %{_libdir}/libOpenIPMIglib.la | |
210 | %{_libdir}/libOpenIPMIposix.la | |
211 | %{_libdir}/libOpenIPMIpthread.la | |
212 | %{_libdir}/libOpenIPMItcl.la | |
213 | %{_libdir}/libOpenIPMIui.la | |
214 | %{_libdir}/libOpenIPMIutils.la | |
215 | %{_includedir}/%{name} | |
216 | %{_pkgconfigdir}/OpenIPMI.pc | |
217 | %{_pkgconfigdir}/OpenIPMIcmdlang.pc | |
218 | %{_pkgconfigdir}/OpenIPMIglib.pc | |
219 | %{_pkgconfigdir}/OpenIPMIposix.pc | |
220 | %{_pkgconfigdir}/OpenIPMIpthread.pc | |
221 | %{_pkgconfigdir}/OpenIPMItcl.pc | |
222 | %{_pkgconfigdir}/OpenIPMIui.pc | |
223 | %{_pkgconfigdir}/OpenIPMIutils.pc | |
224 | ||
225 | %files static | |
226 | %defattr(644,root,root,755) | |
227 | %{_libdir}/libIPMIlanserv.a | |
228 | %{_libdir}/libOpenIPMI.a | |
229 | %{_libdir}/libOpenIPMIcmdlang.a | |
230 | %{_libdir}/libOpenIPMIglib.a | |
231 | %{_libdir}/libOpenIPMIposix.a | |
232 | %{_libdir}/libOpenIPMIpthread.a | |
233 | %{_libdir}/libOpenIPMItcl.a | |
234 | %{_libdir}/libOpenIPMIui.a | |
235 | %{_libdir}/libOpenIPMIutils.a | |
236 | ||
237 | %files -n perl-%{name} | |
238 | %defattr(644,root,root,755) | |
239 | %{perl_vendorarch}/OpenIPMI.pm | |
240 | %dir %{perl_vendorarch}/auto/OpenIPMI | |
241 | %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so | |
242 | ||
243 | %files -n python-%{name} | |
244 | %defattr(644,root,root,755) | |
245 | %attr(755,root,root) %{py_sitedir}/_OpenIPMI.so | |
246 | %{py_sitescriptdir}/OpenIPMI.py[co] | |
247 | ||
248 | %if %{with gui} | |
249 | %files gui | |
250 | %defattr(644,root,root,755) | |
251 | %doc swig/python/openipmigui/TODO | |
252 | %attr(755,root,root) %{_bindir}/openipmigui | |
253 | %dir %{py_sitescriptdir}/openipmigui | |
254 | %{py_sitescriptdir}/openipmigui/*.py[co] | |
255 | %{_mandir}/man1/openipmigui.1* | |
256 | %endif |