[orca] Fix BR and file list

Christopher Aillon caillon at fedoraproject.org
Sun Jan 23 04:43:43 UTC 2011


commit 081ec1610b71ca2bace7538cb8434d01e47f971d
Author: Christopher Aillon <caillon at redhat.com>
Date:   Sat Jan 22 20:43:03 2011 -0800

    Fix BR and file list
    
    Need to BR: PyYAML
    Add --with-gnome to find_lang
    Also, link identical images to save disk space

 orca.spec |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/orca.spec b/orca.spec
index 98ddd93..00e4cef 100644
--- a/orca.spec
+++ b/orca.spec
@@ -30,6 +30,7 @@ BuildRequires:	brltty >= %{brltty_version}
 BuildRequires:	pyorbit-devel >= %{pyorbit_version}
 BuildRequires: 	pygtk2-devel >= %{pygtk2_version}
 BuildRequires:  pyxdg
+BuildRequires:  PyYAML
 BuildRequires:	gnome-speech-devel >= %{gnome_speech_version}
 BuildRequires:	gettext
 BuildRequires:	intltool
@@ -73,7 +74,24 @@ make %{?_smp_mflags}
 %install
 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
 make install DESTDIR=$RPM_BUILD_ROOT
-%find_lang %{name}
+
+%find_lang %{name} --with-gnome
+
+# save space by linking identical images in translated docs
+helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
+for f in $helpdir/C/figures/*.png; do
+  b="$(basename $f)"
+  for d in $helpdir/*; do
+    if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
+      g="$d/figures/$b"
+      if [ -f "$g" ]; then
+        if cmp -s $f $g; then
+          rm "$g"; ln -s "../../C/figures/$b" "$g"
+        fi
+      fi
+    fi
+  done
+done
 
 find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
 


More information about the scm-commits mailing list