Rpm setting owner to build user

Dan Ciarniello <[email protected]>
Newsgroups gmane.linux.redhat.rpm.general
Message-ID <[email protected]>
I am trying to build an RPM for apache.  When I install the package, RPM 
insists on setting the owner of the files to that of the build user 
rather than the user specified in the spec file.  I have created a 
couple of other RPMs that don't have this problem so I don't understand 
why this is happening.  Does anyone know why this might be happening?  
Here's the spec file that I'm using:

=============================== CUT ============================
%define targetdir apache2
Summary: Apache Web Server
Name: httpd
Version: 2.0.55
Release: 1
License: Apache Software License
Group: System Environment/Daemons
Source0: httpd-2.0.55.tar.gz
Source1: httpd.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Apache Web Server

%prep
%setup -q

%build
./configure --enable-ssl=shared --enable-so --with-ldap --enable-ldap 
--enable-auth-ldap
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

mkdir -p $RPM_BUILD_ROOT/etc/profile.d
install -m644 -p $RPM_SOURCE_DIR/httpd.sh $RPM_BUILD_ROOT/etc/profile.d

%post

%clean
rm -rf $RPM_BUILD_ROOT


%files
/usr/local/%{targetdir}
/etc/profile.d/httpd.sh
%defattr(-,root,root,-)
%doc


%changelog
* Thu Nov  8 2007  <[email protected]> - 2.0.55-1
- Initial build.
=============================== CUT ============================

Thanks,
Dan.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.