File spice-protocol.spec of Package spice-protocol

#
# spec file for package spice-protocol
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           spice-protocol
Version:        0.14.4
Release:        0
Summary:        SPICE-protocol definitions
License:        BSD-3-Clause
Group:          Development/Languages/C and C++
URL:            https://www.spice-space.org/
Source:         https://www.spice-space.org/download/releases/spice-protocol-%{version}.tar.xz
Source1:        https://www.spice-space.org/download/releases/spice-protocol-%{version}.tar.xz.sig
Source2:        %{name}.keyring
BuildRequires:  meson >= 0.41.0
BuildRequires:  pkgconfig
Requires:       python-pyparsing
Requires:       python-six
BuildArch:      noarch

%description
Headers defining the SPICE-protocol

%package devel
Summary:        SPICE-protocol definitions
Group:          Development/Languages/C and C++

%description devel
Headers defining the SPICE-protocol

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install
# drop the libdir= entry from the .pc file. It's irrelevant for a arch-independent file
sed -i "/libdir=/d" %{buildroot}%{_datadir}/pkgconfig/spice-protocol.pc

%files devel
%license COPYING
%doc CHANGELOG.md README.md
%{_datadir}/pkgconfig/spice-protocol.pc
%{_includedir}/spice-1/

%changelog
openSUSE Build Service is sponsored by
OSZAR »