spec work

This commit is contained in:
Jonathan Campbell
2018-02-16 16:45:02 -08:00
parent 6fc64b80c9
commit 68a61caf42
3 changed files with 9 additions and 8 deletions

8
make-rpm.sh.in Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
tar="@PACKAGE_NAME@-@PACKAGE_VERSION@.tar.xz"
tar -cvJf "$tar" --exclude=\*.git --exclude=\*.tar.gz --exclude=\*.o -C .. dosbox-x || exit 1
cp -vf "$tar" ~/rpmbuild/SOURCES/ || exit 1
rpmbuild -ba dosbox-x.spec || exit 1
rm -v "$tar" || exit 1