diff --git a/python-caja.spec b/python-caja.spec index 8619310..35c833d 100644 --- a/python-caja.spec +++ b/python-caja.spec @@ -1,6 +1,6 @@ Name: python-caja Version: 1.4.0 -Release: 3%{?dist} +Release: 4%{?dist} Epoch: 1 Summary: Python bindings for Caja @@ -18,7 +18,11 @@ Patch2: python-caja_fix_incorrect-FSF-address-copying.patch Patch3: python-caja_automake-1.13-fix.patch BuildRequires: python2-devel +%if 0%{?fedora} > 20 +BuildRequires: caja-devel +%else BuildRequires: mate-file-manager-devel +%endif BuildRequires: pygobject2-devel BuildRequires: mate-common BuildRequires: pygtk2-devel @@ -38,6 +42,14 @@ Python bindings for Caja %prep %setup -q +sed -i -e 's~#!/usr/bin/python~#!%{__python2}~g' examples/background-image.py +sed -i -e 's~#!/usr/bin/python~#!%{__python2}~g' examples/block-size-column.py +sed -i -e 's~#!/usr/bin/python~#!%{__python2}~g' examples/location-widget-provider.py +sed -i -e 's~#!/usr/bin/python~#!%{__python2}~g' examples/md5sum-property-page.py +sed -i -e 's~#!/usr/bin/python~#!%{__python2}~g' examples/open-terminal.py +sed -i -e 's~#!/usr/bin/python~#!%{__python2}~g' examples/submenu.py +sed -i -e 's~#!/usr/bin/python~#!%{__python2}~g' examples/update-file-info-async.py + %patch0 -p1 -b .mate-python %patch1 -p1 -b .incorrect-FSF-address %patch2 -p1 -b .COPYING @@ -76,6 +88,10 @@ find $RPM_BUILD_ROOT -name '*.la' -delete %changelog +* Wed Dec 18 2013 Wolfgang Ulbrich - 1:1.4.0-4 +- rebuild for caja rename in f21 +- add python2 stacks + * Mon Sep 23 2013 Wolfgang Ulbrich - 1:1.4.0-3 - own directories