1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 04:56:12 +03:00

copr: try another way to get Source available to build

This commit is contained in:
Wez Furlong 2023-10-02 16:27:51 -07:00
parent e0cb711180
commit 3265123169
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
2 changed files with 5 additions and 4 deletions

View File

@ -155,7 +155,7 @@ EOF
echo build
EOF
if test -d ${COPR_SRPM} ; then
if test -n "${COPR_SRPM}" ; then
TAR_NAME=$(git -c "core.abbrev=8" show -s "--format=%cd_%h" "--date=format:%Y%m%d_%H%M%S")
@ -228,7 +228,7 @@ install -Dm644 assets/wezterm-nautilus.py %{buildroot}/usr/share/nautilus-python
/etc/profile.d/*
EOF
if test -d ${COPR_SRPM} ; then
if test -n "${COPR_SRPM}" ; then
/usr/bin/rpmbuild -bs --rmspec wezterm.spec --verbose
mv ~/rpmbuild/SRPMS/wezterm-${TAR_NAME}*.src.rpm "${COPR_SRPM}"/
else

View File

@ -53,6 +53,7 @@ tar --delete \
gzip ${TAR_NAME}
if test -d ${COPR_SRPM} ; then
mkdir -p ~/rpmbuild/SOURCES
mv ${TAR_NAME}.gz /tmp/
if test -d /builddir/build/SOURCES ; then
mv ${TAR_NAME}.gz /builddir/build/SOURCES/
fi
fi