fix up spec
This commit is contained in:
parent
ba37eaba9e
commit
ec26e03bac
29
eog.spec
29
eog.spec
@ -95,55 +95,38 @@ rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
|
|||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT%{_libdir}/eog/plugins/*.la
|
rm -rf $RPM_BUILD_ROOT%{_libdir}/eog/plugins/*.la
|
||||||
|
|
||||||
# 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
|
%post
|
||||||
update-desktop-database -q
|
update-desktop-database -q
|
||||||
%gconf_schema_upgrade eog
|
|
||||||
touch %{_datadir}/icons/hicolor >&/dev/null || :
|
touch %{_datadir}/icons/hicolor >&/dev/null || :
|
||||||
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%gconf_schema_prepare eog
|
%gconf_schema_obsolete eog
|
||||||
|
|
||||||
%preun
|
|
||||||
%gconf_schema_remove eog
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
update-desktop-database -q
|
update-desktop-database -q
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||||
|
glib-compile-schemas %{_datadir}/glib-2.0/schemas
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
|
||||||
|
glib-compile-schemas %{_datadir}/glib-2.0/schemas
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING NEWS README
|
%doc AUTHORS COPYING NEWS README
|
||||||
%{_datadir}/eog
|
%{_datadir}/eog
|
||||||
%{_datadir}/applications/*
|
%{_datadir}/applications/*
|
||||||
%{_datadir}/omf/*
|
|
||||||
%{_datadir}/icons/hicolor/*/apps/*
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_sysconfdir}/gconf/schemas/*.schemas
|
|
||||||
%{_libdir}/eog
|
%{_libdir}/eog
|
||||||
|
%{_datadir}/GConf/gsettings/eog.convert
|
||||||
|
%{_datadir}/glib-2.0/schemas/org.gnome.eog.enums.xml
|
||||||
|
%{_datadir}/glib-2.0/schemas.org.gnome.eog.gschema.xml
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user