Skip to content

Instantly share code, notes, and snippets.

@awood
Created December 16, 2013 15:04
Show Gist options
  • Save awood/7988450 to your computer and use it in GitHub Desktop.
Save awood/7988450 to your computer and use it in GitHub Desktop.
A simple script to print out the spec file inside an SRPM.
#! /bin/sh
spec=$(rpm -qlp $1 | grep -E '\.spec$')
rpm2cpio $1 | cpio -i --to-stdout $spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment