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