diff --git a/spice.spec b/spice.spec index 92bd7038002993b894052aa953ef7abdcb9ee781..1a25f5d66c20b6ea3f52fd14deef66db478e85f3 100644 --- a/spice.spec +++ b/spice.spec @@ -1,4 +1,6 @@ -%define anolis_release 1 +%define anolis_release 2 +%define configure_client --disable-client + Name: spice Version: 0.15.1 @@ -6,30 +8,23 @@ Release: %{anolis_release}%{?dist} Summary: Implements the SPICE protocol License: LGPLv2+ URL: http://www.spice-space.org/ -Source0: http://www.spice-space.org/download/releases/%{name}-%{version}.tar.bz2 -Source1: http://www.spice-space.org/download/releases/%{name}-%{version}.tar.bz2.sig +Source0: ${url}/download/releases/%{name}-%{version}.tar.bz2 +Source1: ${url}/download/releases/%{name}-%{version}.tar.bz2.sig Source2: victortoso-E37A484F.keyring -BuildRequires: make -BuildRequires: gcc gcc-c++ -BuildRequires: pkgconfig +BuildRequires: make gcc > 12.0 gcc-c++ pkgconfig git-core gnupg2 BuildRequires: glib2-devel >= 2.22 BuildRequires: spice-protocol >= 0.14.0 -BuildRequires: opus-devel -BuildRequires: pixman-devel openssl-devel libjpeg-devel +BuildRequires: opus-devel pixman-devel openssl-devel libjpeg-devel BuildRequires: libcacard-devel cyrus-sasl-devel -BuildRequires: lz4-devel BuildRequires: gstreamer1-devel gstreamer1-plugins-base-devel -BuildRequires: orc-devel -BuildRequires: gnupg2 -BuildRequires: git-core +BuildRequires: orc-devel lz4-devel %description -The Simple Protocol for Independent Computing Environments (SPICE) is -a remote display system built for virtual environments which allows -you to view a computing 'desktop' environment not only on the machine -where it is running, but from anywhere on the Internet and from a wide -variety of machine architectures. +The SPICE project aims to provide a complete open source solution for +remote access to virtual machines in a seamless way so you can play +videos, record audio, share usb devices and share folders without +complications. %package server @@ -37,12 +32,6 @@ Summary: Implements the server side of the SPICE protocol Obsoletes: spice-client < %{version}-%{release} %description server -The Simple Protocol for Independent Computing Environments (SPICE) is -a remote display system built for virtual environments which allows -you to view a computing 'desktop' environment not only on the machine -where it is running, but from anywhere on the Internet and from a wide -variety of machine architectures. - This package contains the run-time libraries for any application that wishes to be a SPICE server. @@ -52,9 +41,8 @@ Requires: %{name}-server = %{version}-%{release} Requires: pkgconfig %description server-devel -This package contains the header files, static libraries and development -documentation for spice-server. If you like to develop programs -using spice-server, you will need to install spice-server-devel. +The %{name}-devel package provides headers and development libraries +needed to develop programs that use %{name}. %prep @@ -62,9 +50,14 @@ gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %autosetup -S git_am %build -%define configure_client --disable-client -%configure --enable-smartcard --disable-client --enable-lz4 --enable-gstreamer=1.0 --disable-celt051 --disable-werror -make %{?_smp_mflags} WARN_CFLAGS='' V=1 +%configure \ + --enable-smartcard \ + --disable-client \ + --enable-lz4 \ + --enable-gstreamer=1.0 \ + --disable-celt051 \ + --disable-werror +%make_build %install make DESTDIR=%{buildroot} install @@ -73,11 +66,12 @@ rm -f %{buildroot}%{_libdir}/libspice-server.la mkdir -p %{buildroot}%{_libexecdir} %ldconfig_scriptlets server + %generate_compatibility_deps %files server -%dir %{abidir} %license COPYING +%dir %{abidir} %{_libdir}/libspice-server.so.1* %{abidir}/libspice-server.dump @@ -87,6 +81,9 @@ mkdir -p %{buildroot}%{_libexecdir} %{_libdir}/pkgconfig/spice-server.pc %changelog +* Tue Apr 11 2023 Ziyang Zhang -0.15.1-2 +- Optimize spec file + * Wed Mar 1 2023 Heng Qi - 0.15.1-1 - Update to 0.15.1