example of buildsys rpm
Clark Williams
williams at redhat.com
Wed Apr 5 18:22:11 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Smith wrote:
>>Summary: Dependency package for minimal buildroot
>>Name: buildsys-minimal
>>Version: fc5
>>Release: 1
>>License: GPL
>>Group: Development/Build Tools
>>Source0: buildsys-minimal.spec
>>BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
>
>
>Two thoughts:
>
>1) If you add the following line (to make the package a 'noarch'), you
>can use the same rpm no matter what arch we're creating a chroot for.
>
>BuildArch: noarch
Done.
>
>2) What's the purpose of installing the spec file in the chroot? I'm
>afraid I don't see the point. You'll never need it there. If you want
>to see what the requires were that got installed, you could do a "rpm -
>qRp buildsys-minimal.*.rpm"
>
Yeah, I had never created an RPM with an empty %files section, so I
thought I needed something to go there. Silly me.
Attached is a new specfile that creates three binary RPMs:
buildsys-base, buildsys-minimal, and buildsys-build. This one doesn't
include the specfile as payload and is somewhat cleaned up.
Comments welcome.
Clark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFENArTHyuj/+TTEp0RAvi6AKDA2TutiDkYV4imzinSm5+uD6vpLgCgon3F
cgne8JhXzn8E3P57L3YmTM4=
=z90o
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildsys.spec
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060405/61f6f7ed/attachment.ksh>
More information about the Fedora-buildsys-list
mailing list