Commit b9386372 authored by Mario Limonciello's avatar Mario Limonciello
Browse files

Copy RPMs into build root when done

parent 5a286f86
......@@ -20,17 +20,18 @@ mkdir -p $HOME/rpmbuild/SOURCES/
mv fwupd-$VERSION.tar.xz $HOME/rpmbuild/SOURCES/
#generate a spec file
rm -rf fwupd.spec
sed "s,#VERSION#,$VERSION,;
s,enable_tests 0,enable_tests 1,;
s,#BUILD#,1,;
s,#LONGDATE#,`date '+%a %b %d %Y'`,;
s,#ALPHATAG#,alpha,;
s,Source0.*,Source0:\tfwupd-$VERSION.tar.xz," \
contrib/fwupd.spec.in > fwupd.spec
contrib/fwupd.spec.in > build/fwupd.spec
#build RPM packages
rpmbuild -ba fwupd.spec
rpmbuild -ba build/fwupd.spec
#install RPM packages
dnf install -C -y $HOME/rpmbuild/RPMS/*/*.rpm
cp $HOME/rpmbuild/RPMS/*/*.rpm .
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment