Created
December 16, 2013 15:04
-
-
Save awood/7988450 to your computer and use it in GitHub Desktop.
A simple script to print out the spec file inside an SRPM.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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