1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

copr: ask rpm for source location

This commit is contained in:
Wez Furlong 2023-10-02 16:43:14 -07:00
parent 28cc6c8ac1
commit a306e6d8f9
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
3 changed files with 3 additions and 11 deletions

View File

@ -2,14 +2,8 @@
set -x
set -e
env
command -v git || dnf install -y git
if test -d /builddir/build ; then
COPR_BUILD_DIR=/builddir/build
fi
git config --global --add safe.directory $$PWD
git config --global --add safe.directory $$PWD/deps/freetype/freetype2
git config --global --add safe.directory $$PWD/deps/freetype/libpng

View File

@ -161,7 +161,7 @@ EOF
cat >> wezterm.spec <<EOF
BuildRequires: gcc gcc-g++ make rustc, cargo, fontconfig-devel, openssl-devel, libxcb-devel, libxkbcommon-devel, libxkbcommon-x11-devel, wayland-devel, mesa-libEGL-devel, xcb-util-devel, xcb-util-keysyms-devel, xcb-util-image-devel, xcb-util-wm-devel, git
Source0: /tmp/wezterm-${TAR_NAME}.tar.gz
Source0: wezterm-${TAR_NAME}.tar.gz
%global debug_package %{nil}
@ -230,7 +230,7 @@ EOF
if test -n "${COPR_SRPM}" ; then
/usr/bin/rpmbuild -bs --rmspec wezterm.spec --verbose
mv ~/rpmbuild/SRPMS/wezterm-${TAR_NAME}*.src.rpm "${COPR_SRPM}"/
mv $(rpm --eval '%{_srcrpmdir}')/wezterm-${TAR_NAME}*.src.rpm "${COPR_SRPM}"/
else
/usr/bin/rpmbuild -bb --rmspec wezterm.spec --verbose
fi

View File

@ -53,7 +53,5 @@ tar --delete \
gzip ${TAR_NAME}
if test -d ${COPR_SRPM} ; then
if test -d /builddir/build/SOURCES ; then
mv ${TAR_NAME}.gz /builddir/build/SOURCES/
fi
mv ${TAR_NAME}.gz $(rpm --eval '%{_sourcedir}')
fi