[Spice-devel] [PATCH 1/3] Add copr Makefile

Uri Lublin uril at redhat.com
Tue Feb 26 18:01:18 UTC 2019


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


More information about the Spice-devel mailing list