mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-26 14:18:31 +00:00
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@redhat.com> Signed-off-by: Victor Toso <victortoso@redhat.com> Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
parent
b0891e4c79
commit
f79ad62a6d
@ -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
|
||||
|
||||
@ -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@redhat.com> - 0.14.0-1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user