diff --git a/README.md b/README.md index 438239f..b1fac4e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # spice-gtk +A Gtk client and libraries for SPICE remote desktop servers. + diff --git a/spice-gtk.spec b/spice-gtk.spec new file mode 100644 index 0000000..5685bb5 --- /dev/null +++ b/spice-gtk.spec @@ -0,0 +1,207 @@ +Name: spice-gtk +Version: 0.24 +Release: 1mamba +Summary: A Gtk client and libraries for SPICE remote desktop servers +Group: Graphical Desktop/Applications/Emulators +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.spice-space.org/ +Source: http://www.spice-space.org/download/gtk/spice-gtk-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-devel +BuildRequires: libXau-devel +BuildRequires: libXdmcp-devel +BuildRequires: libXext-devel +BuildRequires: libXrandr-devel +BuildRequires: libXrender-devel +BuildRequires: libacl-devel +BuildRequires: libaio-devel +BuildRequires: libatk-devel +BuildRequires: libavahi-devel +BuildRequires: libavahi-glib-devel +BuildRequires: libbzip2-devel +BuildRequires: libcacard-devel +BuildRequires: libcairo-devel +BuildRequires: libcap-ng-devel +BuildRequires: libcares-devel +BuildRequires: libcelt051-devel +BuildRequires: libcurl-devel +BuildRequires: libdbus-devel +BuildRequires: libexpat-devel +BuildRequires: libffi-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcrypt-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgpg-error-devel +BuildRequires: libgraphite2-devel +BuildRequires: libgtk2-devel +BuildRequires: libharfbuzz-devel +BuildRequires: libidn-devel +BuildRequires: libjpeg-devel +BuildRequires: liblzma-devel +BuildRequires: libnspr-devel +BuildRequires: libnss-devel +BuildRequires: libopenldap-devel +BuildRequires: libopenssl-devel +BuildRequires: libopus-devel +BuildRequires: libpango-devel +BuildRequires: libpcre-devel +BuildRequires: libpixman-devel +BuildRequires: libpng-devel +BuildRequires: libpolkit-devel +BuildRequires: libpulseaudio-devel +BuildRequires: libpulseaudio-glib-devel +BuildRequires: libpython-devel +BuildRequires: librtmp-devel +BuildRequires: libsasl-devel +BuildRequires: libselinux-devel +BuildRequires: libsepol-devel +BuildRequires: libsoup-devel +BuildRequires: libsqlite-devel +BuildRequires: libssh2-devel +BuildRequires: libssp-devel +BuildRequires: libsystemd-devel +BuildRequires: libudev-devel +BuildRequires: libusbredir-devel +BuildRequires: libusbx-devel +BuildRequires: libuuid-devel +BuildRequires: libxcb-devel +BuildRequires: libxml2-devel +BuildRequires: libz-devel +BuildRequires: spice-protocol-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A Gtk client and libraries for SPICE remote desktop servers. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%package apidocs +Group: Documentation +Summary: %{name} API documentation +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: gtk-doc + +%description apidocs +This package includes the %{name} API documentation. + +%package -n python-SpiceClientGtk +Group: System/Libraries/Python +Summary: Python bindings for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n python-SpiceClientGtk +A Gtk client and libraries for SPICE remote desktop servers. +This package contains the Python bindings. + +%debug_package + +%prep +%setup -q + +%build +# gtk-2 version in needed by virt-manager +%configure \ + --enable-gtk-doc \ + --with-gtk=2.0 + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang %{name} +%find_lang phodav + +cat phodav.lang >> %{name}.lang + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -f %{name}.lang +%defattr(-,root,root) +%{_sbindir}/spice-webdavd +%{_prefix}/lib/systemd/system/spice-webdavd.service +%{_prefix}/lib/systemd/system/spice-webdavd.target +%{_prefix}/lib/udev/rules.d/70-spice-webdavd.rules +%{_mandir}/man1/chezdav.1* +%{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy +%doc AUTHORS COPYING THANKS + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libspice-client-glib-2.0.so.* +%{_libdir}/libspice-client-gtk-2.0.so.* +%{_libdir}/libspice-controller.so.* +%{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib +%{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_bindir}/chezdav +%{_bindir}/spice-client-glib-usb-acl-helper +%{_bindir}/spicy +%{_bindir}/spicy-screenshot +%{_bindir}/spicy-stats +%dir %{_includedir}/spice-client-glib-2.0 +%{_includedir}/spice-client-glib-2.0/*.h +%dir %{_includedir}/spice-client-gtk-2.0 +%{_includedir}/spice-client-gtk-2.0/*.h +%dir %{_includedir}/spice-controller +%{_includedir}/spice-controller/spice-controller.h +%{_libdir}/libspice-client-glib-2.0.a +%{_libdir}/libspice-client-glib-2.0.la +%{_libdir}/libspice-client-glib-2.0.so +%{_libdir}/libspice-client-gtk-2.0.a +%{_libdir}/libspice-client-gtk-2.0.la +%{_libdir}/libspice-client-gtk-2.0.so +%{_libdir}/libspice-controller.a +%{_libdir}/libspice-controller.la +%{_libdir}/libspice-controller.so +%{_libdir}/pkgconfig/spice-client-glib-2.0.pc +%{_libdir}/pkgconfig/spice-client-gtk-2.0.pc +%{_libdir}/pkgconfig/spice-controller.pc +%{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir +%{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir +%{_datadir}/vala/vapi/spice-protocol.vapi +%doc ChangeLog NEWS README TODO + +%files -n python-SpiceClientGtk +%defattr(-,root,root) +%{python_sitearch}/SpiceClientGtk.a +%{python_sitearch}/SpiceClientGtk.la +%{python_sitearch}/SpiceClientGtk.so + +%files apidocs +%defattr(-,root,root) +%dir %{_datadir}/gtk-doc/html/spice-gtk +%{_datadir}/gtk-doc/html/spice-gtk/* + +%changelog +* Mon May 12 2014 Silvan Calarco 0.24-1mamba +- package created using the webbuild interface