Compare commits
No commits in common. "no-polkit" and "master" have entirely different histories.
|
@ -1,5 +1,4 @@
|
||||||
#define _version_suffix
|
#define _version_suffix
|
||||||
%define with_polkit 0
|
|
||||||
|
|
||||||
Name: spice-gtk
|
Name: spice-gtk
|
||||||
Version: 0.34
|
Version: 0.34
|
||||||
|
@ -24,9 +23,7 @@ BuildRequires: cyrus-sasl-devel
|
||||||
BuildRequires: libcacard-devel
|
BuildRequires: libcacard-devel
|
||||||
BuildRequires: gobject-introspection-devel
|
BuildRequires: gobject-introspection-devel
|
||||||
BuildRequires: libacl-devel
|
BuildRequires: libacl-devel
|
||||||
%if %{with_polkit}
|
|
||||||
BuildRequires: polkit-devel
|
BuildRequires: polkit-devel
|
||||||
%endif
|
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: vala-tools
|
BuildRequires: vala-tools
|
||||||
BuildRequires: usbutils
|
BuildRequires: usbutils
|
||||||
|
@ -113,19 +110,10 @@ find . -name '*.stamp' | xargs touch
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with_polkit}
|
|
||||||
%define usb_acl_helper %{_libexecdir}/spice-gtk-%{_arch}/
|
|
||||||
%define arg_polkit --with-polkit
|
|
||||||
%define arg_usb_acl_helper --with-usb-acl-helper-dir=%{usb_acl_helper}
|
|
||||||
%else
|
|
||||||
%define arg_polkit --without-polkit
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%configure \
|
%configure \
|
||||||
--enable-gtk-doc \
|
--enable-gtk-doc \
|
||||||
--enable-webdav \
|
--enable-webdav \
|
||||||
%{?arg_polkit} \
|
--with-usb-acl-helper-dir=%{_libexecdir}/spice-gtk-%{_arch}/ \
|
||||||
%{?arg_usb_acl_helper} \
|
|
||||||
--enable-lz4 \
|
--enable-lz4 \
|
||||||
--enable-vala \
|
--enable-vala \
|
||||||
--disable-werror
|
--disable-werror
|
||||||
|
@ -162,11 +150,9 @@ rm -f %{buildroot}%{_libdir}/*.la
|
||||||
%{_libdir}/libspice-client-glib-2.0.so.*
|
%{_libdir}/libspice-client-glib-2.0.so.*
|
||||||
%{_libdir}/libspice-controller.so.*
|
%{_libdir}/libspice-controller.so.*
|
||||||
%{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
|
%{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib
|
||||||
%if %{with_polkit}
|
|
||||||
%dir %{_libexecdir}/spice-gtk-%{_arch}/
|
%dir %{_libexecdir}/spice-gtk-%{_arch}/
|
||||||
%attr(4755, root, root) %{_libexecdir}/spice-gtk-%{_arch}/spice-client-glib-usb-acl-helper
|
%attr(4755, root, root) %{_libexecdir}/spice-gtk-%{_arch}/spice-client-glib-usb-acl-helper
|
||||||
%{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
|
%{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n spice-glib-devel
|
%files -n spice-glib-devel
|
||||||
%{_libdir}/libspice-client-glib-2.0.so
|
%{_libdir}/libspice-client-glib-2.0.so
|
||||||
|
|
Loading…
Reference in New Issue