]>
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.19 | |
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: e96e68b972d4b376f239d32cd3629328 | |
14 | Patch0: %{name}-link.patch | |
15 | Patch1: %{name}-popt.patch | |
16 | Patch2: %{name}-pthread.patch | |
17 | Patch3: avoid-echo-e.patch | |
18 | URL: http://openipmi.sourceforge.net/ | |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
21 | BuildRequires: gcc >= 5:3.2 | |
22 | BuildRequires: gdbm-devel | |
23 | BuildRequires: glib2-devel >= 2.0 | |
24 | BuildRequires: libtool >= 1:1.4.2-9 | |
25 | BuildRequires: ncurses-devel | |
26 | BuildRequires: net-snmp-devel | |
27 | BuildRequires: openssl-devel | |
28 | BuildRequires: perl-devel | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: popt-devel | |
31 | BuildRequires: python-devel | |
32 | %{?with_gui:BuildRequires: python-tkinter} | |
33 | BuildRequires: tcl-devel | |
34 | BuildRequires: rpm-pythonprov | |
35 | BuildRequires: swig-perl >= 1.3.25 | |
36 | BuildRequires: swig-python >= 1.3.25 | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | # refers to global ipmi_cmdlang_{global_err,report_event} symbols | |
40 | %define skip_post_check_so libOpenIPMIcmdlang\.so\..* | |
41 | ||
42 | %description | |
43 | OpenIPMI project aims to develop an open code base to allow access to | |
44 | platform information using Intelligent Platform Management Interface | |
45 | (IPMI). | |
46 | ||
47 | %description -l pl.UTF-8 | |
48 | Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu | |
49 | pozwalającego na dostęp do informacji o platformie pzy użyciu | |
50 | interfejsu IPMI (Intelligent Platform Management Interface - | |
51 | interfejsu inteligentnego zarządzania platformą) | |
52 | ||
53 | %package devel | |
54 | Summary: Development part of OpenIPMI Toolkit libraries | |
55 | Summary(pl.UTF-8): Programistyczna cześć bibliotek OpenIPMI | |
56 | Group: Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
59 | %description devel | |
60 | Development part of OpenIPMI libraries. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Programistyczna cześć bibliotek OpenIPMI. | |
64 | ||
65 | %package static | |
66 | Summary: Static OpenIPMI libraries | |
67 | Summary(pl.UTF-8): Statyczne biblioteki OpenIPMI | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static OpenIPMI Toolkit libraries. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczne biblioteki OpenIPMI. | |
76 | ||
77 | %package -n perl-%{name} | |
78 | Summary: Perl interface to OpenIPMI | |
79 | Summary(pl.UTF-8): Perlowy interfejs do OpenIPMI | |
80 | Group: Development/Languages/Perl | |
81 | Requires: %{name} = %{version}-%{release} | |
82 | ||
83 | %description -n perl-%{name} | |
84 | Perl interface to OpenIPMI. | |
85 | ||
86 | %description -n perl-%{name} -l pl.UTF-8 | |
87 | Perlowy interfejs do OpenIPMI. | |
88 | ||
89 | %package -n python-%{name} | |
90 | Summary: Python interface to OpenIPMI | |
91 | Summary(pl.UTF-8): Pythonowy interfejs do OpenIPMI | |
92 | Group: Development/Languages/Python | |
93 | Requires: %{name} = %{version}-%{release} | |
94 | %pyrequires_eq python-libs | |
95 | ||
96 | %description -n python-%{name} | |
97 | Python interface to OpenIPMI. | |
98 | ||
99 | %description -n python-%{name} -l pl.UTF-8 | |
100 | Pythonowy interfejs do OpenIPMI. | |
101 | ||
102 | %package gui | |
103 | Summary: OpenIPMI GUI | |
104 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do OpenIPMI | |
105 | Group: X11/Applications | |
106 | Requires: python-%{name} = %{version}-%{release} | |
107 | Requires: python-tkinter | |
108 | ||
109 | %description gui | |
110 | OpenIPMI GUI. | |
111 | ||
112 | %description gui -l pl.UTF-8 | |
113 | Graficzny interfejs użytkownika do OpenIPMI. | |
114 | ||
115 | %prep | |
116 | %setup -q | |
117 | %patch0 -p1 | |
118 | %patch1 -p1 | |
119 | %patch2 -p1 | |
120 | %patch3 -p1 | |
121 | ||
122 | %build | |
123 | %{__libtoolize} | |
124 | %{__aclocal} | |
125 | %{__autoconf} | |
126 | %{__automake} | |
127 | CPPFLAGS="-I/usr/include/ncurses" | |
128 | %configure \ | |
129 | --with-pythoninstalllib=%{py_sitedir} \ | |
130 | --without-glib12 \ | |
131 | %{!?with_gui:--without-tkinter} | |
132 | %{__make} %{?with_gui:-j1} | |
133 | ||
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %{__make} install -j1 \ | |
138 | DESTDIR=$RPM_BUILD_ROOT | |
139 | ||
140 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a} \ | |
141 | $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py \ | |
142 | %{?with_gui:$RPM_BUILD_ROOT%{py_sitescriptdir}/openipmigui/*.py} | |
143 | ||
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) | |
152 | %doc CONFIGURING_FOR_LAN ChangeLog FAQ README* TODO | |
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 | |
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 | |
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 | %{_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* | |
187 | ||
188 | %files devel | |
189 | %defattr(644,root,root,755) | |
190 | %attr(755,root,root) %{_libdir}/libIPMIlanserv.so | |
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 | |
199 | %{_libdir}/libIPMIlanserv.la | |
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 | |
208 | %{_includedir}/%{name} | |
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 | |
217 | ||
218 | %files static | |
219 | %defattr(644,root,root,755) | |
220 | %{_libdir}/libIPMIlanserv.a | |
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 | |
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 | |
235 | ||
236 | %files -n python-%{name} | |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{py_sitedir}/_OpenIPMI.so | |
239 | %{py_sitescriptdir}/OpenIPMI.py[co] | |
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 | |
246 | %dir %{py_sitescriptdir}/openipmigui | |
247 | %{py_sitescriptdir}/openipmigui/*.py[co] | |
248 | %{_mandir}/man1/openipmigui.1* | |
249 | %endif |