# # Spec file for mock buildsys configuration # Summary: The base set of packages for a mock chroot Name: buildsys-build Version: 0.7.3 Release: 1%{?dist} License: GPL Group: Development/Build Tools BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch # packages that populate a buildsys chroot Requires: bash Requires: buildsys-macros Requires: bzip2 Requires: cpio Requires: diffutils Requires: gcc Requires: gcc-c++ Requires: gzip Requires: make Requires: patch Requires: perl Requires: rpm-build Requires: sed Requires: tar Requires: unzip Requires: which # The rather long-winded format of the conditionals is needed for compatbility # with old rpm versions such as were supplied with Red Hat Linux 7 # Fedora block %if "%{?fedora}" != "" Requires: coreutils Requires: fedora-release Requires: redhat-rpm-config %if "%{?fedora}" == "4" || "%{?fedora}" == "3" || "%{?fedora}" == "2" || "%{?fedora}" == "1" Requires: elfutils %if "%{?fedora}" == "4" || "%{?fedora}" == "3" Requires: python %endif %endif %endif # RHEL block %if "%{?rhel}" != "" Requires: redhat-release Requires: coreutils Requires: elfutils Requires: redhat-rpm-config %if "%{?rhel}" == "4" Requires: python %endif %endif # Red Hat Linux [789] block %if "%{?rhl}" != "" Requires: redhat-release %if "%{?rhl}" == "9" Requires: coreutils Requires: elfutils Requires: redhat-rpm-config %else Requires: file Requires: fileutils Requires: findutils %endif # Cater for alternative versions of buildsys-macros %if "%{?rhl}" == "8" || "%{?rhl}" == "8.0" Requires: redhat-rpm-config %endif %endif # Aurora block %if "%{?aurora}" != "" Requires: coreutils Requires: fedora-release Requires: redhat-rpm-config %if "%{?aurora}" == "2" Requires: elfutils Requires: python %endif %endif %description The base set of packages for a mock chroot. %build %install %{__rm} -rf %{buildroot} %{__mkdir_p} %{buildroot} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc %changelog * Wed Jan 3 2007 Clark Williams - merged mock-0.6 BZ fixes to trunk * Thu Dec 14 2006 Clark Williams - added fix from David Lutterkort for RHEL - refactored some conditional blocks for simplicity - added this entry for Dennis Gilmore's aurora SPARC fixes * Tue Aug 29 2006 Clark Williams - added rhl buildsys-build rpms * Fri Aug 25 2006 Dennis Gilmore - add aurora SPARC linux conditionals * Mon Aug 7 2006 Clark Williams - refactored conditional blocks for simplicity - bumped version to match mock * Mon Aug 7 2006 Clark Williams - 0.5-4 - added rhel build tags * Sun Aug 06 2006 Thorsten Leemhuis - 0.5-3 - For FC4 and FC3 include python * Thu Jun 22 2006 Paul Howarth - 0.5-2 - For FC < 5 or Red Hat Linux 9, include elfutils - For non-Fedora distrbutions, require redhat-release instead of fedora-release - For Red Hat Linux 8 and earlier, require fileutils instead of coreutils - Red Hat Linux 8 requires findutils for brp-strip