[Spice-commits] .gitlab-ci.yml spice-protocol.spec
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Mar 12 15:14:55 UTC 2020
.gitlab-ci.yml | 1 +
spice-protocol.spec | 36 ++++++++++++++++++++++++++++++++++--
2 files changed, 35 insertions(+), 2 deletions(-)
New commits:
commit f79ad62a6d73b5684bd375997f9885cb144b52e4
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Mon Mar 9 19:12:06 2020 +0000
build-sys: Allows spec file to build MingW packages
Add MingW support. This allows to build MingW packages easily with a
$ rpmbuild -ta spice-protocol-XXXX.tar.xz
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.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Signed-off-by: Victor Toso <victortoso at redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 12c18d6..0e4d483 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,7 @@ variables:
DEPS_COMMON: git gcc redhat-rpm-config
meson ninja-build gtk-doc glib2-devel
gettext gettext-devel bzip2 rpmlint rpm-build
+ mingw32-filesystem mingw64-filesystem
before_script:
- dnf install -y $DEPS_COMMON
diff --git a/spice-protocol.spec b/spice-protocol.spec
index 79ceaaa..8d42276 100644
--- a/spice-protocol.spec
+++ b/spice-protocol.spec
@@ -8,11 +8,28 @@ URL: https://www.spice-space.org
Source0: https://www.spice-space.org/download/releases/%{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: meson gcc
+BuildRequires: mingw32-filesystem >= 95
+BuildRequires: mingw64-filesystem >= 95
-%description
-Header files describing the spice protocol
+%define desc Header files describing the spice protocol \
and the para-virtual graphics card QXL.
+%description
+%{desc}
+
+%package -n mingw32-spice-protocol
+Summary: %{summary}
+Requires: mingw32-pkg-config
+
+%description -n mingw32-spice-protocol
+%{desc}
+
+%package -n mingw64-spice-protocol
+Summary: %{summary}
+Requires: mingw64-pkg-config
+
+%description -n mingw64-spice-protocol
+%{desc}
%prep
%setup -q
@@ -21,8 +38,13 @@ and the para-virtual graphics card QXL.
%meson
%meson_build
+%mingw_meson
+%mingw_ninja
+
+
%install
%meson_install
+%mingw_ninja_install
%files
@@ -30,6 +52,16 @@ and the para-virtual graphics card QXL.
%{_includedir}/spice-1
%{_datadir}/pkgconfig/spice-protocol.pc
+%files -n mingw32-spice-protocol
+%doc COPYING CHANGELOG.md
+%{mingw32_includedir}/spice-1
+%{mingw32_datadir}/pkgconfig/spice-protocol.pc
+
+%files -n mingw64-spice-protocol
+%doc COPYING CHANGELOG.md
+%{mingw64_includedir}/spice-1
+%{mingw64_datadir}/pkgconfig/spice-protocol.pc
+
%changelog
* Fri Apr 12 2019 Victor Toso <victortoso at redhat.com> - 0.14.0-1
More information about the Spice-commits
mailing list