PATH:
usr
/
lib
/
rpm
#!/bin/sh # If using normal root, avoid changing anything. [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ] && exit 0 # If we are a noarch package, avoid changing anything. [ "$RPM_ARCH" = "noarch" ] && exit 0 # If we don't have the required executables, avoid changing anything. gcj=${1:-/usr/bin/gcj} [ ! -x "$gcj" -o ! -x "$gcj-dbtool" ] && exit 0 # Now get to work... libdir="/usr/lib" # XXX need to sed this in or something dbdir=`gcj-dbtool -p "$libdir"`.d/"$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION" cflags="$RPM_OPT_FLAGS -fPIC -findirect-dispatch" ldflags="-Wl,-Bsymbolic" # XXX make it so you can override the list, for mx4j et al. find "$RPM_BUILD_ROOT" -type f -name "*.?ar" | while read jar ; do [ `head -c 2 "$jar"` != "PK" ] && continue [ -d "$RPM_BUILD_ROOT/$libdir" ] || mkdir -p "$RPM_BUILD_ROOT/$libdir" bnjar=`basename "$jar"` lib="$libdir/lib$bnjar.so" [ -f "$RPM_BUILD_ROOT/$lib" ] && continue # XXX need splits to handle #158308 # (til then we can just compile big ones ourselves) echo "$PS4$gcj -shared $cflags $ldflags -o $lib $jar" $gcj -shared $cflags $ldflags -o "$RPM_BUILD_ROOT/$lib" "$jar" [ -d "$RPM_BUILD_ROOT/$dbdir" ] || mkdir -p "$RPM_BUILD_ROOT/$dbdir" db="$dbdir/$bnjar.db" [ -f "$RPM_BUILD_ROOT/$db" ] && exit 1 $gcj-dbtool -n "$RPM_BUILD_ROOT/$db" 64 $gcj-dbtool -f "$RPM_BUILD_ROOT/$db" "$jar" "$lib" done
[-] 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]