File spice.spec of Package spice
#
# spec file for package spice
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define realname spice
%define realver 0.12.0
%define srcext tar.bz2
# Common info
Name: spice
Version: %realver
Release: 0
Url: http://www.spice-space.org/
Summary: SPICE client and server library
License: LGPL-2.1+
Group: Productivity/Networking/Other
# Install-time parameters
Requires: celt051
# Build-time parameters
BuildRequires: alsa-devel
BuildRequires: celt051-devel
BuildRequires: cyrus-sasl-devel
BuildRequires: gcc-c++
%if 0%{?suse_version} >= 1220
BuildRequires: libcacard-devel
%endif
BuildRequires: libjpeg-devel
BuildRequires: libopenssl-devel
BuildRequires: libpixman-1-0-devel >= 0.17.7
BuildRequires: pkg-config
BuildRequires: python-pyparsing
BuildRequires: spice-protocol-devel >= 0.10.1
BuildRequires: xorg-x11-devel
BuildRequires: xorg-x11-libXfixes-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{realname}-%{realver}%{?extraver}.%{srcext}
Patch1: spice-glibc217.patch
ExclusiveArch: %ix86 x86_64
%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.
Authors:
--------
Qumranet
%package -n spice-client
Summary: SPICE client
Group: Productivity/Networking/Other
%description -n spice-client
The SPICE client provides access to a remote machine's display and devices.
Authors:
--------
Qumranet
%package -n libspice-server1
Summary: Library for SPICE-server
Group: Productivity/Networking/Other
%description -n libspice-server1
Library for SPICE-server
The SPICE server is used to expose a remote machine's display
and devices.
Authors:
--------
Qumranet
%package -n libspice-server-devel
Summary: Development files for building SPICE-server
Group: Development/Languages/C and C++
Requires: libspice-server1 = %{version}
%description -n libspice-server-devel
Development files for building SPICE-server.
The SPICE server is used to expose a remote machine's display
and devices.
Authors:
--------
Qumranet
# Preparation step (unpacking and patching if necessary)
%prep
%setup -q -n %{realname}-%{realver}%{?extraver}
%patch1 -p1
%build
%configure \
--disable-static \
%if 0%{?suse_version} < 1220
--disable-smartcard
%endif
LDFLAGS="-Wl,--as-needed -Wl,--strip-all"
%__make %{?_smp_mflags}
%install
%makeinstall DESTDIR=%{buildroot}
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files -n spice-client
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/spicec
%files -n libspice-server1
%defattr(-,root,root)
%{_libdir}/libspice-server.so.*
# Development stuff
%files -n libspice-server-devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/spice-server.pc
%dir %{_includedir}/spice-server
%{_includedir}/spice-server/*
%exclude %{_libdir}/libspice-server.la
%{_libdir}/libspice-server.so
%post -n libspice-server1 -p /sbin/ldconfig
%postun -n libspice-server1 -p /sbin/ldconfig
%changelog