kind: autotools
depends:
- core.bst
sources:
- kind: git
  url: upstream:nspr-hg
  track: NSPR_4_12_RTM
  ref: 996918a8942606b640279bcd69ef4fec18e28844
config:
  configure-commands:
  - |
    case "%{arch}" in
        x86_64|ppc64)
            EXTRA_ARGS="--enable-64bit";;
        *)
            EXTRA_ARGS="";;
    esac
    ./configure --prefix="%{prefix}" --sysconfdir=/etc --with-mozilla --with-pthreads $EXTRA_ARGS
