rpms/stardict/devel stardict.spec,1.37,1.38

Hu Zheng (zhu) fedora-extras-commits at redhat.com
Mon Sep 3 09:37:15 UTC 2007


Author: zhu

Update of /cvs/pkgs/rpms/stardict/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6152/devel

Modified Files:
	stardict.spec 
Log Message:
use desktop-file-install


Index: stardict.spec
===================================================================
RCS file: /cvs/pkgs/rpms/stardict/devel/stardict.spec,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- stardict.spec	3 Sep 2007 05:46:06 -0000	1.37
+++ stardict.spec	3 Sep 2007 09:36:42 -0000	1.38
@@ -19,6 +19,7 @@
 Requires: libbonobo >= 2.2.0
 Requires: bonobo-activation >= 2.2.0
 BuildRequires: libgnomeui-devel >= 2.2.0, scrollkeeper, gettext, perl-XML-Parser
+BuildRequires: desktop-file-utils
 Requires(post): GConf2, scrollkeeper
 Requires(postun): scrollkeeper
 
@@ -52,6 +53,12 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
+
+desktop-file-install --vendor fedora --delete-original	\
+  --add-category X-Red-Hat-Base				\
+  --dir $RPM_BUILD_ROOT%{_datadir}/applications		\
+  $RPM_BUILD_ROOT%{_datadir}/applications/*
+
 /bin/rm -f `find $RPM_BUILD_ROOT%{_libdir}/stardict/plugins -name "*.la"`
 %find_lang %{name}
 
@@ -84,7 +91,7 @@
 
 %changelog
 * Mon Sep 03 2007 Hu Zheng <zhu at redhat.com> - 3.0.0-4
-- Small fix on spec file.
+- Small fix on spec file. Use desktop-file-install.
 
 * Thu Aug 23 2007 Hu Zheng <zhu at redhat.com> - 3.0.0-3
 - Add floatwin and espeak patch.




More information about the fedora-extras-commits mailing list