SPECS: OpenIPMI.spec - updated to 2.0.6, added python patch - adde...

qboosh qboosh at pld-linux.org
Mon Mar 13 22:53:20 CET 2006


Author: qboosh                       Date: Mon Mar 13 21:53:20 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated to 2.0.6, added python patch
- added gui subpackage (wxPython-based)

---- Files affected:
SPECS:
   OpenIPMI.spec (1.36 -> 1.37) 

---- Diffs:

================================================================
Index: SPECS/OpenIPMI.spec
diff -u SPECS/OpenIPMI.spec:1.36 SPECS/OpenIPMI.spec:1.37
--- SPECS/OpenIPMI.spec:1.36	Tue Jan 24 00:13:26 2006
+++ SPECS/OpenIPMI.spec	Mon Mar 13 22:53:15 2006
@@ -1,14 +1,19 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	gui	# don't build wxPython-based GUI
+#
 Summary:	IPMI abstraction layer
 Summary(pl):	Warstwa abstrakcji IPMI
 Name:		OpenIPMI
-Version:	2.0.4
+Version:	2.0.6
 Release:	1
 License:	LGPL (library), GPL (ipmicmd)
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
-# Source0-md5:	c80f1bdf97b6f0601caae5323d6487be
+# Source0-md5:	43be79ea0693dbde0420202e721b5232
 Patch0:		%{name}-link.patch
+Patch1:		%{name}-python.patch
 URL:		http://openipmi.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -22,6 +27,8 @@
 BuildRequires:	pkgconfig
 BuildRequires:	popt-devel
 BuildRequires:	python-devel
+%{?with_gui:BuildRequires:	python-wxPython}
+BuildRequires:	rpm-pythonprov
 BuildRequires:	swig-perl >= 1.3.25
 BuildRequires:	swig-python >= 1.3.25
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -86,9 +93,23 @@
 %description -n perl-%{name} -l pl
 Pythonowy interfejs do OpenIPMI.
 
+%package gui
+Summary:	OpenIPMI GUI
+Summary(pl):	Graficzny interfejs użytkownika do OpenIPMI
+Group:		X11/Applications
+Requires:	python-%{name} = %{version}-%{release}
+Requires:	python-wxPython
+
+%description gui
+OpenIPMI GUI.
+
+%description gui -l pl
+Graficzny interfejs użytkownika do OpenIPMI.
+
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -96,8 +117,11 @@
 %{__autoconf}
 %{__automake}
 CPPFLAGS="-I/usr/include/ncurses"
-%configure
-%{__make}
+%configure \
+	--without-glib12 \
+	%{!?with_gui:--without-wxpython}
+%{__make} \
+	PYTHON_INSTALL_DIR=%{py_sitedir}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -106,7 +130,8 @@
 	DESTDIR=$RPM_BUILD_ROOT \
 	PYTHON_INSTALL_DIR=%{py_sitedir}
 
-rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.py
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{py,la,a} \
+	$RPM_BUILD_ROOT%{py_sitedir}/openipmigui/*.py
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -117,7 +142,11 @@
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog FAQ README* TODO
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/ipmi*
+%attr(755,root,root) %{_bindir}/openipmicmd
+%attr(755,root,root) %{_bindir}/openipmish
+%attr(755,root,root) %{_bindir}/rmcp_ping
+%attr(755,root,root) %{_bindir}/solterm
 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
 %{_mandir}/man[178]/*
 
@@ -140,8 +169,17 @@
 
 %files -n python-%{name}
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/*.so
-%{py_sitedir}/*.py[oc]
+%attr(755,root,root) %{py_sitedir}/_OpenIPMI.so
+%{py_sitedir}/OpenIPMI.py[co]
+
+%if %{with gui}
+%files gui
+%defattr(644,root,root,755)
+%doc swig/python/openipmigui/TODO
+%attr(755,root,root) %{_bindir}/openipmigui
+%dir %{py_sitedir}/openipmigui
+%{py_sitedir}/openipmigui/*.py[co]
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -149,6 +187,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.37  2006/03/13 21:53:15  qboosh
+- updated to 2.0.6, added python patch
+- added gui subpackage (wxPython-based)
+
 Revision 1.36  2006/01/23 23:13:26  qboosh
 - updated to 2.0.4
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/OpenIPMI.spec?r1=1.36&r2=1.37&f=u



More information about the pld-cvs-commit mailing list