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