[packages/sblim-wbemcli] - new - added python patch to fix configure error causing endless loop with --enable-pycli

qboosh qboosh at pld-linux.org
Fri Jan 9 16:16:37 CET 2015


commit 358b1d959d51e99f77da83d681840417751fde1e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jan 9 16:17:49 2015 +0100

    - new
    - added python patch to fix configure error causing endless loop with --enable-pycli

 sblim-wbemcli-python.patch | 17 +++++++++++++
 sblim-wbemcli.spec         | 61 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)
---
diff --git a/sblim-wbemcli.spec b/sblim-wbemcli.spec
new file mode 100644
index 0000000..7f28174
--- /dev/null
+++ b/sblim-wbemcli.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_with	python	# Python CLI ("doesn't work currently" says configure, only ghttp supported)
+#
+Summary:	SBLIM WBEM Command Line Interface
+Summary(pl.UTF-8):	SBLIM WBEM CLI - interfejs linii poleceń
+Name:		sblim-wbemcli
+Version:	1.6.3
+Release:	1
+License:	Eclipse Public License v1.0
+Group:		Libraries
+Source0:	http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
+# Source0-md5:	521e64351e663e12f6a19ed1a2fa8e79
+Patch0:		%{name}-python.patch
+URL:		http://sblim.sourceforge.net/
+BuildRequires:	curl-devel >= 7.9.3
+BuildRequires:	libstdc++-devel
+%if %{with python}
+BuildRequires:	python-devel >= 2
+BuildRequires:	swig-python
+%endif
+Requires:	curl-libs >= 7.9.3
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+WBEM Command Line Interface is a standalone, command line WBEM client.
+It is specially suited for basic systems management tasks as it can be
+used in scripts.
+
+%description -l pl.UTF-8
+WBEM Command Line Interface to samodzielny klient WBEM działający z
+linii poleceń. Jest przydatny zwłaszcza do podstawowych zadań
+zarządzania systemem, które można wykonywać w skryptach.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+	%{?with_python:--enable-pythoncli}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog NEWS README README.pycli
+%attr(755,root,root) %{_bindir}/wbem*
+%{_mandir}/man1/wbemcli.1*
diff --git a/sblim-wbemcli-python.patch b/sblim-wbemcli-python.patch
new file mode 100644
index 0000000..fd41e1d
--- /dev/null
+++ b/sblim-wbemcli-python.patch
@@ -0,0 +1,17 @@
+--- sblim-wbemcli-1.6.3/configure.ac.orig	2014-10-14 04:13:16.000000000 +0200
++++ sblim-wbemcli-1.6.3/configure.ac	2015-01-09 15:45:15.813363326 +0100
+@@ -116,12 +116,11 @@
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS([malloc.h stdlib.h string.h])
+ 
+-if test "$wbemcli_enable_swig" = "yes" &&
+-   "$wbemcli_swig" = "yes" && test "$wbemcli_python" = "yes" ; then
++if test "$wbemcli_enable_swig" = "yes" -a "$wbemcli_swig" = "yes" -a "$wbemcli_python" = "yes" ; then
+   case $host_os 
+ # check for Python Include
+     in linux*) 
+-      wbemcli_pythinc=`find /usr/include -name Python.h -printf "%h " | sed 's/ .*$//'`
++      wbemcli_pythinc="$(python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc()' 2>/dev/null)"
+       wbemcli_saveCPPFLAGS=$CPPFLAGS
+       if test -n "$wbemcli_pythinc"; then
+         CPPFLAGS="-I $wbemcli_pythinc $CPPFLAGS"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sblim-wbemcli.git/commitdiff/358b1d959d51e99f77da83d681840417751fde1e



More information about the pld-cvs-commit mailing list