[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/bmp/devel bmp.spec,1.5,1.6



Author: ertzing

Update of /cvs/extras/rpms/bmp/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1904

Modified Files:
	bmp.spec 
Log Message:
- Removed MPEG filetypes from desktop file
- Call update-desktop-database in post/postun (BZ #159129)



Index: bmp.spec
===================================================================
RCS file: /cvs/extras/rpms/bmp/devel/bmp.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- bmp.spec	21 May 2005 17:46:54 -0000	1.5
+++ bmp.spec	2 Jun 2005 16:03:46 -0000	1.6
@@ -1,6 +1,6 @@
 Name:           bmp
 Version:        0.9.7
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        GTK2 based port of the XMMS media player
 
 Group:          Applications/Multimedia
@@ -22,6 +22,7 @@
 BuildRequires:  zlib-devel desktop-file-utils alsa-lib-devel
 BuildRequires:  gnome-vfs2-devel libglade2-devel
 #BuildRequires:  id3lib-devel
+PreReq: desktop-file-utils >= 0.9
 
 %description
 BMP (Beep Media Player) is a media player that currently uses a skinned
@@ -66,11 +67,17 @@
 make install DESTDIR=$RPM_BUILD_ROOT
 %find_lang %{name}
 
+# Image is png, not svg
 perl -pi -e 's/svg/png/ ; s/^(Categories=.+[^;\n])$/\1;/' beep/bmp.desktop
+
 desktop-file-install --vendor fedora \
     --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
     --add-category X-Fedora  \
     --add-category Application  \
+    --remove-mime-type audio/mp3 \
+    --remove-mime-type audio/x-mp3 \
+    --remove-mime-type audio/mpeg \
+    --remove-mime-type audio/x-mpeg \
     beep/bmp.desktop
 rm -f $RPM_BUILD_ROOT%{_datadir}/applications/bmp.desktop
 
@@ -90,10 +97,14 @@
 rm -rf $RPM_BUILD_ROOT
 
 
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+update-desktop-database %{_datadir}/applications
 
 
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
+update-desktop-database %{_datadir}/applications
 
 
 %files -f %{name}.lang
@@ -116,6 +127,10 @@
 
 
 %changelog
+* Thu Jun 02 2005 Ralf Ertzinger <ralf skytale net> 0.9.7-9%{?dist}
+- Removed MPEG filetypes from desktop file
+- Call update-desktop-database in post/postun (BZ #159129)
+
 * Sat May 21 2005 Ralf Ertzinger <ralf skytale net> 0.9.7-8%{?dist} 
 - Added %%{dist}
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]