Rpm spec file examples that install program or desktop shortcuts?

A 5 star hangout for overworked and underpaid system admins.
Post Reply
edsutton
Posts: 11
Joined: 2009/01/13 18:28:03

Rpm spec file examples that install program or desktop shortcuts?

Post by edsutton » 2010/04/19 17:22:17

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

lostson
Posts: 100
Joined: 2005/12/26 16:45:52
Location: Appleton WI
Contact:

Rpm spec file examples that install program or desktop short

Post by lostson » 2010/04/19 20:06:42

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

edsutton
Posts: 11
Joined: 2009/01/13 18:28:03

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

Post by edsutton » 2010/04/19 20:34:55

[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

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

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

Post by AlanBartlett » 2010/04/20 12:35:16

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].

Post Reply