Author: deejay1                      Date: Tue Jun 19 16:49:17 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- BR/R(P,PU): desktop-file-utils
- replaced post(un) scripts with proper macros

---- Files affected:
SPECS:
   monodevelop.spec (1.49 -> 1.50) 

---- Diffs:

================================================================
Index: SPECS/monodevelop.spec
diff -u SPECS/monodevelop.spec:1.49 SPECS/monodevelop.spec:1.50
--- SPECS/monodevelop.spec:1.49 Wed Jun 13 13:19:38 2007
+++ SPECS/monodevelop.spec      Tue Jun 19 18:49:12 2007
@@ -14,7 +14,7 @@
 Summary(pl.UTF-8):     IDE dla Mono
 Name:          monodevelop
 Version:       0.14
-Release:       1
+Release:       2
 License:       GPL/MIT
 Group:         Development/Tools
 Source0:       
http://go-mono.com/sources/monodevelop/%{name}-%{version}.tar.bz2
@@ -28,6 +28,7 @@
 BuildRequires: ORBit2-devel >= 2.8.3
 BuildRequires: autoconf
 BuildRequires: automake >= 1:1.7
+BuildRequires: desktop-file-utils
 BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
 BuildRequires: dotnet-gecko-sharp2-devel >= 0.10
 BuildRequires: dotnet-gtk-sharp2-devel >= 2.9.0
@@ -42,6 +43,7 @@
 BuildRequires: sed >= 4.0
 BuildRequires: shared-mime-info
 BuildRequires: xsp
+Requires(post,postun): desktop-file-utils
 Requires:      gtkhtml
 %ifarch %{x8664} ia64 ppc64 s390x sparc64
 Requires:      libgtkembedmoz.so()(64bit)
@@ -128,16 +130,12 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-umask 022
-update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||:
-[ ! -x %{_bindir}/update-desktop-database ] || 
%{_bindir}/update-desktop-database >/dev/null 2>&1 ||:
+%update_desktop_database_post
+%update_mime_database
 
 %postun
-if [ $1 = 0 ]; then
-    umask 022
-    update-mime-database %{_datadir}/mime >/dev/null 2>&1
-    [ ! -x %{_bindir}/update-desktop-database ] || 
%{_bindir}/update-desktop-database >/dev/null 2>&1
-fi
+%update_desktop_database_postun
+%update_mime_database
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
@@ -155,6 +153,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.50  2007/06/19 16:49:12  deejay1
+- BR/R(P,PU): desktop-file-utils
+- replaced post(un) scripts with proper macros
+
 Revision 1.49  2007/06/13 11:19:38  vip
 - up to .14
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/monodevelop.spec?r1=1.49&r2=1.50&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to