[Rpm-maint] Why does my requires line not work?

Jim Lynch jimlynch1 at gmail.com
Wed Mar 12 10:32:43 UTC 2008


I have the following (truncated) spec file:

Summary: GO fetch
Name: Local_GoFetch
Version: 1.42
Release: 1
Group: Application/Engineering
Source: http://
Requires: perl-suidperl expat perl-Crypt-SSLeay
Provides: perl(Local::GoFetch)

And rpmbuild looks like:

rpmbuild -bb Local_GoFetch.spec
Processing files: Local_GoFetch-1.42-1
Provides: perl(GoFetch) perl(Local::GoFetch)
Requires(rpmlib): rpmlib(CompressedFileNames) <=
3.0.4-1rpmlib(PayloadFilesHavePrefix) <=
4.0-1
Requires: /usr/bin/perl expat perl(DBI) perl(HTML::Parser)
perl(HTTP::Request::Common) perl(LWP::UserAgent) perl(Local::SDBS_base)
perl(Net::FTP) perl(POSIX) perl(Socket) perl(Sys::Hostname)
perl(Thread::Queue) perl(locale) perl(strict) perl(threads)
perl(threads::shared) perl(warnings) perl-Crypt-SSLeay perl-suidperl
Checking for unpackaged file(s): /usr/lib/rpm/check-files %{buildroot}
Wrote: /usr/src/redhat/RPMS/i386/Local_GoFetch-1.42-1.i386.rpm

And installing looks OK.

yum localinstall /usr/src/redhat/RPMS/i386/Local_GoFetch-1.42-1.i386.rpm
Setting up Local Package Process
Examining /usr/src/redhat/RPMS/i386/Local_GoFetch-1.42-1.i386.rpm:
Local_GoFetch - 1.42-1.i386
Marking /usr/src/redhat/RPMS/i386/Local_GoFetch-1.42-1.i386.rpm to be
installed
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package Local_GoFetch.i386 0:1.42-1 set to be updated
--> Running transaction check

But a spec file with
Requires perl(Local_GoFetch)>=1.42
 fails.

yum localinstall /usr/src/redhat/RPMS/i386/vamini-httpd-1.43-1.i386.rpm
Setting up Local Package Process
Examining /usr/src/redhat/RPMS/i386/vamini-httpd-1.43-1.i386.rpm:
vamini-httpd - 1.43-1.i386
Marking /usr/src/redhat/RPMS/i386/vamini-httpd-1.43-1.i386.rpm as an update
to vamini-httpd - 1-22.i386
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package vamini-httpd.i386 0:1.43-1 set to be updated
--> Running transaction check
Setting up repositories
Reading repository metadata in from local files
--> Processing Dependency: perl(Local::GoFetch)>=1.42 for package:
vamini-httpd
--> Processing Dependency: perl(Local::SDBS_base)>=1.38 for package:
vamini-httpd
--> Finished Dependency Resolution
Error: Missing Dependency: perl(Local::GoFetch)>=1.42 is needed by package
vamini-httpd
Error: Missing Dependency: perl(Local::SDBS_base)>=1.38 is needed by package
vamini-httpd
[root at devi03 minihttpd]# rpm -qa | grep Loca
perl-Local-SDBS_Base-1-16
perl(Local::SDBS_base)-1-16
Local_SDBS_base-1.42-1
Local::SDBS_base-1-16
perl(Local::SDBS_Base)-1-16
perl(Local::GoFetch)-1-18
Local_GoFetch-1.42-1

Do I have to have something more on my Provides: line in the GoFetch spec
file?

Thanks,
Jim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rpm.org/pipermail/rpm-maint/attachments/20080312/45383961/attachment-0001.htm 


More information about the Rpm-maint mailing list