[gphotoframe] Fix BR, symlink

Mamoru Tasaka mtasaka at fedoraproject.org
Mon Jan 17 19:18:16 UTC 2011


commit ddd630210306c92f2eb9e3370bbea243969c837a
Author: Mamoru Tasaka <tasaka1 at localhost.localdomain>
Date:   Tue Jan 18 04:18:06 2011 +0900

    Fix BR, symlink

 gphotoframe.spec |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gphotoframe.spec b/gphotoframe.spec
index 75fe0ad..e743709 100644
--- a/gphotoframe.spec
+++ b/gphotoframe.spec
@@ -31,6 +31,10 @@ BuildRequires:	gettext
 BuildRequires:	intltool
 BuildRequires:	python2-devel
 BuildRequires:	python-distutils-extra
+# For creating symlink -> python-bytecompiling
+BuildRequires:	python-exif
+# From 1.2-b6: setup.py needs this
+BuildRequires:	pyxdg
 
 # Mandatory
 Requires:	pygtk2
@@ -127,6 +131,16 @@ mv %{buildroot}%{_prefix}/lib/gnome-screensaver/gnome-screensaver/gphotoframe-sc
 
 %find_lang %{name}
 
+# Treak brp-python-bytecompile
+%global	__os_install_post_orig		%{__os_install_post}
+%global	__os_install_post \
+	%__os_install_post_orig \
+	for f in %{python_sitelib}/EXIF.py* \
+	do \
+		ln -sf $f %{buildroot}%{python_sitelib}/%{name}/utils/$(basename $f) \
+	done \
+	%{nil}
+
 %clean
 rm -rf %{buildroot}
 


More information about the scm-commits mailing list