[Spice-devel] [PATCH spice-protocol v3 3/5] build-sys: Provide spec file during build

2019-10-22 Thread Frediano Ziglio
Having the RPM spec file produced by the build is helpful in different situation. Different tools like mock or code scanners accept source RPMs as input. Providing this file allows easily build of the source RPM (and binaries) using a simple command like $ rpmbuild -ta spice-protocol-.tar.bz

[Spice-devel] [PATCH spice-protocol v3 5/5] build-sys: Requires proper pkg-config for MingW

2019-10-22 Thread Frediano Ziglio
.pc files requires MingW version, not system one. Signed-off-by: Frediano Ziglio --- spice-protocol.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spice-protocol.spec.in b/spice-protocol.spec.in index 54aacfd..2fe940b 100644 --- a/spice-protocol.spec.in +++ b/spice-p

[Spice-devel] [PATCH spice-protocol v3 4/5] build-sys: Allows spec file to build MingW packages

2019-10-22 Thread Frediano Ziglio
Add MingW support. This allows to build MingW packages easily with a $ rpmbuild -ta spice-protocol-.tar.bz2 This is base on some work by Eduardo Lima adding MingW support to SPEC files. Part of dependencies, description and names came from Fedora SPEC file for mingw-spice-protocol package.

[Spice-devel] [PATCH spice-protocol v3 2/5] build-sys: Update URL in SPEC file

2019-10-22 Thread Frediano Ziglio
Use https instead of http, web server automatically redirects to secure version. Remove slash at the end, not needed. Signed-off-by: Frediano Ziglio --- spice-protocol.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spice-protocol.spec.in b/spice-protocol.spec.in

[Spice-devel] [PATCH spice-protocol v3 1/5] build-sys: Import spec file from Fedora

2019-10-22 Thread Frediano Ziglio
Will be used by next commits. The SPEC file will allow to an RPM from sources with a simple rpmbuild command. Package files are useful for easy deployment. This will also be used to provide automatic package build. This commit just contain a verbatim copy of upstream SPEC file to make easier to see

Re: [Spice-devel] [PATCH spice-protocol v2 1/5] build-sys: Import spec file from Fedora

2019-10-22 Thread Eduardo Lima (Etrunko)
On 10/21/19 11:10 AM, Frediano Ziglio wrote: Will be used by next commits. Would you mind to provide a mode detailed commit message explaining the reason why we need the spec file in the repository? Signed-off-by: Frediano Ziglio --- spice-protocol.spec.in | 173

Re: [Spice-devel] [PATCH spice-protocol v2 4/5] build-sys: Update URL in SPEC file

2019-10-22 Thread Frediano Ziglio
> > On 10/21/19 11:10 AM, Frediano Ziglio wrote: > > Use https instead of http, web server automatically redirects > > to secure version. > > Remove slash at the end, not needed. > > > > I think this can be squashed with the first patch in the series. > First patch is a verbatim copy of Fedor

Re: [Spice-devel] [PATCH spice-protocol v2 4/5] build-sys: Update URL in SPEC file

2019-10-22 Thread Eduardo Lima (Etrunko)
On 10/21/19 11:10 AM, Frediano Ziglio wrote: Use https instead of http, web server automatically redirects to secure version. Remove slash at the end, not needed. I think this can be squashed with the first patch in the series. Signed-off-by: Frediano Ziglio --- spice-protocol.spec.in | 4