Update to 1.0

epel9
Hicham HAOUARI 14 years ago
parent b7f7c0ec11
commit b00fa1d617

1
.gitignore vendored

@ -1 +1,2 @@
nautilus-python-0.7.0.tar.bz2 nautilus-python-0.7.0.tar.bz2
/nautilus-python-1.0.tar.bz2

@ -0,0 +1,133 @@
From 3407e6b3e1a851ed059e74a71040e84d9a473831 Mon Sep 17 00:00:00 2001
From: Adam Plumb <adamplumb@gmail.com>
Date: Sun, 26 Jun 2011 09:07:06 -0400
Subject: [PATCH 1/6] Fixes bug #653169, Update the COPYING file with the most
recent GPLv2 license
---
COPYING | 41 ++++++++++++++++++++---------------------
1 files changed, 20 insertions(+), 21 deletions(-)
diff --git a/COPYING b/COPYING
index d60c31a..d159169 100644
--- a/COPYING
+++ b/COPYING
@@ -1,12 +1,12 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
- Preamble
+ Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
+the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
@@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
-
- GNU GENERAL PUBLIC LICENSE
+
+ GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
-
+
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
-
+
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
-
+
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
- NO WARRANTY
+ NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
@@ -303,17 +303,16 @@ the "copyright" line and a pointer to where the full notice is found.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
- Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
@@ -336,5 +335,5 @@ necessary. Here is a sample; alter the names:
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
+library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
--
1.7.6.4

@ -0,0 +1,23 @@
From 58f061b6ecadb8f55f2e88a5fe6cce18113a3428 Mon Sep 17 00:00:00 2001
From: Adam Plumb <adamplumb@gmail.com>
Date: Mon, 27 Jun 2011 12:50:41 -0500
Subject: [PATCH 2/6] Fixes bug #652032 Update the pythondir variable in the
nautilus-python.pc.in file.
---
nautilus-python.pc.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/nautilus-python.pc.in b/nautilus-python.pc.in
index f73fbb0..8a43f0e 100644
--- a/nautilus-python.pc.in
+++ b/nautilus-python.pc.in
@@ -4,4 +4,4 @@ Version: @VERSION@
prefix=@prefix@
libdir=${prefix}/lib
-pythondir=@NAUTILUS_EXTENSION_DIR@/python
+pythondir=@datadir@/nautilus-python/extensions
--
1.7.6.4

@ -0,0 +1,24 @@
From a76bba7ea9d1be82ae43cae2c1ea839a2708925d Mon Sep 17 00:00:00 2001
From: Hicham HAOUARI <hicham.haouari@gmail.com>
Date: Tue, 27 Sep 2011 18:02:46 +0000
Subject: [PATCH 3/6] Fix html doc installation location
---
docs/Makefile.am | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 12bd1a2..1f73cbc 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -48,6 +48,7 @@ HTMLFILES = \
html/nautilus-python-enum-reference.html \
html/enum-nautilus-python-operation-result.html \
html/nautilus-python.devhelp
+HTML_DATA = $(HTMLFILES)
CSS_FILES = $(PYGOBJECT_PYGDOCS)/style.css
CSSdir = $(HTMLdir)
--
1.7.6.4

@ -0,0 +1,25 @@
From 023e60f01d1c7b4f4e186308060b598e1473238f Mon Sep 17 00:00:00 2001
From: Hicham HAOUARI <hicham.haouari@gmail.com>
Date: Tue, 27 Sep 2011 18:05:38 +0000
Subject: [PATCH 4/6] Fix underquoted macro warning
---
m4/python.m4 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/m4/python.m4 b/m4/python.m4
index 18685f1..c61a0d3 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -1,7 +1,7 @@
## this one is commonly used with AM_PATH_PYTHONDIR ...
dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]])
dnl Check if a module containing a given symbol is visible to python.
-AC_DEFUN(AM_CHECK_PYMOD,
+AC_DEFUN([AM_CHECK_PYMOD],
[AC_REQUIRE([AM_PATH_PYTHON])
py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1)
--
1.7.6.4

@ -0,0 +1,36 @@
From 463aca8190dea99d321ea3faf38a2e330b546e50 Mon Sep 17 00:00:00 2001
From: Hicham HAOUARI <hicham.haouari@gmail.com>
Date: Tue, 27 Sep 2011 19:01:51 +0000
Subject: [PATCH 5/6] Use autoconf's variable
---
configure.in | 1 +
examples/Makefile.am | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.in b/configure.in
index 407b0c5..9ea04f9 100644
--- a/configure.in
+++ b/configure.in
@@ -1,3 +1,4 @@
+AC_PREREQ(2.60)
AC_INIT
PACKAGE=nautilus-python
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 45e8909..b2a5903 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,7 +1,7 @@
-docsdir = $(datadir)/doc/$(PACKAGE)
+docsdir = $(docdir)
docs_DATA = README
-examplesdir = $(datadir)/doc/$(PACKAGE)/examples
+examplesdir = $(docdir)/examples
examples_DATA = \
background-image.py \
block-size-column.py \
--
1.7.6.4

@ -0,0 +1,22 @@
From f7c12f909be2caf3235397f9178c594e5fdc76b1 Mon Sep 17 00:00:00 2001
From: Hicham HAOUARI <hicham.haouari@gmail.com>
Date: Tue, 27 Sep 2011 19:03:10 +0000
Subject: [PATCH 6/6] Add '-I m4' to top Makefile.am
---
Makefile.am | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 2afeb5f..144e7d2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+ACLOCAL_AMFLAGS = -I m4
+
SUBDIRS = src examples
if ENABLE_GTK_DOC
--
1.7.6.4

@ -0,0 +1,25 @@
From f35a3f210999328e5fa7ee025271a53b13d7822e Mon Sep 17 00:00:00 2001
From: Hicham HAOUARI <hicham.haouari@gmail.com>
Date: Tue, 27 Sep 2011 20:36:33 +0000
Subject: [PATCH 7/7] Fix fsf address
---
src/nautilus-python.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/nautilus-python.c b/src/nautilus-python.c
index 0e00285..1bcfc9f 100644
--- a/src/nautilus-python.c
+++ b/src/nautilus-python.c
@@ -14,7 +14,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
--
1.7.6.4

@ -1,102 +0,0 @@
diff -Naurp nautilus-python-0.5.1.orig/acinclude.m4 nautilus-python-0.5.1/acinclude.m4
--- nautilus-python-0.5.1.orig/acinclude.m4 1969-12-31 19:00:00.000000000 -0500
+++ nautilus-python-0.5.1/acinclude.m4 2008-01-11 09:16:01.000000000 -0500
@@ -0,0 +1,87 @@
+## this one is commonly used with AM_PATH_PYTHONDIR ...
+dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]])
+dnl Check if a module containing a given symbol is visible to python.
+AC_DEFUN(AM_CHECK_PYMOD,
+[AC_REQUIRE([AM_PATH_PYTHON])
+py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
+AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1)
+AC_CACHE_VAL(py_cv_mod_$py_mod_var, [
+ifelse([$2],[], [prog="
+import sys
+try:
+ import $1
+except ImportError:
+ sys.exit(1)
+except:
+ sys.exit(0)
+sys.exit(0)"], [prog="
+import $1
+$1.$2"])
+if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
+ then
+ eval "py_cv_mod_$py_mod_var=yes"
+ else
+ eval "py_cv_mod_$py_mod_var=no"
+ fi
+])
+py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
+if test "x$py_val" != xno; then
+ AC_MSG_RESULT(yes)
+ ifelse([$3], [],, [$3
+])dnl
+else
+ AC_MSG_RESULT(no)
+ ifelse([$4], [],, [$4
+])dnl
+fi
+])
+
+dnl a macro to check for ability to create python extensions
+dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
+dnl function also defines PYTHON_INCLUDES
+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"
+])
+
+dnl a macro to check for ability to embed python
+dnl AM_CHECK_PYTHON_LIBS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
+dnl function also defines PYTHON_LIBS
+AC_DEFUN([AM_CHECK_PYTHON_LIBS],
+[AC_REQUIRE([AM_CHECK_PYTHON_HEADERS])
+AC_MSG_CHECKING(for libraries required to embed python)
+dnl deduce PYTHON_LIBS
+py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
+if test "x$PYTHON_LIBS" == x; then
+ PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
+fi
+if test "x$PYTHON_LIB_LOC" == x; then
+ PYTHON_LIB_LOC="${py_prefix}/lib"
+fi
+AC_SUBST(PYTHON_LIBS)
+AC_SUBST(PYTHON_LIB_LOC)
+dnl check if the headers exist:
+save_LIBS="$LIBS"
+LIBS="$LIBS $PYTHON_LIBS"
+AC_TRY_LINK_FUNC(Py_Initialize, dnl
+ [LIBS="$save_LIBS"; AC_MSG_RESULT(yes); $1], dnl
+ [LIBS="$save_LIBS"; AC_MSG_RESULT(no); $2])
+
+])
diff -Naurp nautilus-python-0.5.1.orig/configure.in nautilus-python-0.5.1/configure.in
--- nautilus-python-0.5.1.orig/configure.in 2008-09-16 15:16:05.000000000 -0400
+++ nautilus-python-0.5.1/configure.in 2008-12-09 14:41:32.000000000 -0500
@@ -39,6 +39,7 @@ AM_CHECK_PYTHON_LIBS(,[AC_MSG_ERROR(coul
PKG_CHECK_MODULES(NAUTILUS_PYTHON, [pygtk-2.0 >= $PYGTK_REQUIRED
gnome-python-2.0 >= $GNOME_PYTHON_REQUIRED
libnautilus-extension >= $NAUTILUS_REQUIRED
+ gnome-vfs-2.0 >= $GNOME_PYTHON_REQUIRED
eel-2.0 >= $EEL_REQUIRED])
AC_MSG_CHECKING(for pygtk defs)

@ -1,20 +1,37 @@
%global NAUTILUS_MAYOR_VER 3.0
Name: nautilus-python Name: nautilus-python
Version: 0.7.0 Version: 1.0
Release: 3%{?dist} Release: 1%{?dist}
Summary: Python bindings for Nautilus Summary: Python bindings for Nautilus
Group: Development/Libraries Group: Development/Libraries
License: GPLv2+ License: GPLv2+
URL: http://www.gnome.org/ URL: http://www.gnome.org/
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.7/%{name}-%{version}.tar.bz2 Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{version}/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: nautilus-devel BuildRequires: nautilus-devel
BuildRequires: gnome-vfs2-devel BuildRequires: pygobject2-devel
BuildRequires: gnome-python2-devel BuildRequires: gtk-doc
BuildRequires: pygtk2-devel BuildRequires: autoconf automake libtool
Requires: nautilus
Requires: nautilus >= 3.0
# Patch0: https://bugzilla.gnome.org/show_bug.cgi?id=653169
Patch0: 0001-Fixes-bug-653169-Update-the-COPYING-file-with-the-mo.patch
# Patch1: https://bugzilla.gnome.org/show_bug.cgi?id=652032
Patch1: 0002-Fixes-bug-652032.patch
# Patch2: https://bugzilla.gnome.org/show_bug.cgi?id=660283
Patch2: 0003-Fix-html-doc-installation-location.patch
# Patch3: https://bugzilla.gnome.org/show_bug.cgi?id=660286
Patch3: 0004-Fix-underquoted-macro-warning.patch
# Patch4: https://bugzilla.gnome.org/show_bug.cgi?id=660287
Patch4: 0005-Use-autoconf-s-variable.patch
# Patch5: https://bugzilla.gnome.org/show_bug.cgi?id=660288
Patch5: 0006-Add-I-m4-to-top-Makefile.am.patch
# Patch6: https://bugzilla.gnome.org/show_bug.cgi?id=660290
Patch6: 0007-Fix-fsf-address.patch
%description %description
Python bindings for Nautilus Python bindings for Nautilus
@ -32,22 +49,28 @@ Python bindings for Nautilus
%prep %prep
%setup -q %setup -q
find m4 -type f -not -name 'python.m4' -delete
%patch0 -p1 -b .update-licence
%patch1 -p1 -b .bug-652032
%patch2 -p1 -b .fix-html-doc
%patch3 -p1 -b .underquoted-macro-warning
%patch4 -p1 -b .use-docdir-variable
%patch5 -p1 -b .add-I-m4
%patch6 -p1 -b .fix-fsf-address
autoreconf -if -I m4
%build %build
%configure %configure \
--enable-gtk-doc \
--docdir=%{_datadir}/doc/%{name}-%{version}
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT/%{_docdir}/%{name} installed_docs mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions
rm $RPM_BUILD_ROOT/%{_libdir}/nautilus/extensions-2.0/*.la find $RPM_BUILD_ROOT -name '*.la' -delete
rm $RPM_BUILD_ROOT/%{_libdir}/%{name}/*.la
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/nautilus/extensions-2.0/python/
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
@ -56,18 +79,27 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README AUTHORS COPYING NEWS %doc README AUTHORS COPYING NEWS
%{_libdir}/%{name} %{_libdir}/nautilus/extensions-%{NAUTILUS_MAYOR_VER}/lib%{name}.so
%{_libdir}/nautilus/extensions-2.0/lib%{name}.* %dir %{_datadir}/%{name}/extensions
%dir %{_libdir}/nautilus/extensions-2.0/python/
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc installed_docs/examples %doc README AUTHORS COPYING NEWS
%{_datadir}/doc/%{name}-%{version}/examples/*.py
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gtk-doc/html/%{name}
%changelog %changelog
* Tue Sep 27 2011 Hicham HAOUARI <hicham.haouari@gmail.com> - 1.0-1
- Update to 1.0
- Remove BuildRoot tag and %%clean section
- Own /usr/share/nautilus-python/extensions instead of the old arch
dependent locations
* Tue Feb 12 2011 Tim Lauridsen <timlau@fedoraproject.org> - 0.7.0-4
- Make it build with latest nautilus
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

@ -1 +1 @@
457f4dc4caad58328becf349462d389a nautilus-python-0.7.0.tar.bz2 64ceb67b6b167c2d17ac46f23ec70828 nautilus-python-1.0.tar.bz2

Loading…
Cancel
Save