diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-10-21 10:36:41 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-10-21 10:36:41 +0000 |
commit | d17687012dc2a3ca360fcbf0d80866680aa02362 (patch) | |
tree | 2ffaed59ec74ad2d6295b9ecdfe3764f3895d556 | |
parent | 582f47a784e872fb3e076203650e683ee9ee1cd6 (diff) | |
download | rpmdrake-d17687012dc2a3ca360fcbf0d80866680aa02362.tar rpmdrake-d17687012dc2a3ca360fcbf0d80866680aa02362.tar.gz rpmdrake-d17687012dc2a3ca360fcbf0d80866680aa02362.tar.bz2 rpmdrake-d17687012dc2a3ca360fcbf0d80866680aa02362.tar.xz rpmdrake-d17687012dc2a3ca360fcbf0d80866680aa02362.zip |
Get the menu file out of the spec file
-rw-r--r-- | rpmdrake.menu | 7 | ||||
-rw-r--r-- | rpmdrake.spec | 19 |
2 files changed, 8 insertions, 18 deletions
diff --git a/rpmdrake.menu b/rpmdrake.menu new file mode 100644 index 00000000..b96943be --- /dev/null +++ b/rpmdrake.menu @@ -0,0 +1,7 @@ +?package(rpmdrake): command="/usr/sbin/rpmdrake" needs="x11" section="System/Configuration/Packaging" icon="rpmdrake.png" title="Browse Available Software" longtitle="A graphical front end for browsing available packages for installation (no root password needed)" +?package(rpmdrake): command="/usr/sbin/rpmdrake --root" needs="x11" section="System/Configuration/Packaging" icon="rpmdrake.png" title="Install Software" longtitle="A graphical front end for installing packages" +?package(rpmdrake): command="/usr/sbin/rpmdrake-remove --root" needs="x11" section="System/Configuration/Packaging" icon="rpmdrake-remove.png" title="Remove Software" longtitle="A graphical front end for removing packages" +?package(rpmdrake): command="/usr/sbin/MandrakeUpdate" needs="x11" section="System/Configuration/Packaging" icon="mandrakeupdate.png" title="Mandrakelinux Update" longtitle="A graphical front end for software updates" +?package(rpmdrake): command="/usr/sbin/edit-urpm-media" needs="x11" section="System/Configuration/Packaging" icon="edit-urpm-sources.png" title="Software Media Manager" longtitle="A graphical front end to add/remove/edit media for installing packages" +?package(rpmdrake): command="/usr/sbin/gurpmi.addmedia" needs="gnome" section=".hidden" title="Medium installer" mimetypes="application/x-urpmi-media" longtitle="A graphical front end for adding media" +?package(rpmdrake): command="/usr/sbin/gurpmi.addmedia" needs="kde" section=".hidden" InitialPreference="9" title="Medium installer" mimetypes="application/x-urpmi-media" longtitle="A graphical front end for adding media" diff --git a/rpmdrake.spec b/rpmdrake.spec index 77d8d89f..abccc93a 100644 --- a/rpmdrake.spec +++ b/rpmdrake.spec @@ -64,24 +64,7 @@ install -m 644 rpmdrake.pm $RPM_BUILD_ROOT/%{perl_vendorlib} %find_lang rpmdrake mkdir -p $RPM_BUILD_ROOT%{_menudir} -cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF -?package(%{name}): command="/usr/sbin/rpmdrake" needs="x11" section="Configuration/Packaging" icon="rpmdrake.png" \ - title="Browse Available Software" longtitle="A graphical front end for browsing available packages for installation (no root password needed)" -?package(%{name}): command="/usr/sbin/rpmdrake --root" needs="x11" section="Configuration/Packaging" icon="rpmdrake.png" \ - title="Install Software" longtitle="A graphical front end for installing packages" -?package(%{name}): command="/usr/sbin/rpmdrake-remove --root" needs="x11" section="Configuration/Packaging" icon="rpmdrake-remove.png" \ - title="Remove Software" longtitle="A graphical front end for removing packages" -?package(%{name}): command="/usr/sbin/MandrakeUpdate" needs="x11" section="Configuration/Packaging" icon="mandrakeupdate.png" \ - title="Mandrakelinux Update" longtitle="A graphical front end for software updates" -?package(%{name}): command="/usr/sbin/edit-urpm-media" needs="x11" section="Configuration/Packaging" icon="edit-urpm-sources.png" \ - title="Software Media Manager" longtitle="A graphical front end to add/remove/edit media for installing packages" -?package(%{name}): command="/usr/sbin/gurpmi.addmedia" needs="gnome" section=".hidden" \ - title="Medium installer" mimetypes="application/x-urpmi-media" \ - longtitle="A graphical front end for adding media" -?package(%{name}): command="/usr/sbin/gurpmi.addmedia" needs="kde" section=".hidden" InitialPreference="9" \ - title="Medium installer" mimetypes="application/x-urpmi-media" \ - longtitle="A graphical front end for adding media" -EOF +cp %{name}.menu $RPM_BUILD_ROOT%{_menudir}/%{name} mkdir -p $RPM_BUILD_ROOT{%{_miconsdir},%{_liconsdir}} for i in rpmdrake rpmdrake-remove mandrakeupdate edit-urpm-sources; do cp pixmaps/${i}16.png $RPM_BUILD_ROOT%{_miconsdir}/${i}.png |