[lug] Looking for an example spec file
Kevin Fenzi
kevin at scrye.com
Tue Jun 30 09:11:23 MDT 2009
On Tue, 30 Jun 2009 09:02:42 -0600
"Kenneth D. Weinert" <kenw at quarter-flash.com> wrote:
> As I mentioned in an earlier question, I'm looking to create RPMs to
> make it easier to install on machines here at work.
>
> I have the situation where I have a shared library and I have two
> questions about things that I'm not quite understanding, so pointers
> to examples (in the doc, I've been reading Max RPM - but any pointers
> are fine) or an example file would be greatly appreciated.
>
> First off, when the shared lib is installed, at the moment I have the
> Makefile creating the links (liba.so.1.0.0 -> liba.so.1.0, etc) but
> rpmbuild complained about that. Due to the version information I'm
> not sure how I'd go about doing that in the %post actions (presuming
> that's where it would happen) or exactly how to arrange that.
ldconfig should do that for you.
You should have:
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
> The second thing is that I need to have a -devel package to go with
> this shared lib. Since there's only one build section I'm not quite
> sure how to manage that. Right now in the Makefile I have both an
> install and an install-devel target. This might not be the proper way
> to do this either.
You can install them both in %install, then just setup the files into
the subpackage you want.
> Any assistance from the more experienced packagers will be greatly
> appreciated. Pointers/examples/whatever :)
http://fedoraproject.org/wiki/Docs/Drafts/BuildingPackagesGuide
Is a good tutorial. ;)
kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20090630/7c3997d0/attachment.pgp>
More information about the LUG
mailing list