Re: [PATCH 1/3] Add copr Makefile

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

 



ping


On 2/25/19 4:56 PM, Snir Sheriber 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
+
+	# get dependencies
+	dnf install -y `grep BuildRequires\: spice-streaming-agent.spec.in | awk '{$$1=""; print $$0}' | sed "s/\bspice-protocol\b// ; s/>.*//" | tr -s "\n" " "`
+	# build this project
+	PKG_CONFIG_PATH=/usr/local/share/pkgconfig ./autogen.sh
+
+	# create source rpm
+	sed -i -E "s/(^Release:[[:space:]]*)([^%]*)/\1`date +'%Y%m%d%H%M.spice.nigthly'`/" spice-streaming-agent.spec
+	make dist
+	md5sum *tar* | head -n1 > "sources"
+	fedpkg --release "epel7" --path . srpm
+	cp *src.rpm $(outdir)
_______________________________________________
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]