Rpm setting owner to build user

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

 



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  <dciarniello@xxxxxxxxxxxxxxxxxxxxx> - 2.0.55-1
- Initial build.
=============================== CUT ============================

Thanks,
Dan.

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux