adding extractspec
This commit is contained in:
parent
80ec529954
commit
1c081c603c
1 changed files with 13 additions and 0 deletions
13
shell/extractspec.sh
Executable file
13
shell/extractspec.sh
Executable 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue