How to include a package in the Applications Menu

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

 



Hello all,
  I am trying to pack a source package into rpm. I need to include the
shortcut for my software in the Applications --> Office Menu. I am
using FC-4 and GNOME-2.10 . I have included the 'Group' macro in the
SPEC file with value: "Applications/Productivity". But after
installing it I couldn't get the icon in the Applications menu. Is
this the right way to attain this? If not please give me some
guidelines.
TIA,
regards
Manilal

The spec file for my rpm is as follows:
%define nila_dir    %{_datadir}/%{name}
Name: nila-editor
Summary: Swathanthra Nila Malayalam Editor
Version: 1.0
Release: 1
License: GPL
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
BuildArch: noarch
Group: Applications/Productivity
Packager: manilalkm@xxxxxxxxx
Url: http://www.cdit.org/
%description
This package provides the Nila Malayalam Editor released under GPL
%prep
%setup -q -n %{name}-%{version}
%build
make
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{nila_dir}
install -d $RPM_BUILD_ROOT/usr/bin/
install -d $RPM_BUILD_ROOT/usr/share/pixmaps
install -d $RPM_BUILD_ROOT/usr/share/applications
install -m 0755 src/mal_editor $RPM_BUILD_ROOT/usr/bin/mal_editor
install -m 0755 src/nila-editor $RPM_BUILD_ROOT/usr/bin/nila-editor
install -m 0644 nila-editor.pdf $RPM_BUILD_ROOT/%{nila_dir}/nila-editor.pdf
install -m 0644 pixmaps/* $RPM_BUILD_ROOT/%{nila_dir}/
install -m 0644 pixmaps/aarogya.xpm
$RPM_BUILD_ROOT/usr/share/pixmaps/aarogya.xpm
install -m 0644 desktop/nila-editor.desktop
$RPM_BUILD_ROOT/usr/share/applications/nila-editor.desktop
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%dir %{nila_dir}
%doc nila-editor.pdf
%{nila_dir}/*
/usr/bin/mal_editor
/usr/bin/nila-editor
%post -n nila-editor
%preun
rm -rf /usr/bin/mal_editor
rm -rf /usr/bin/nila-editor
rm -rf /usr/share/nila-editor
%postun
%changelog

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux