RPM query.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

I have an RPM spec file that I have taken from a RHEL Summit PDF.  On RHEL 5 this SPEC file builds ok. However when I try to build this RPM on RHEL 6 the build fails. Was there a change between RHEL5 & RHEL6 in the RPM build environment. I have attached my SPEC file and rpmbuild output below. Would appreciate if anyone can see what is missing ? 

Thanks

My SPEC file taken direct from doc.

Summary: My Company general configuration RPM
Name: config
Version: 1
Release: 1
License: Copyright 2010, My Company, Inc.
Group: MyCompany/Configs
Packager: Packager Name <my-email@xxxxxxxxxxxxx>
BuildArch: noarch
Source: %{name}-%{version}.tgz
BuildRoot: %{_builddir}/%{name}-%{version}
%description
This RPM provides config files for My Company.
%prep
%setup
%files
%config(noreplace) %attr(644,root,root) /etc/ntp.conf


RHEL6 rpmbuild output.

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7AXZ3w
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf config-1
+ /bin/tar -xvvf -
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/config-1.tgz
drwxr-xr-x root/root         0 2012-06-20 14:20 config-1/
drwxr-xr-x root/root         0 2012-06-20 14:20 config-1/etc/
-rw-r--r-- root/root        64 2012-06-20 14:20 config-1/etc/ntp.conf
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd config-1
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Processing files: config-1-1.noarch
error: File not found: /root/rpmbuild/BUILDROOT/config-1-1.x86_64/etc/ntp.conf


RPM build errors:
    File not found: /root/rpmbuild/BUILDROOT/config-1-1.x86_64/etc/ntp.conf
 		 	   		  
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux