Why not ask all of your rpm questions on the rpm list... that's what
it's there for...

On Tue, 6 Feb 2001, Kapil Sharma spewed into the bitstream:

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

--
Chuck Mead, chuck -AT- moongroup.com, Owner, MoonGroup.com 
(Note: html formatted email sent to me is filtered & deleted unread)
GnuPG Public Key Available: http://wwwkeys.us.pgp.net



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to