[Spice-devel] [PATCH 1/3] Add copr Makefile
Snir Sheriber
ssheribe at redhat.com
Tue Aug 6 06:58:43 UTC 2019
Hi,
On 8/5/19 7:11 PM, Frediano Ziglio wrote:
> Hi Snir,
> there were some notes at
> https://patchwork.freedesktop.org/patch/288568/?series=57199&rev=1
> and
> https://patchwork.freedesktop.org/patch/288569/?series=57199&rev=1
This patch [2/3] is not needed we pushed another one which
extracts the deps from the spec file.
> some not addressed.
> Also patch #3 was merged, maybe would be worth to send an updated
> version.
> (series at https://patchwork.freedesktop.org/series/57199/)
Yes, sorry, i pinged the wrong one, there's v2, I'll ping it now.
>
> We already have Copr set up for SPICE server. How would you like to
> proceed? Move all to Gitlab? How is the integration with SPICE server?
Yes we do, and it's generated from a script running in a vm
when we push to spice-server's git repo
The idea is to drop the necessity of a vm that generates the copr builds.
In order to this in spice server we need to add the copr makefile and
also it's better to have the spec file inside the repo.
> You referred to a hook to setup on Gitlab, which systems are you
> going to use? Fedora Copr I imagine.
Yes, Fedora Copr, gitlab and that's it.
The way it works is you configure gitlab (in gitlab project
settings->integration)
to trigger the copr repo webhook link with every push (this will trigger
a build
in copr, this build is based on srpm created by the .copr/Makefile script)
Snir.
> Frediano
>
>> 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 at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/spice-devel
More information about the Spice-devel
mailing list