Page 1 of 1

Rpm spec file examples that install program or desktop shortcuts?

Posted: 2010/04/19 17:22:17
by edsutton
Thanks in advance for any rpm sepc file examples you can share.

Background
-------------

I have a mylib-devel.rpm that installs headers (to /usr/include/) and html docs to /usr/share/doc/mylib/html. I am trying to figure out how to add program shortcuts to Appplication->Programming menu as well as add a desktop shortuct to the index.html file.

I am a Linux newbie. If I am not installing to the proper locations please correct me.

-Ed

Rpm spec file examples that install program or desktop short

Posted: 2010/04/19 20:06:42
by lostson
There are many ways to package things up It has been pointed out to me several times to use this site

https://fedoraproject.org/wiki/Packaging/Guidelines

as a starting point. You may also want to check these ones out as well

http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

http://wiki.centos.org/PackageManagement/Rpm

Re: Rpm spec file examples that install program or desktop shortcuts?

Posted: 2010/04/19 20:34:55
by edsutton
[quote]
lostson wrote:
There are many ways to package things up It has been pointed out to me several times to use this site

https://fedoraproject.org/wiki/Packaging/Guidelines

as a starting point. You may also want to check these ones out as well

http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment

http://wiki.centos.org/PackageManagement/Rpm[/quote]

Thank you!

The https://fedoraproject.org/wiki/Packaging/Guidelines link is a great resource!

desktop-file-install \
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
%{SOURCE3}

-Ed

Re: Rpm spec file examples that install program or desktop shortcuts?

Posted: 2010/04/20 12:35:16
by AlanBartlett
Moved this thread to [i]Social[/i], as it does not contain a [i]CentOS[/i] specific question. ;-)

Another link to bookmark is the [url=http://docs.fedoraproject.org/drafts/rpm-guide-en/index.html]Fedora Project's RPM Guide[/url].