diff --git a/anjuta.spec b/anjuta.spec index 3d54d1f..f4f1a84 100644 --- a/anjuta.spec +++ b/anjuta.spec @@ -1,8 +1,11 @@ +# The Python templates in /usr/share/anjuta/project can not be byte-compiled. +%global _python_bytecompile_errors_terminate_build 0 + Summary: A GNOME development IDE for C/C++ Name: anjuta Epoch: 1 Version: 2.30.0.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Development/Tools URL: http://www.anjuta.org/ @@ -75,8 +78,6 @@ Summary: Documentation for Anjuta DevStudio Group: Documentation Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} -Requires(post): scrollkeeper -Requires(postun): scrollkeeper BuildArch: noarch @@ -210,12 +211,8 @@ if [ -x %{_bindir}/update-mime-database ];then update-mime-database %{_datadir}/mime &> /dev/null || : fi -touch --no-create %{_datadir}/icons/gnome -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || : - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : -fi +touch --no-create %{_datadir}/icons/gnome &>/dev/null || : +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %preun if [ "$1" -eq 0 ]; then @@ -235,18 +232,16 @@ if [ -x %{_bindir}/update-mime-database ];then update-mime-database %{_datadir}/mime &> /dev/null || : fi -touch --no-create %{_datadir}/icons/gnome -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || : - %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +if [ $1 -eq 0 ]; then + touch --no-create %{_datadir}/icons/gnome &>/dev/null + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi -%post doc -scrollkeeper-update -q -o %{_datadir}/omf/%{name}-manual || : - -%postun doc -scrollkeeper-update -q || : +%posttrans +gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || : +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %defattr(-,root,root,-) @@ -316,6 +311,12 @@ scrollkeeper-update -q || : %{_datadir}/omf/%{name}-manual/%{name}-manual-*.omf %changelog +* Mon Apr 29 2010 Debarshi Ray - 1:2.30.0.0-2 +- The Python templates in /usr/share/anjuta/project/python can not be + byte-compiled. Try not to abort the build on byte-compilation errors. +- Updated the icon cache and scrollkeeper scriptlet snippets according to + Fedora packaging guidelines. + * Mon Apr 29 2010 Debarshi Ray - 1:2.30.0.0-1 - Version bump to 2.30.0.0. * Completion for ., -> and :: in C/C++.