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:
parent
e0cb711180
commit
3265123169
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user