SPECS: nautilus-python.spec (NEW) - initial PLD release - potentia...
patrys
patrys at pld-linux.org
Tue Aug 21 13:32:51 CEST 2007
Author: patrys Date: Tue Aug 21 11:32:51 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial PLD release
- potentially ugly workaround for a missing m4 macro
---- Files affected:
SPECS:
nautilus-python.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/nautilus-python.spec
diff -u /dev/null SPECS/nautilus-python.spec:1.1
--- /dev/null Tue Aug 21 13:32:51 2007
+++ SPECS/nautilus-python.spec Tue Aug 21 13:32:45 2007
@@ -0,0 +1,88 @@
+# $Revision$, $Date$
+Summary: Python bindings for GNOME 2's nautilus
+Name: nautilus-python
+Version: 0.4.3
+Release: 1
+License: LGPL
+Group: Libraries/Python
+Source0: http://ftp.gnome.org/pub/GNOME/sources/nautilus-python/0.4/%{name}-%{version}.tar.bz2
+# Source0-md5: d676ff598426fbcda3f103d41d60d520
+URL: http://www.gnome.org
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: nautilus-devel >= 2.8
+BuildRequires: pkgconfig
+BuildRequires: python-devel
+BuildRequires: python-gnome-devel
+BuildRequires: python-gnome-vfs >= 2.12.0
+BuildRequires: python-pygtk-devel
+Requires: python-gnome-gconf
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+These are unstable bindings for the nautilus extension library
+introduced in Gnome 2.6.
+
+%prep
+%setup -q
+sed -i 's/codegen.py/codegen.pyc/' configure.in
+mkdir local
+cat << 'EOF' > local/acinclude.m4
+AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
+[AC_REQUIRE([AM_PATH_PYTHON])
+AC_MSG_CHECKING(for headers required to compile python extensions)
+dnl deduce PYTHON_INCLUDES
+py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
+py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
+if test "$py_prefix" != "$py_exec_prefix"; then
+ PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
+fi
+AC_SUBST(PYTHON_INCLUDES)
+dnl check if the headers exist:
+save_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
+AC_TRY_CPP([#include <Python.h>],dnl
+[AC_MSG_RESULT(found)
+$1],dnl
+[AC_MSG_RESULT(not found)
+$2])
+CPPFLAGS="$save_CPPFLAGS"
+])
+EOF
+
+%build
+%{__libtoolize}
+%{__aclocal} -I local
+%{__autoconf}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ NAUTILUS_LIBDIR=%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%{_libdir}/nautilus-python
+%{_libdir}/nautilus/extensions-1.0/*
+%{_pkgconfigdir}/nautilus-python.pc
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007/08/21 11:32:45 patrys
+- initial PLD release
+- potentially ugly workaround for a missing m4 macro
+
================================================================
More information about the pld-cvs-commit
mailing list