SPECS: nautilus-python.spec - ver. 0.5.0

wrobell wrobell at pld-linux.org
Sun May 11 14:39:19 CEST 2008


Author: wrobell                      Date: Sun May 11 12:39:19 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- ver. 0.5.0

---- Files affected:
SPECS:
   nautilus-python.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/nautilus-python.spec
diff -u SPECS/nautilus-python.spec:1.3 SPECS/nautilus-python.spec:1.4
--- SPECS/nautilus-python.spec:1.3	Sun Aug 26 01:57:35 2007
+++ SPECS/nautilus-python.spec	Sun May 11 14:39:14 2008
@@ -2,18 +2,16 @@
 Summary:	Python bindings for GNOME 2's nautilus
 Summary(pl.UTF-8):	Wiązania Pythona dla nautilusa z GNOME 2
 Name:		nautilus-python
-Version:	0.4.3
+Version:	0.5.0
 Release:	1
 License:	LGPL
 Group:		Libraries
-Source0:	http://ftp.gnome.org/pub/GNOME/sources/nautilus-python/0.4/%{name}-%{version}.tar.bz2
-# Source0-md5:	d676ff598426fbcda3f103d41d60d520
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/nautilus-python/0.5/%{name}-%{version}.tar.bz2
+# Source0-md5:	f46cd826d74f62ef7bba5b258c1d415a
+Patch0:		%{name}-dir.patch
+Patch1:		%{name}-api.patch
 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
@@ -32,48 +30,23 @@
 
 %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
+%patch0 -p1
+%patch1 -p1
+sed -i 's/codegen.py/codegen.pyc/' configure
 
 %build
-%{__libtoolize}
-%{__aclocal} -I local
-%{__autoconf}
-%{__automake}
 %configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/python
+install -d $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/python
+
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT \
 	NAUTILUS_LIBDIR=%{_libdir}
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -82,8 +55,8 @@
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
 %{_libdir}/nautilus-python
-%attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/*.so
-%dir %{_libdir}/nautilus/extensions-1.0/python
+%attr(755,root,root) %{_libdir}/nautilus/extensions-2.0/*.so
+%dir %{_libdir}/nautilus/extensions-2.0/python
 %{_pkgconfigdir}/nautilus-python.pc
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -92,7 +65,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.3  2007-08-25 23:57:35  qboosh
+Revision 1.4  2008-05-11 12:39:14  wrobell
+- ver. 0.5.0
+
+Revision 1.3  2007/08/25 23:57:35  qboosh
 - pl
 - BR: sed 4.0
 - Group changed (it's nautilus extension, not python module)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nautilus-python.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list