]> git.pld-linux.org Git - packages/spice-gtk.git/blobdiff - spice-gtk.spec
- updated to 0.42
[packages/spice-gtk.git] / spice-gtk.spec
index cb4a30e3ce01b359c511f96bec0dc086b26f41ac..cbf34a0616e82d7a2824ee3cb05e8f7e8e36541d 100644 (file)
@@ -1,42 +1,69 @@
+#
+# Conditional build:
+%bcond_without smartcard       # Smartcard support
+%bcond_without usbredir        # USB redirection
+%bcond_with    valgrind        # Valgrind tracing support
+
 Summary:       A GTK+ client and libraries for SPICE remote desktop servers
 Summary(pl.UTF-8):     Klient i biblioteki GTK+ dla serwerów zdalnych pulpitów SPICE
 Name:          spice-gtk
-Version:       0.7
-Release:       2
+Version:       0.42
+Release:       1
 License:       LGPL v2.1+
 Group:         X11/Applications
-Source0:       http://spice-space.org/download/gtk/%{name}-%{version}.tar.bz2
-# Source0-md5: a47ca51ef4bb27cab35ddbfb9e6c0fff
-Patch0:                %{name}-sh.patch
-URL:           http://spice-space.org/
-BuildRequires: autoconf >= 2.57
-BuildRequires: automake
+Source0:       https://www.spice-space.org/download/gtk/%{name}-%{version}.tar.xz
+# Source0-md5: 68becfc1192a61265e9981621e9d3dc6
+URL:           https://spice-space.org/
 BuildRequires: cairo-devel >= 1.2.0
-BuildRequires: celt051-devel >= 0.5.1.1
 BuildRequires: cyrus-sasl-devel >= 2.0
-BuildRequires: gettext-devel >= 0.17
+BuildRequires: gcc >= 5:3.0
+BuildRequires: gettext-tools >= 0.19.8
+BuildRequires: glib2-devel >= 1:2.52
 BuildRequires: gobject-introspection-devel >= 0.9.4
-BuildRequires: glib2-devel >= 1:2.22
+BuildRequires: gstreamer-devel >= 1.10
+BuildRequires: gstreamer-plugins-base-devel >= 1.10
+BuildRequires: gtk+3-devel >= 3.22
 BuildRequires: gtk-doc >= 1.14
-BuildRequires: gtk+2-devel >= 2:2.18.0
-BuildRequires: gtk+3-devel >= 3.0
-BuildRequires: intltool >= 0.40.0
-BuildRequires: libcacard-devel >= 0.1.2
+BuildRequires: json-glib-devel
+%{?with_smartcard:BuildRequires:       libcacard-devel >= 2.5.1}
+BuildRequires: libepoxy-devel
 BuildRequires: libjpeg-devel
+BuildRequires: libsoup3-devel >= 3.0
 BuildRequires: libstdc++-devel
-BuildRequires: libtool >= 2:2.0
-BuildRequires: openssl-devel
-BuildRequires: perl-Text-CSV
-BuildRequires: perl-base >= 1:5.8.1
+BuildRequires: libva-x11-devel
+BuildRequires: lz4-devel
+BuildRequires: meson >= 0.56
+BuildRequires: ninja >= 1.5
+BuildRequires: openssl-devel >= 1.0.0
+BuildRequires: opus-devel >= 0.9.14
+BuildRequires: perl-tools-pod
+BuildRequires: phodav3-devel >= 3.0
 BuildRequires: pixman-devel >= 0.17.7
 BuildRequires: pkgconfig
-BuildRequires: pulseaudio-devel
-BuildRequires: python-devel >= 2.0
-BuildRequires: python-pygtk-devel >= 2:2.0.0
-BuildRequires: spice-protocol >= 0.8.1
+BuildRequires: python3
+BuildRequires: python3-pyparsing
+BuildRequires: python3-six
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.736
+BuildRequires: sed >= 4.0
+BuildRequires: spice-protocol >= 0.14.3
+BuildRequires: tar >= 1:1.22
+BuildRequires: vala >= 0.14
+# <valgrind/valgrind.h>
+%{?with_valgrind:BuildRequires:        valgrind}
+BuildRequires: wayland-devel >= 1.17.0
+BuildRequires: wayland-protocols >= 1.17
+BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXrandr-devel
+BuildRequires: xz
 BuildRequires: zlib-devel
-Requires:      libcacard >= 0.1.2
+%if %{with usbredir}
+BuildRequires: acl-devel
+BuildRequires: libusb-devel >= 1.0.21
+BuildRequires: polkit-devel >= 0.101
+BuildRequires: usbredir-devel >= 0.7.1
+%endif
+Requires:      gtk+3 >= 3.22
 Requires:      spice-glib = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -51,8 +78,11 @@ Summary:     Header files for SPICE GTK 3.0 client library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki klienckiej SPICE GTK 3.0
 Group:         X11/Development/Libraries
 Requires:      %{name} = %{version}-%{release}
+Requires:      gtk+3-devel >= 3.22
+Requires:      libepoxy-devel
+Requires:      libva-x11-devel
 Requires:      spice-glib-devel = %{version}-%{release}
-Requires:      gtk+3-devel >= 3.0
+Requires:      xorg-lib-libX11-devel
 
 %description devel
 Header files for SPICE GTK 3.0 client library.
@@ -72,10 +102,26 @@ Static SPICE GTK 3.0 client library.
 %description static -l pl.UTF-8
 Statyczna biblioteka kliencka SPICE GTK 3.0.
 
+%package -n vala-spice-gtk
+Summary:       Vala API for SPICE GTK client library
+Summary(pl.UTF-8):     Interfejs języka Vala do biblioteki klienckiej SPICE GTK
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      vala >= 2:0.14
+Requires:      vala-spice-glib = %{version}-%{release}
+BuildArch:     noarch
+
+%description -n vala-spice-gtk
+Vala API for SPICE GTK client library.
+
+%description -n vala-spice-gtk -l pl.UTF-8
+Interfejs języka Vala do biblioteki klienckiej SPICE GTK.
+
 %package apidocs
 Summary:       SPICE GTK API documentation
 Summary(pl.UTF-8):     Dokumentacja API bibliotek SPICE GTK
 Group:         Documentation
+BuildArch:     noarch
 
 %description apidocs
 API documentation for SPICE GTK libraries.
@@ -87,9 +133,19 @@ Dokumentacja API bibliotek SPICE GTK.
 Summary:       SPICE Client GLib library
 Summary(pl.UTF-8):     Biblioteka kliencka SPICE GLib
 Group:         Libraries
-Requires:      celt051 >= 0.5.1.1
-Requires:      glib2 >= 1:2.22
+Requires:      cairo >= 1.2.0
+Requires:      glib2 >= 1:2.52
+%{?with_smartcard:Requires:    libcacard >= 2.5.1}
+Requires:      libsoup3 >= 3.0
+Requires:      gstreamer >= 1.10
+Requires:      gstreamer-plugins-base >= 1.10
+Requires:      openssl >= 1.0.0
+Requires:      opus >= 0.9.14
 Requires:      pixman >= 0.17.7
+%if %{with usbredir}
+Requires:      libusb >= 1.0.21
+Requires:      usbredir >= 0.7.1
+%endif
 
 %description -n spice-glib
 SPICE Client GLib library.
@@ -101,12 +157,29 @@ Biblioteka kliencka SPICE GLib.
 Summary:       Header files for SPICE Client GLib library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki klienckiej SPICE GLib
 Group:         Development/Libraries
-Requires:      celt051-devel >= 0.5.1.1
-Requires:      glib2-devel >= 1:2.22
-Requires:      openssl-devel
+Requires:      cairo-devel >= 1.2.0
+Requires:      cyrus-sasl-devel >= 2.0
+Requires:      glib2-devel >= 1:2.52
+Requires:      gobject-introspection-devel >= 0.9.4
+Requires:      gstreamer-devel >= 1.10
+Requires:      gstreamer-plugins-base-devel >= 1.10
+Requires:      json-glib-devel
+%{?with_smartcard:Requires:    libcacard-devel >= 2.5.1}
+Requires:      libcap-ng-devel
+Requires:      libjpeg-devel
+Requires:      libsoup3-devel >= 3.0
+Requires:      lz4-devel
+Requires:      openssl-devel >= 1.0.0
+Requires:      opus-devel >= 0.9.14
+Requires:      phodav3-devel >= 3.0
 Requires:      pixman-devel >= 0.17.7
 Requires:      spice-glib = %{version}-%{release}
-Requires:      spice-protocol >= 0.8.1
+Requires:      spice-protocol >= 0.14.3
+Requires:      zlib-devel
+%if %{with usbredir}
+Requires:      libusb-devel >= 1.0.21
+Requires:      usbredir-devel >= 0.7.1
+%endif
 
 %description -n spice-glib-devel
 Header files for SPICE Client GLib library.
@@ -126,111 +199,56 @@ SPICE Client GLib static library.
 %description -n spice-glib-static -l pl.UTF-8
 Statyczna biblioteka kliencka SPICE GLib.
 
-%package -n spice-gtk2
-Summary:       SPICE Client GTK 2.0 library
-Summary(pl.UTF-8):     Biblioteka kliencka SPICE GTK 2.0
-Group:         X11/Libraries
-Requires:      gtk+2 >= 2:2.18.0
-Requires:      spice-glib = %{version}-%{release}
-
-%description -n spice-gtk2
-SPICE Client GTK 2.0 library.
-
-%description -n spice-gtk2 -l pl.UTF-8
-Biblioteka kliencka SPICE GTK 2.0.
-
-%package -n spice-gtk2-devel
-Summary:       Header files for SPICE Client GTK 2.0 library
-Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0
-Group:         X11/Development/Libraries
-Requires:      gtk+2-devel >= 2:2.18.0
-Requires:      spice-glib-devel = %{version}-%{release}
-
-%description -n spice-gtk2-devel
-Header files for SPICE Client GTK 2.0 library.
-
-%description -n spice-gtk2-devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki klienckiej SPICE GTK 2.0.
-
-%package -n spice-gtk2-static
-Summary:       SPICE Client GTK 2.0 static library
-Summary(pl.UTF-8):     Statyczna biblioteka kliencka SPICE GTK 2.0
-Group:         X11/Development/Libraries
-Requires:      spice-gtk2-devel = %{version}-%{release}
-
-%description -n spice-gtk2-static
-SPICE Client GTK 2.0 static library.
-
-%description -n spice-gtk2-static -l pl.UTF-8
-Statyczna biblioteka kliencka SPICE GTK 2.0.
-
-%package -n python-spice-gtk
-Summary:       Python interface to SPICE client GTK library
-Summary(pl.UTF-8):     Pythonowy interfejs do biblioteki klienckiej SPICE GTK
-Group:         Libraries/Python
-Requires:      spice-gtk2 = %{version}-%{release}
-
-%description -n python-spice-gtk
-Python interface to SPICE client GTK library.
-
-%description -n python-spice-gtk -l pl.UTF-8
-Pythonowy interfejs do biblioteki klienckiej SPICE GTK.
-
-%package -n vala-spice-protocol
-Summary:       Vala API for SPICE client library
-Summary(pl.UTF-8):     Interfejs języka Vala do biblioteki klienckiej SPICE
+%package -n vala-spice-glib
+Summary:       Vala API for SPICE GLib client library
+Summary(pl.UTF-8):     Interfejs języka Vala do biblioteki klienckiej SPICE GLib
 Group:         Development/Libraries
-Requires:      spice-protocol >= 0.8.1
-Requires:      vala >= 0.11.7
+Requires:      spice-glib-devel = %{version}-%{release}
+Requires:      vala >= 2:0.14
+# versions 0.35 through 0.38-1 were actually spice-client-glib + spice-client-gtk vapis
+Obsoletes:     vala-spice-protocol < 0.38-2
+BuildArch:     noarch
+
+%description -n vala-spice-glib
+Vala API for SPICE GLib client library.
+
+%description -n vala-spice-glib -l pl.UTF-8
+Interfejs języka Vala do biblioteki klienckiej SPICE GLib.
+
+%package -n spice-glib-usb
+Summary:       USB redirection ACL helper for SPICE Client GLib library
+Summary(pl.UTF-8):     Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej SPICE GLib
+Group:         Applications/System
+Requires:      polkit >= 0.101
+Requires:      spice-glib = %{version}-%{release}
 
-%description -n vala-spice-protocol
-Vala API for SPICE client library.
+%description -n spice-glib-usb
+USB redirection ACL helper for SPICE Client GLib library.
 
-%description -n vala-spice-protocol -l pl.UTF-8
-Interfejs języka Vala do biblioteki klienckiej SPICE.
+%description -n spice-glib-usb -l pl.UTF-8
+Program pomocniczy ACL do przekierowań USB dla biblioteki klienckiej
+SPICE GLib.
 
 %prep
 %setup -q
-%patch0 -p1
-
-mkdir gtk{2,3}
 
 %build
-%{__gettextize}
-%{__intltoolize}
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-
-cd gtk2
-../%configure \
-       --disable-silent-rules \
-       --with-gtk=2.0 \
-       --with-html-dir=%{_gtkdocdir}
-%{__make}
-
-cd ../gtk3
-../%configure \
-       --disable-silent-rules \
-       --with-gtk=3.0 \
-       --with-html-dir=%{_gtkdocdir}
-%{__make}
+%meson build \
+       -Dgtk_doc=enabled \
+       -Dlz4=enabled \
+       -Dpolkit=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \
+       -Dsmartcard=%{?with_smartcard:enabled}%{!?with_smartcard:disabled} \
+       -Dusbredir=%{?with_usbredir:enabled}%{!?with_smartcard:usbredir} \
+       -Dusb-ids-path=/lib/hwdata/usb.ids \
+       %{?with_valgrind:-Dvalgrind=true} \
+       -Dvapi=enabled
+
+%ninja_build -C build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-# gtk2 first, so executables will use gtk3 libs
-%{__make} -C gtk2 install \
-       DESTDIR=$RPM_BUILD_ROOT
-
-%{__make} -C gtk3 install \
-       DESTDIR=$RPM_BUILD_ROOT
-
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/SpiceClientGtk.{la,a}
-# obsoleted by pkg-config
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
+%ninja_install -C build
 
 %find_lang %{name}
 
@@ -243,18 +261,16 @@ rm -rf $RPM_BUILD_ROOT
 %post  -n spice-glib -p /sbin/ldconfig
 %postun        -n spice-glib -p /sbin/ldconfig
 
-%post  -n spice-gtk2 -p /sbin/ldconfig
-%postun        -n spice-gtk2 -p /sbin/ldconfig
-
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS NEWS README THANKS TODO
-%attr(755,root,root) %{_bindir}/snappy
+%doc AUTHORS CHANGELOG.md README.md
 %attr(755,root,root) %{_bindir}/spicy
+%attr(755,root,root) %{_bindir}/spicy-screenshot
 %attr(755,root,root) %{_bindir}/spicy-stats
 %attr(755,root,root) %{_libdir}/libspice-client-gtk-3.0.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.1
+%attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-3.0.so.5
 %{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib
+%{_mandir}/man1/spice-client.1*
 
 %files devel
 %defattr(644,root,root,755)
@@ -267,6 +283,11 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libspice-client-gtk-3.0.a
 
+%files -n vala-spice-gtk
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/spice-client-gtk-3.0.deps
+%{_datadir}/vala/vapi/spice-client-gtk-3.0.vapi
+
 %files apidocs
 %defattr(644,root,root,755)
 %{_gtkdocdir}/spice-gtk
@@ -274,47 +295,28 @@ rm -rf $RPM_BUILD_ROOT
 %files -n spice-glib
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.4
-%attr(755,root,root) %{_libdir}/libspice-controller.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libspice-controller.so.0
+%attr(755,root,root) %ghost %{_libdir}/libspice-client-glib-2.0.so.8
 %{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
 
 %files -n spice-glib-devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libspice-client-glib-2.0.so
-%attr(755,root,root) %{_libdir}/libspice-controller.so
 %{_includedir}/spice-client-glib-2.0
-%{_includedir}/spice-controller
 %{_pkgconfigdir}/spice-client-glib-2.0.pc
-%{_pkgconfigdir}/spice-controller.pc
 %{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir
 
 %files -n spice-glib-static
 %defattr(644,root,root,755)
 %{_libdir}/libspice-client-glib-2.0.a
-%{_libdir}/libspice-controller.a
-
-%files -n spice-gtk2
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libspice-client-gtk-2.0.so.1
-%{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib
-
-%files -n spice-gtk2-devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libspice-client-gtk-2.0.so
-%{_includedir}/spice-client-gtk-2.0
-%{_pkgconfigdir}/spice-client-gtk-2.0.pc
-%{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir
-
-%files -n spice-gtk2-static
-%defattr(644,root,root,755)
-%{_libdir}/libspice-client-gtk-2.0.a
 
-%files -n python-spice-gtk
+%files -n vala-spice-glib
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/SpiceClientGtk.so
+%{_datadir}/vala/vapi/spice-client-glib-2.0.deps
+%{_datadir}/vala/vapi/spice-client-glib-2.0.vapi
 
-%files -n vala-spice-protocol
+%if %{with usbredir}
+%files -n spice-glib-usb
 %defattr(644,root,root,755)
-%{_datadir}/vala/vapi/spice-protocol.vapi
+%attr(755,root,root) %{_libexecdir}/spice-client-glib-usb-acl-helper
+%{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
+%endif
This page took 0.122966 seconds and 4 git commands to generate.