]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- left on AC-branch
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 22 May 2007 20:01:05 +0000 (20:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    find-java-prov.sh -> 1.4
    find-java-req.sh -> 1.12

find-java-prov.sh [deleted file]
find-java-req.sh [deleted file]

diff --git a/find-java-prov.sh b/find-java-prov.sh
deleted file mode 100755 (executable)
index b13a73b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-# This script reads filenames from STDIN and outputs any relevant provides
-# information that needs to be included in the package.
-#
-# Based on rpm-4.4.2/scripts/find-req.pl
-# Authors: Elan Ruusamäe <glen@pld-linux.org>
-
-export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
-
-cat > /dev/null
diff --git a/find-java-req.sh b/find-java-req.sh
deleted file mode 100755 (executable)
index 6d6106f..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# This script reads filenames from STDIN and outputs any relevant requires
-# information that needs to be included in the package.
-#
-# Based on rpm-4.4.2/scripts/find-req.pl
-# Authors: Elan Ruusamäe <glen@pld-linux.org>
-
-export PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
-
-javaclassversion() {
-       [ $# -gt 0 ] || return
-
-       local ver
-       classver=$(echo "$@" | xargs -r file | grep -o 'compiled Java class data, version [0-9.]*' | awk '{print $NF}' | sort -u)
-       [ "$classver" ] || return
-       for v in $classver; do
-               echo "java(ClassDataVersion) >= $v"
-       done
-}
-
-javajarversion() {
-       local jar="$1"
-
-       # check only files, symlinks could point outside buildroot
-       [ -f "$jar" -a ! -L "$jar" ] || return
-
-#      echo >&2 "find java requires: ${jar#$RPM_BUILD_ROOT}"
-
-       tmp=$(mktemp -d)
-       unzip -q -d $tmp $jar >&2
-       javaclassversion $(find $tmp -type f -name '*.class')
-       rm -rf $tmp
-}
-
-FILES=$(cat -)
-
-find_requires() {
-       for file in $FILES; do
-               case $file in
-               *.jar)
-                       javajarversion "$file"
-               ;;
-               *.class)
-                       javaclassversion "$file"
-               ;;
-               esac
-       done
-}
-
-find_requires | sort -u
This page took 0.065429 seconds and 4 git commands to generate.