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 - 0.14.0-1