-----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-----
#
# Spec file for mock buildsys configuration
#
Summary: Dependency package for mock buildsys
Name: buildsys-base
Version: 1.0
Release: 1
License: GPL
Group: Development/Build Tools
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
Requires: coreutils
Requires: findutils
Requires: openssh-server
Requires: which
%description
The base set of packages that all mock chroots start from
%package -n buildsys-minimal
Summary: The minimal set of packages required on top of the base set for a mock chroot
Group: Development/Build Tools
Requires: bash
Requires: glibc
Requires: python
Requires: createrepo
Requires: rpm
Requires: rpm-python
Requires: initscripts
Requires: chkconfig
Requires: fedora-release
Requires: buildsys-macros
%description -n buildsys-minimal
The minimal set of packages required on top of the base set for a mock chroot
%package -n buildsys-build
Summary: The development tools required for a mock chroot build
Group: Development/Build Tools
Requires: perl-XML-SAX
Requires: tar
Requires: diffstat
Requires: perl-XML-Parser
Requires: perl-XML-Dumper
Requires: udev
Requires: gdb
Requires: automake15
Requires: gcc
Requires: intltool
Requires: redhat-rpm-config
Requires: automake17
Requires: pkgconfig
Requires: gettext
Requires: automake
Requires: automake16
Requires: automake14
Requires: patchutils
Requires: ctags
Requires: gcc-c++
Requires: flex
Requires: unzip
Requires: bzip2
Requires: cpio
Requires: byacc
Requires: doxygen
Requires: indent
Requires: strace
Requires: rpm-build
Requires: elfutils
Requires: patch
Requires: bison
Requires: diffutils
Requires: gzip
Requires: libtool
Requires: autoconf
Requires: make
Requires: binutils
%description -n buildsys-build
The development tools required for a mock chroot build
%prep
%build
%install
%clean
%files
%defattr(-,root,root,-)
%doc
%files -n buildsys-minimal
%defattr(-,root,root,-)
%doc
%files -n buildsys-build
%defattr(-,root,root,-)
%doc