/usr/lib/rpm
NameSizeModeActions
macros.d/-0755rm
platform/-0755rm
redhat/-0755rm
brp-compress14660755editdlrm
brp-java-gcjcompile14010755editdlrm
brp-python-bytecompile30310755editdlrm
brp-strip4870755editdlrm
brp-strip-comment-note6960755editdlrm
brp-strip-shared6840755editdlrm
brp-strip-static-archive3890755editdlrm
check-buildroot12310755editdlrm
check-files6630755editdlrm
check-prereqs4180755editdlrm
check-rpaths10390755editdlrm
check-rpaths-worker50450755editdlrm
config.guess449410755editdlrm
config.sub344230755editdlrm
debugedit305440755editdlrm
desktop-file.prov4370755editdlrm
find-debuginfo.sh93580755editdlrm
find-lang.sh56210755editdlrm
find-provides15590755editdlrm
find-requires35050755editdlrm
fontconfig.prov4890755editdlrm
javadeps234000755editdlrm
libtooldeps.sh7070755editdlrm
macros434500644editdlrm
macros.perl5960644editdlrm
macros.php3130644editdlrm
macros.python9060644editdlrm
mkinstalldirs34950755editdlrm
mono-find-provides11050755editdlrm
mono-find-requires19140755editdlrm
ocaml-find-provides.sh18800755editdlrm
ocaml-find-requires.sh23540755editdlrm
osgideps.pl105910755editdlrm
perl.prov57760755editdlrm
perl.req79730755editdlrm
perldeps.pl329000644editdlrm
pkgconfigdeps.sh11710755editdlrm
pythondeps.sh8750755editdlrm
rpm.daily2840644editdlrm
rpm.log610644editdlrm
rpm.xinetd3190644editdlrm
rpm2cpio.sh12550755editdlrm
rpmdb_archive-0editdlrm
rpmdb_deadlock-0editdlrm
rpmdb_dump-0editdlrm
rpmdb_load-0editdlrm
rpmdb_loadcvt14670755editdlrm
rpmdb_printlog-0editdlrm
rpmdb_recover-0editdlrm
rpmdb_stat-0editdlrm
rpmdb_upgrade-0editdlrm
rpmdb_verify-0editdlrm
rpmdeps86160755editdlrm
rpmdiff239770755editdlrm
rpmdiff.cgi156740644editdlrm
rpmpopt-4.8.079200644editdlrm
rpmrc136980644editdlrm
tcl.req20690755editdlrm
tgpg9070755editdlrm
Edit: /usr/lib/rpm/tcl.req (2069B)
#!/usr/bin/perl # tcl.req - a simple makedepends like script for tcl. # I plan to rewrite this in C so that perl is not required by RPM at # build time. # by Ken Estes Mail.com kestes@staff.mail.com use File::Basename; if ("@ARGV") { foreach (@ARGV) { process_file($_); } } else { # notice we are passed a list of filenames NOT as common in unix the # contents of the file. foreach (<>) { process_file($_); } } foreach $module (sort keys %require) { print "tcl($module)\n"; } exit 0; sub process_file { my ($file) = @_; chomp $file; open(FILE, "<$file")|| die("$0: Could not open file: '$file' : $!\n"); while () { # Each keyword can appear multiple times. Don't # bother with datastructures to store these strings, # if we need to print it print it now. if ( m/^\s*\$RPM_Requires\s*=\s*["'](.*)['"]/i) { foreach $_ (spit(/\s+/, $1)) { print "$_\n"; } } s/\#.*//; # Each keyword can appear multiple times. Don't # bother with datastructures to store these strings, # if we need to print it print it now. if ( m/^\s*\$RPM_Requires\s*=\s*["'](.*)['"]/i) { foreach $_ (spit(/\s+/, $1)) print "$_\n"; } # we wish to capture these source statements: # source "$PATH/lib/util.tcl" # source "comconf.tcl" # if {[catch {source $env(CONTROL_PANEL_LIB_DIR)/bindings.tcl}] != 0} { # quick check to see if the complex regexps could possibly match. # This should speed things up. (m/source/) || next; # note we include parethesis and '$' and '\' in the pattern if ( (m!source\s+([\'\"])?([0-9A-Za-z/._\-\\\(\)\$]+)!) ) { my ($module) = $2; # If there is some interpolation of variables, # see if taking the basename will give us the filename. ($module =~ m/\$/) && ($module = basename($module)); ($module =~ m/\$/) || ($require{$module}=1); } } close(FILE)|| die("$0: Could not close file: '$file' : $!\n"); return ; }