hi,
I am building rpm for apache on redhat7. Rpm builds
the apache rpm successfulyy but when i try to install
taht rom i get the following error:
rpm -ivh ../RPMS/i386/apache-1.3.17-0.i386.rpm
error: failed dependencies:
/usr/local/bin/perl5 is needed by apache-1.3.17-0
and when uninstalling:
rpm -e apache-1.3.17-0
error: "apache-1.3.17-0" specifies multiple packages
Here is my spec files:
---------------------------------------------------
%define apachedir=$RPM_BUILD_DIR/usr/local/apache
%define version 1.3.17
%define destination /apps/apache/redhat_7/i386
%define user apache
%define packagename apache_1.3.17
Summary: The most widely used Web server on the
Internet.
Name: apache
Version: %{version}
Release: 0
Group: System Environment/Daemons
Source:
ftp://ftp.apache.org/apache/dist/apache_1.3.17.tar.gz
Copyright: Freely distributable and usable
Packager: Kapil Sharma <[EMAIL PROTECTED]>
BuildPrereq: perl
Requires: /usr/bin/perl
Provides: webserver
%description
Apache is a powerful, full-featured, efficient and
freely-available
Web server. Apache is also the most popular Web server
on the
Internet.
%prep
if "(`cat /etc/passwd |grep apache`) ne "apache")";
then
/usr/sbin/useradd %(user)
fi
rm -fr %{destination}/%{packagename}
%setup -n %{packagename}
cp -r $RPM_BUILD_DIR/%{packagename} %{destination}
%files
%attr(755,apache,apache) %{destination}/%{packagename}
#%attr(755,apache,apache)
%clean
rm -fr $RPM_BUILD_ROOT
-------------------------------------------
I only want to package my existing compiled files. I
don't want to build the apache on the fly.
Please help
kapil
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list