PATH:
usr
/
lib
/
rpm
#!/bin/bash [ $# -ge 1 ] || { cat > /dev/null exit 0 } case $1 in -P|--provides) shift # Match buildroot/payload paths of the form # /PATH/OF/BUILDROOT/usr/bin/pythonMAJOR.MINOR # generating a line of the form # python(abi) = MAJOR.MINOR # (Don't match against -config tools e.g. /usr/bin/python2.6-config) grep "/usr/bin/python.\..$" \ | sed -e "s|.*/usr/bin/python\(.\..\)|python(abi) = \1|" ;; -R|--requires) shift # Match buildroot paths of the form # /PATH/OF/BUILDROOT/usr/lib/pythonMAJOR.MINOR/ and # /PATH/OF/BUILDROOT/usr/lib64/pythonMAJOR.MINOR/ # generating (uniqely) lines of the form: # python(abi) = MAJOR.MINOR grep "/usr/lib[^/]*/python.\../.*" \ | sed -e "s|.*/usr/lib[^/]*/python\(.\..\)/.*|python(abi) = \1|g" \ | sort | uniq ;; esac exit 0
[-] perl.req
[edit]
[-] brp-strip-comment-note
[edit]
[-] check-rpaths-worker
[edit]
[-] macros
[edit]
[-] macros.perl
[edit]
[-] python-macro-helper
[edit]
[-] macros.php
[edit]
[-] script.req
[edit]
[-] rpmdeps
[edit]
[+]
fileattrs
[-] pkgconfigdeps.sh
[edit]
[-] rpm.supp
[edit]
[+]
platform
[-] brp-compress
[edit]
[-] ocaml-find-provides.sh
[edit]
[-] metainfo.prov
[edit]
[-] debugedit
[edit]
[-] rpmrc
[edit]
[-] check-files
[edit]
[-] check-buildroot
[edit]
[-] brp-strip-shared
[edit]
[-] brp-python-bytecompile
[edit]
[-] ocaml-find-requires.sh
[edit]
[-] brp-strip
[edit]
[-] mono-find-provides
[edit]
[-] tgpg
[edit]
[-] rpm.daily
[edit]
[-] pythondeps.sh
[edit]
[-] find-debuginfo.sh
[edit]
[-] elfdeps
[edit]
[+]
..
[-] desktop-file.prov
[edit]
[-] debuginfo.prov
[edit]
[-] brp-java-gcjcompile
[edit]
[-] brp-strip-static-archive
[edit]
[-] perl.prov
[edit]
[-] mkinstalldirs
[edit]
[-] fontconfig.prov
[edit]
[-] find-provides
[edit]
[-] libtooldeps.sh
[edit]
[-] mono-find-requires
[edit]
[-] macros.python
[edit]
[-] pythondistdeps.py
[edit]
[-] brp-python-hardlink
[edit]
[-] rpmdb_loadcvt
[edit]
[-] check-rpaths
[edit]
[-] find-requires
[edit]
[-] rpm2cpio.sh
[edit]
[+]
macros.d
[-] rpmpopt-4.14.2.1
[edit]
[-] sepdebugcrcfix
[edit]
[-] find-lang.sh
[edit]
[-] check-prereqs
[edit]