spice/spice.spec
2019-11-06 19:53:09 +08:00

78 lines
2.4 KiB
RPMSpec

Name: spice
Version: 0.14.1
Release: 1
Summary: Implements the SPICE protocol
Group: User Interface/Desktops
License: LGPLv2+
URL: https://www.spice-space.org/
Source0: https://www.spice-space.org/download/releases/%{name}-%{version}.tar.bz2
Source1: https://www.spice-space.org/download/releases/%{name}-%{version}.tar.bz2.sign
Source2: cfergeau-29AC6C82.keyring
Patch1: 0001-memslot-Fix-off-by-one-error-in-group-slot-boundary-.patch
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64
BuildRequires: gcc pkgconfig glib2-devel spice-protocol opus-devel git-core gnupg2
BuildRequires: pixman-devel openssl-devel libjpeg-devel libcacard-devel cyrus-sasl-devel
BuildRequires: lz4-devel gstreamer1-devel gstreamer1-plugins-base-devel orc-devel
%description
The SPICE package provides the SPICE server library and client.
These components are used to provide access to a remote machine's
display and devices.
%package server
Summary: Implements the server side of the SPICE protocol
Obsoletes: spice-client < %{version}-%{release}
%description server
This package contains the run-time libraries for any application that wishes
to be a SPICE server and is used to expose a remote machine's display and devices.
%package server-devel
Summary: Header files and development files for %{name}-server
Requires: %{name}-server pkgconfig
%description server-devel
The %{name}-server-devel package contains static libraries and header files for
developing applications that use %{name}-server.
%package_help
%prep
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
%autosetup -n %{name}-%{version} -p1
%build
%define configure_client --disable-client
%configure --enable-smartcard --disable-client --enable-lz4 --enable-gstreamer=1.0 --disable-celt051
%make_build WARN_CFLAGS='' V=1
%install
make DESTDIR=%{buildroot} install
%delete_la_and_a
install -d %{buildroot}%{_libexecdir}
%ldconfig_scriptlets server
%files server
%defattr(-,root,root)
%license COPYING
%{_libdir}/libspice-server.so.*
%files server-devel
%defattr(-,root,root)
%{_includedir}/spice-server/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libspice-server.so
%files help
%defattr(-,root,root)
%doc README NEWS
%changelog
* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.14.0-6
- Package init