# This hack (taken from rpmdb-redhat) is needed for building alternative # platform databases on a single arch using rpm's --target flag %define basedir /home/centos/u4build/i386-disc1/RedHat/base %define _arch %{_target_cpu} Summary: Comps file and header lists for the CentOS Linux distribution Name: comps Version: 3.4centos.0 Release: 0.20040916 License: GPL Group: Development/System BuildRoot: %{_tmppath}/%{name}-%{_arch}-root %description %prep [ -d %{basedir} ] || { echo "This specfile needs access to %{basedir}" exit 1 } [ -f %{basedir}/comps.xml ] && [ -f %{basedir}/hdlist ] && [ -f %{basedir}/hdlist2 ] || { echo "This specfile needs access to the comps file and header lists" exit 1 } %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/share/comps/%{_arch} install -m 644 %{basedir}/comps.xml $RPM_BUILD_ROOT/usr/share/comps/%{_arch}/ install -m 644 %{basedir}/hdlist $RPM_BUILD_ROOT/usr/share/comps/%{_arch}/ install -m 644 %{basedir}/hdlist2 $RPM_BUILD_ROOT/usr/share/comps/%{_arch}/ # this is kind of ugly... install -m 644 %{basedir}/../../../i386/.discinfo $RPM_BUILD_ROOT/usr/share/comps/%{_arch}/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /usr/share/comps %changelog * Tue Jul 23 2002 Jeremy Katz - Initial build.