[Spice-devel] [PATCH 1/3] Add copr Makefile
Snir Sheriber
ssheribe at redhat.com
Mon Feb 25 14:56:45 UTC 2019
---
.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)
--
2.19.1
More information about the Spice-devel
mailing list