Author: neoclust
Date: Mon Dec 18 10:06:17 2006
New Revision: 98376

Modified:
   packages/cooker/bandsaw/current/SPECS/bandsaw.spec

Log:
- Rebuild for new python
- Switch to xdg Menu
- Remove old menu styl


Modified: packages/cooker/bandsaw/current/SPECS/bandsaw.spec
==============================================================================
--- packages/cooker/bandsaw/current/SPECS/bandsaw.spec  (original)
+++ packages/cooker/bandsaw/current/SPECS/bandsaw.spec  Mon Dec 18 10:06:17 2006
@@ -8,7 +8,7 @@
 Summary:       %Summary
 Name:          %name
 Version:       %version
-Release:       %mkrel 1
+Release:       %mkrel 2
 License: GPL
 Group:                 System/Servers
 URL:           http://bandsaw.sourceforge.net/
@@ -19,10 +19,16 @@
 Source3:       %name.png
 BuildRoot:     %_tmppath/%{name}-%{version}-%{release}-buildroot
 
-BuildRequires: scrollkeeper, GConf2, pkgconfig
-BuildRequires:  pygtk2.0-devel, gnome-python 
-
-Requires: pygtk2.0, gnome-python, python, gnome-python-gconf
+BuildRequires: scrollkeeper
+BuildRequires:  GConf2
+BuildRequires:  pkgconfig
+BuildRequires:  pygtk2.0-devel
+BuildRequires:  gnome-python 
+
+Requires: pygtk2.0
+Requires: gnome-python
+Requires: python
+Requires: gnome-python-gconf
 
 BuildArch: noarch
 
@@ -47,17 +53,13 @@
 
 %find_lang %name --with-gnome
 
-# menu
-mkdir -p %buildroot/%_menudir
-cat > %buildroot/%_menudir/%name << EOF
-?package(%name): \
-command="%_bindir/%name" \
-needs="x11" \
-icon="%name.png" \
-section="%section" \
-title="%title" \
-longtitle="%Summary"
-EOF
+# Menu
+desktop-file-install --vendor="" \
+  --remove-category="Application" \
+  --add-category="Monitor" \
+  --add-category="System" \
+  --add-category="X-MandrivaLinux-System-Monitoring" \
+  --dir $RPM_BUILD_ROOT%{_datadir}/applications 
$RPM_BUILD_ROOT%{_datadir}/applications/*
 
 # icon
 mkdir -p %buildroot/{%_liconsdir,%_iconsdir,%_miconsdir}
@@ -97,7 +99,6 @@
 %{_datadir}/%{name}/glade/*
 %{_datadir}/omf/%{name}/
 %{_datadir}/applications/%{name}.desktop
-%_menudir/%name
 %_liconsdir/%name.png
 %_miconsdir/%name.png
 %_iconsdir/%name.png

Reply via email to