Re: [PATCH 1/3] Add copr Makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/26/19 7:40 PM, Frediano Ziglio wrote:
---
  .copr/Makefile | 21 +++++++++++++++++++++
  1 file changed, 21 insertions(+)
  create mode 100644 .copr/Makefile

diff --git a/.copr/Makefile b/.copr/Makefile
new file mode 100644
index 0000000..53b1b1b
--- /dev/null
+++ b/.copr/Makefile
@@ -0,0 +1,21 @@
+PROTOCOL_GIT_REPO = https://gitlab.freedesktop.org/spice/spice-protocol
+BUILD = make automake autoconf autoconf-archive libtool xz gcc-c++ fedpkg
+
+srpm:
+	dnf install -y $(BUILD)
+
+	# get upstream spice protocol
+	git clone $(PROTOCOL_GIT_REPO)
+	cd spice-protocol ; ./autogen.sh ; make install

I would use && to avoid ignoring error and a /usr prefix:

	cd spice-protocol && ./autogen.sh --prefix=/usr && make install

You need root permissions to be able to install under /usr

Does copr builder run as root ?

Uri
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]