rpms/gnome-bluetooth/devel gnome-bluetooth.spec,1.73,1.74
Bastien Nocera
hadess at fedoraproject.org
Tue Apr 14 14:14:36 UTC 2009
Author: hadess
Update of /cvs/pkgs/rpms/gnome-bluetooth/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5937
Modified Files:
gnome-bluetooth.spec
Log Message:
Fix docs build
Index: gnome-bluetooth.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-bluetooth/devel/gnome-bluetooth.spec,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- gnome-bluetooth.spec 14 Apr 2009 13:57:34 -0000 1.73
+++ gnome-bluetooth.spec 14 Apr 2009 14:14:06 -0000 1.74
@@ -84,9 +84,30 @@
--dir=$RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ \
$RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/bluetooth-applet.desktop
+# gnome-bluetooth2 is the name for the gettext domain,
+# gnome-bluetooth is the name in the docs
%find_lang gnome-bluetooth2
+%find_lang %{name} --with-gnome
+cat %{name}.lang >> gnome-bluetooth2.lang
+
+# 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
%post
+scrollkeeper-update -q
update-desktop-database -q
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule \
@@ -125,6 +146,7 @@
fi
%postun
+scrollkeeper-update -q
update-desktop-database -q
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
More information about the fedora-extras-commits
mailing list