diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-01-08 22:25:05 -0800 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-01-08 22:25:05 -0800 |
commit | 914e1367fedee0820e6fc37b4b014c1ba19ee9f4 (patch) | |
tree | 060e0030b22a8f10ee7b3abe5e339cffb74203a7 | |
parent | 4f25546d39c301a0c782d0e53244592c1bf259d6 (diff) | |
download | specs-914e1367fedee0820e6fc37b4b014c1ba19ee9f4.tar.gz specs-914e1367fedee0820e6fc37b4b014c1ba19ee9f4.tar.xz specs-914e1367fedee0820e6fc37b4b014c1ba19ee9f4.zip |
rust/pkg.sh: support patching metadata
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rwxr-xr-x | rust/pkg.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rust/pkg.sh b/rust/pkg.sh index 834b81a..8aecd1d 100755 --- a/rust/pkg.sh +++ b/rust/pkg.sh @@ -5,8 +5,11 @@ set -o nounset set -o pipefail CRATE=$1 +shift -rust2rpm -s ${CRATE} +rust2rpm -s $@ ${CRATE} mv ${CRATE}*.crate ~/rpmbuild/SOURCES/ +PATCH=${CRATE}-fix-metadata.diff +[ -f ${PATCH} ] && mv ${PATCH} ~/rpmbuild/SOURCES/ rpmbuild -bs rust-${CRATE}.spec mock --chain --localrepo=./repo/ ~/rpmbuild/SRPMS/rust-${CRATE}*.src.rpm |