]>
Commit | Line | Data |
---|---|---|
a88ebc16 ER |
1 | # TODO |
2 | # - bad BR (version mismatch): | |
3 | # File "_mc_user.py", line 240, in ? | |
4 | # class MCUsers(gui_treelist.TreeList): AttributeError: 'module' object has no attribute 'TreeList' | |
5 | # make[4]: *** [_entity.pyc] Error 1 | |
5ce9a439 JB |
6 | # |
7 | # Conditional build: | |
1b0573f7 | 8 | %bcond_without gui # don't build tkinter-based GUI |
5ce9a439 | 9 | # |
e25b096b | 10 | Summary: IPMI abstraction layer |
2756e887 | 11 | Summary(pl.UTF-8): Warstwa abstrakcji IPMI |
e25b096b | 12 | Name: OpenIPMI |
4c0f5857 | 13 | Version: 2.0.10 |
0de31454 | 14 | Release: 2 |
3f33a1f3 | 15 | License: LGPL (library), GPL (ipmicmd) |
e25b096b AM |
16 | Group: Libraries |
17 | Source0: http://dl.sourceforge.net/openipmi/%{name}-%{version}.tar.gz | |
4c0f5857 | 18 | # Source0-md5: 8f5c200c5f25c33250567eaeb685e8c0 |
3f33a1f3 | 19 | Patch0: %{name}-link.patch |
5ce9a439 | 20 | Patch1: %{name}-python.patch |
e25b096b | 21 | URL: http://openipmi.sourceforge.net/ |
3f33a1f3 JB |
22 | BuildRequires: autoconf |
23 | BuildRequires: automake | |
6582d0ee | 24 | BuildRequires: gcc >= 5:3.2 |
effce6a6 | 25 | BuildRequires: gdbm-devel |
3c3ddf24 | 26 | BuildRequires: glib2-devel >= 2.0 |
3f33a1f3 | 27 | BuildRequires: libtool >= 1:1.4.2-9 |
e25b096b | 28 | BuildRequires: ncurses-devel |
3c3ddf24 JB |
29 | BuildRequires: net-snmp-devel |
30 | BuildRequires: perl-devel | |
31 | BuildRequires: pkgconfig | |
3f33a1f3 | 32 | BuildRequires: popt-devel |
8e07c864 | 33 | BuildRequires: python-devel |
1b0573f7 JB |
34 | %{?with_gui:BuildRequires: python-tkinter} |
35 | BuildRequires: tcl-devel | |
5ce9a439 | 36 | BuildRequires: rpm-pythonprov |
c3f6a455 | 37 | BuildRequires: swig-perl >= 1.3.25 |
0340f64d | 38 | BuildRequires: swig-python >= 1.3.25 |
e25b096b AM |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
3f33a1f3 | 42 | OpenIPMI project aims to develop an open code base to allow access to |
e25b096b AM |
43 | platform information using Intelligent Platform Management Interface |
44 | (IPMI). | |
45 | ||
2756e887 | 46 | %description -l pl.UTF-8 |
3f33a1f3 | 47 | Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu |
2756e887 | 48 | pozwalającego na dostęp do informacji o platformie pzy użyciu |
3f33a1f3 | 49 | interfejsu IPMI (Intelligent Platform Management Interface - |
2756e887 | 50 | interfejsu inteligentnego zarządzania platformą) |
3f33a1f3 | 51 | |
e25b096b AM |
52 | %package devel |
53 | Summary: Development part of OpenIPMI Toolkit libraries | |
2756e887 | 54 | Summary(pl.UTF-8): Programistyczna cześć bibliotek OpenIPMI |
e25b096b | 55 | Group: Development/Libraries |
6897ea01 | 56 | Requires: %{name} = %{version}-%{release} |
e25b096b AM |
57 | |
58 | %description devel | |
3f33a1f3 JB |
59 | Development part of OpenIPMI libraries. |
60 | ||
2756e887 JR |
61 | %description devel -l pl.UTF-8 |
62 | Programistyczna cześć bibliotek OpenIPMI. | |
e25b096b AM |
63 | |
64 | %package static | |
65 | Summary: Static OpenIPMI libraries | |
2756e887 | 66 | Summary(pl.UTF-8): Statyczne biblioteki OpenIPMI |
e25b096b | 67 | Group: Development/Libraries |
6897ea01 | 68 | Requires: %{name}-devel = %{version}-%{release} |
e25b096b AM |
69 | |
70 | %description static | |
71 | Static OpenIPMI Toolkit libraries. | |
72 | ||
2756e887 | 73 | %description static -l pl.UTF-8 |
3f33a1f3 | 74 | Statyczne biblioteki OpenIPMI. |
e25b096b | 75 | |
3c3ddf24 JB |
76 | %package -n perl-%{name} |
77 | Summary: Perl interface to OpenIPMI | |
2756e887 | 78 | Summary(pl.UTF-8): Perlowy interfejs do OpenIPMI |
3c3ddf24 JB |
79 | Group: Development/Languages/Perl |
80 | Requires: %{name} = %{version}-%{release} | |
81 | ||
82 | %description -n perl-%{name} | |
83 | Perl interface to OpenIPMI. | |
84 | ||
2756e887 | 85 | %description -n perl-%{name} -l pl.UTF-8 |
3c3ddf24 JB |
86 | Perlowy interfejs do OpenIPMI. |
87 | ||
698af8e6 | 88 | %package -n python-%{name} |
f312100c | 89 | Summary: Python interface to OpenIPMI |
2756e887 | 90 | Summary(pl.UTF-8): Pythonowy interfejs do OpenIPMI |
f312100c ER |
91 | Group: Development/Languages/Python |
92 | Requires: %{name} = %{version}-%{release} | |
5f92767c | 93 | %pyrequires_eq python-libs |
698af8e6 | 94 | |
95 | %description -n python-%{name} | |
96 | Python interface to OpenIPMI. | |
97 | ||
2756e887 | 98 | %description -n perl-%{name} -l pl.UTF-8 |
698af8e6 | 99 | Pythonowy interfejs do OpenIPMI. |
100 | ||
5ce9a439 JB |
101 | %package gui |
102 | Summary: OpenIPMI GUI | |
2756e887 | 103 | Summary(pl.UTF-8): Graficzny interfejs użytkownika do OpenIPMI |
5ce9a439 JB |
104 | Group: X11/Applications |
105 | Requires: python-%{name} = %{version}-%{release} | |
1b0573f7 | 106 | Requires: python-tkinter |
5ce9a439 JB |
107 | |
108 | %description gui | |
109 | OpenIPMI GUI. | |
110 | ||
2756e887 JR |
111 | %description gui -l pl.UTF-8 |
112 | Graficzny interfejs użytkownika do OpenIPMI. | |
5ce9a439 | 113 | |
e25b096b AM |
114 | %prep |
115 | %setup -q | |
3f33a1f3 | 116 | %patch0 -p1 |
5ce9a439 | 117 | %patch1 -p1 |
e25b096b AM |
118 | |
119 | %build | |
120 | %{__libtoolize} | |
121 | %{__aclocal} | |
122 | %{__autoconf} | |
123 | %{__automake} | |
3f33a1f3 | 124 | CPPFLAGS="-I/usr/include/ncurses" |
5ce9a439 JB |
125 | %configure \ |
126 | --without-glib12 \ | |
1b0573f7 | 127 | %{!?with_gui:--without-tkinter} |
5ce9a439 JB |
128 | %{__make} \ |
129 | PYTHON_INSTALL_DIR=%{py_sitedir} | |
e25b096b AM |
130 | |
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
06d50aea | 134 | %{__make} install -j1 \ |
d049d417 JB |
135 | DESTDIR=$RPM_BUILD_ROOT \ |
136 | PYTHON_INSTALL_DIR=%{py_sitedir} | |
e25b096b | 137 | |
5ce9a439 JB |
138 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{py,la,a} \ |
139 | $RPM_BUILD_ROOT%{py_sitedir}/openipmigui/*.py | |
dbd75781 | 140 | |
e25b096b AM |
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) | |
e25b096b | 149 | %doc ChangeLog FAQ README* TODO |
5ce9a439 JB |
150 | %attr(755,root,root) %{_bindir}/ipmi* |
151 | %attr(755,root,root) %{_bindir}/openipmicmd | |
152 | %attr(755,root,root) %{_bindir}/openipmish | |
153 | %attr(755,root,root) %{_bindir}/rmcp_ping | |
154 | %attr(755,root,root) %{_bindir}/solterm | |
3c3ddf24 JB |
155 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
156 | %{_mandir}/man[178]/* | |
e25b096b AM |
157 | |
158 | %files devel | |
159 | %defattr(644,root,root,755) | |
160 | %attr(755,root,root) %{_libdir}/lib*.so | |
161 | %{_libdir}/*.la | |
162 | %{_includedir}/%{name} | |
b5245aff | 163 | %{_pkgconfigdir}/*.pc |
e25b096b AM |
164 | |
165 | %files static | |
166 | %defattr(644,root,root,755) | |
167 | %{_libdir}/lib*.a | |
3c3ddf24 JB |
168 | |
169 | %files -n perl-%{name} | |
170 | %defattr(644,root,root,755) | |
171 | %{perl_vendorarch}/OpenIPMI.pm | |
172 | %dir %{perl_vendorarch}/auto/OpenIPMI | |
173 | %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so | |
698af8e6 | 174 | |
175 | %files -n python-%{name} | |
9fc26b0d | 176 | %defattr(644,root,root,755) |
5ce9a439 JB |
177 | %attr(755,root,root) %{py_sitedir}/_OpenIPMI.so |
178 | %{py_sitedir}/OpenIPMI.py[co] | |
179 | ||
180 | %if %{with gui} | |
181 | %files gui | |
182 | %defattr(644,root,root,755) | |
183 | %doc swig/python/openipmigui/TODO | |
184 | %attr(755,root,root) %{_bindir}/openipmigui | |
185 | %dir %{py_sitedir}/openipmigui | |
186 | %{py_sitedir}/openipmigui/*.py[co] | |
187 | %endif |