Name: python-nautilus
Summary: Python bindings for Nautilus
Version: 0.5.0
Release: 1
License: GPL
Group: Development/Libraries
Description: These are unstable bindings for the nautilus extension library introduced in Gnome 2.6.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status


The spec file used by the build system currently has the following contents:

# $Id$
# Authority: shuff
# Upstream: Gustavo J A M Carneiro <gustavo$users,sourceforge,net>

## ExcludeDist el3 el4

%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0)')
%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
%define python_version %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_version()')
%define nautilus_extensiondir %(pkg-config --variable=extensiondir libnautilus-extension)

%define real_name nautilus-python

Summary: Python bindings for Nautilus
Name: python-nautilus
Version: 0.5.0
Release: 1%{?dist}
License: GPL
Group: Development/Libraries

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: eel2-devel >= 2.6
BuildRequires: gnome-python2 >= 2.12
BuildRequires: /usr/bin/libtool
BuildRequires: nautilus-devel >= 2.6
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: pygtk2-devel >= 2.8
BuildRequires: python-devel >= 2.3
BuildRequires: rpm-macros-rpmforge
BuildRequires: /bin/sed
BuildRequires: /usr/bin/find
BuildRequires: /usr/bin/xargs

Requires: /sbin/ldconfig
Requires: /usr/bin/libtool
Requires: nautilus

Obsoletes: nautilus-python
Provides: nautilus-python = %{version}

%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig

Obsoletes: nautilus-python-devel
Provides: nautilus-python-devel = %{version}

# we don't want to either provide or require anything from _docdir, per policy
%filter_provides_in %{_docdir}
%filter_requires_in %{_docdir}

# actually set up the filtering

These are unstable bindings for the nautilus extension library introduced in
Gnome 2.6.

%description devel
Install this package if you want to develop software using %{name}.

%setup -n %{real_name}-%{version}

%ifarch x86_64
sed -i -e '/^libdir/ s/\/lib/&64/'

# autoconf sets these variable incorrectly under x86_64
export PYTHON_LIBS='-L%{_libdir} -lpython%{python_version}' 
export PYTHON_LIB_LOC='%{_libdir}' 
%configure --disable-dependency-tracking

%ifarch x86_64
find . -name Makefile | xargs sed -i -e '/^NAUTILUS_PYTHON_LIBS/ s/-L\/lib64/-L\/usr\/lib64 &/'


%{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}

%{__mv} %{buildroot}%{_defaultdocdir}/nautilus-python compiled_docs

%{__rm} -f %{buildroot}%{_libdir}/nautilus-python/*.la
%{__rm} -f %{buildroot}%{nautilus_extensiondir}/*.la

%{__rm} -rf %{buildroot}

/usr/bin/libtool --finish %{nautilus_extensiondir}


%defattr(-, root, root, 0755)
%dir %{nautilus_extensiondir}

%files devel
%doc compiled_docs/examples/ compiled_docs/
%dir %{_libdir}/pkgconfig/

* Tue Nov 03 2009 Steve Huff <> - 0.5.0-1
- Renamed per RPMforge naming convention.

* Fri Oct 09 2009 Steve Huff <> - 0.5.0-1
- Initial package.