Best practices wrt. Changelog entries in spec file (upstream vs. specfile)

Jason L Tibbitts III tibbs at math.uh.edu
Fri May 5 15:48:45 UTC 2006


After a few minutes, here's a hack.  You need yum-utils installed to
get yumdownloader.  Please don't blame me if this sucks.

#!/bin/sh -x
DIR=yumlook.$$.$RANDOM

PKG=$1

FILE=`pwd`/$1

cd /tmp
mkdir $DIR
pushd $DIR

yumdownloader $PKG

# Should only be one file in this directory

rpm2cpio $PKG* | cpio --quiet --no-absolute-filenames -idmv 2>&1

$SHELL
popd
rm -rf /tmp/$DIR

For grins, here's another hack that works on local files and needs
nothing (save RPM) installed:

DIR=rpmlook.$$.$RANDOM
FILE=`pwd`/$1

cd /tmp
mkdir $DIR

pushd /tmp/$DIR
rpm2cpio "$FILE" | cpio --quiet --no-absolute-filenames -idmv 2>&1

$SHELL
popd
rm -rf /tmp/$DIR

 - J<




More information about the fedora-extras-list mailing list