adding extractspec

This commit is contained in:
tengel 2024-03-20 11:28:46 -05:00
parent 80ec529954
commit 1c081c603c

13
shell/extractspec.sh Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
#
# read all .src.rpm and extract the .spec
# bsdtar is part of libarchive (http://libarchive.org/)
#
# SPDX-License-Identifier: MIT
for RPM in ./*.src.rpm; do
VER=${RPM%.src.rpm}
bsdtar -xOf "${RPM}" \*.spec > "./${VER}.spec"
done
exit 0