From d103227136f330165b3781b1130a0945efa896bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Sun, 9 Jan 2011 21:59:47 +0100 Subject: [PATCH 1/3] Initial import (#657403) --- .gitignore | 1 + sources | 1 + spice-gtk.spec | 117 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 spice-gtk.spec diff --git a/.gitignore b/.gitignore index e69de29..69cfb40 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/spice-gtk-0.4.tar.bz2 diff --git a/sources b/sources index e69de29..f347354 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d7ea131295ee0885b09ab9613069e20c spice-gtk-0.4.tar.bz2 diff --git a/spice-gtk.spec b/spice-gtk.spec new file mode 100644 index 0000000..c753fb9 --- /dev/null +++ b/spice-gtk.spec @@ -0,0 +1,117 @@ +# we don't want to provide private python extension libs +%{?filter_setup: +%filter_provides_in %{python_sitearch}/.*\.so$ +%filter_setup +} + +Name: spice-gtk +Version: 0.4 +Release: 1%{?dist} +Summary: A GTK widget for SPICE clients + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://spice-space.org/page/Spice-Gtk +Source0: http://www.spice-space.org/download/gtk/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: intltool +BuildRequires: gtk2-devel >= 2.14 +BuildRequires: spice-protocol >= 0.6.3 +BuildRequires: perl-Text-CSV +BuildRequires: pixman-devel openssl-devel libjpeg-turbo-devel +BuildRequires: celt051-devel pulseaudio-libs-devel +BuildRequires: pygtk2-devel python-devel zlib-devel +BuildRequires: gobject-introspection-devel +BuildRequires: gtk-doc + +%description +Client libraries for SPICE desktop servers. + +%package devel +Summary: Development files to build GTK2 applications with spice-gtk +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig +Requires: gtk2-devel + +%description devel +spice-client-glib is a SPICE client library for GLib. +spice-client-gtk provides a SPICE viewer widget for GTK. + +Libraries, includes, etc. to compile with the spice-gtk libraries + +%package python +Summary: Python bindings for the spice-gtk library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description python +SpiceClientGtk module provides a SPICE viewer widget for GTK. + +A module allowing use of the spice-gtk widget from python + +%package tools +Summary: Spice-gtk tools +Group: Applications/Internet + +%description tools +Simple clients for interacting with SPICE servers. +spicy is a client to a SPICE desktop server. +snappy is a tool to capture screen-shots of a SPICE desktop. + +%prep +%setup -q + + +%build +%configure --enable-gtk-doc +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} +rm -f %{buildroot}%{_libdir}/*.a +rm -f %{buildroot}%{_libdir}/*.la +rm -f %{buildroot}%{_libdir}/python*/site-packages/*.a +rm -f %{buildroot}%{_libdir}/python*/site-packages/*.la +%find_lang %{name} + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING README NEWS +%{_libdir}/libspice-client-g*.so.* +%{_libdir}/girepository-1.0/SpiceClientG*-1.0.typelib + +%files devel +%defattr(-,root,root,-) +%{_libdir}/libspice-client-g*.so +%{_includedir}/spice-client-g* +%{_libdir}/pkgconfig/spice-client-g*.pc +%{_datadir}/gir-1.0/SpiceClientG*-1.0.gir +%doc %{_datadir}/gtk-doc/html/* + +%files python +%defattr(-,root,root,-) +%{_libdir}/python*/site-packages/SpiceClientGtk.so + +%files tools -f %{name}.lang +%defattr(-,root,root,-) +%{_bindir}/snappy +%{_bindir}/spicy + +%changelog +* Sun Jan 09 2011 Marc-André Lureau - 0.4-1 +- Upstream release 0.4 +- Initial release (#657403) + +* Thu Nov 25 2010 Marc-André Lureau - 0.1.0-1 +- Initial packaging From e4e62da9cc1db5e4d504421ddbf83f02af115cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Mon, 10 Jan 2011 10:08:44 +0100 Subject: [PATCH 2/3] - add ExclusiveArch as only x86 is supported --- spice-gtk.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spice-gtk.spec b/spice-gtk.spec index c753fb9..6a084c9 100644 --- a/spice-gtk.spec +++ b/spice-gtk.spec @@ -6,7 +6,7 @@ Name: spice-gtk Version: 0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A GTK widget for SPICE clients Group: System Environment/Libraries @@ -25,6 +25,8 @@ BuildRequires: pygtk2-devel python-devel zlib-devel BuildRequires: gobject-introspection-devel BuildRequires: gtk-doc +ExclusiveArch: %{ix86} x86_64 + %description Client libraries for SPICE desktop servers. @@ -109,6 +111,9 @@ rm -rf %{buildroot} %{_bindir}/spicy %changelog +* Mon Jan 10 2011 Dan Horák - 0.4-2 +- add ExclusiveArch as only x86 is supported + * Sun Jan 09 2011 Marc-André Lureau - 0.4-1 - Upstream release 0.4 - Initial release (#657403) From 42cd64c65514ed14f819194f2cbe393026539239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 27 Jan 2011 22:18:26 +0100 Subject: [PATCH 3/3] Update for release 0.5-1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Thu Jan 27 2011 Marc-André Lureau - 0.5-1 - Upstream release 0.5 * Fri Jan 14 2011 Daniel P. Berrange - 0.4-2 - Add support for parallel GTK3 build --- .gitignore | 1 + sources | 2 +- spice-gtk.spec | 150 ++++++++++++++++++++++++++++++++++++++++++------- 3 files changed, 132 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 69cfb40..8df17e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /spice-gtk-0.4.tar.bz2 +/spice-gtk-0.5.tar.bz2 diff --git a/sources b/sources index f347354..4efd5ff 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d7ea131295ee0885b09ab9613069e20c spice-gtk-0.4.tar.bz2 +872b8d50ab85f01768bf83e074626f3f spice-gtk-0.5.tar.bz2 diff --git a/spice-gtk.spec b/spice-gtk.spec index 6a084c9..9ed08b6 100644 --- a/spice-gtk.spec +++ b/spice-gtk.spec @@ -4,10 +4,15 @@ %filter_setup } +%define with_gtk3 0 +%if 0%{fedora} >= 15 +%define with_gtk3 1 +%endif + Name: spice-gtk -Version: 0.4 -Release: 2%{?dist} -Summary: A GTK widget for SPICE clients +Version: 0.5 +Release: 1%{?dist} +Summary: A GTK2 widget for SPICE clients Group: System Environment/Libraries License: LGPLv2+ @@ -24,6 +29,11 @@ BuildRequires: celt051-devel pulseaudio-libs-devel BuildRequires: pygtk2-devel python-devel zlib-devel BuildRequires: gobject-introspection-devel BuildRequires: gtk-doc +%if %{with_gtk3} +BuildRequires: gtk3-devel +%endif +# Hack because of bz #613466 +BuildRequires: libtool ExclusiveArch: %{ix86} x86_64 @@ -31,27 +41,69 @@ ExclusiveArch: %{ix86} x86_64 Client libraries for SPICE desktop servers. %package devel -Summary: Development files to build GTK2 applications with spice-gtk +Summary: Development files to build GTK2 applications with spice-gtk-2.0 Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Requires: spice-glib-devel = %{version}-%{release} Requires: pkgconfig Requires: gtk2-devel %description devel -spice-client-glib is a SPICE client library for GLib. -spice-client-gtk provides a SPICE viewer widget for GTK. +spice-client-gtk-2.0 provides a SPICE viewer widget for GTK2. -Libraries, includes, etc. to compile with the spice-gtk libraries +Libraries, includes, etc. to compile with the spice-gtk2 libraries + +%package -n spice-glib +Summary: A GObject for communicating with Spice servers +Group: Development/Libraries + +%description -n spice-glib +spice-client-glib-2.0 is a SPICE client library for GLib2. + +%package -n spice-glib-devel +Summary: Development files to build Glib2 applications with spice-glib-2.0 +Group: Development/Libraries +Requires: spice-glib = %{version}-%{release} +Requires: pkgconfig +Requires: glib2-devel + +%description -n spice-glib-devel +spice-client-glib-2.0 is a SPICE client library for GLib2. + +Libraries, includes, etc. to compile with the spice-glib-2.0 libraries + + +%if %{with_gtk3} +%package -n spice-gtk3 +Summary: A GTK2 widget for SPICE clients +Group: Development/Libraries + +%description -n spice-gtk3 +spice-client-glib-3.0 is a SPICE client library for Gtk3. + +%package -n spice-gtk3-devel +Summary: Development files to build GTK2 applications with spice-gtk-3.0 +Group: Development/Libraries +Requires: spice-gtk3 = %{version}-%{release} +Requires: spice-glib-devel = %{version}-%{release} +Requires: pkgconfig +Requires: gtk3-devel + +%description -n spice-gtk3-devel +spice-client-gtk-3.0 provides a SPICE viewer widget for GTK3. + +Libraries, includes, etc. to compile with the spice-gtk3 libraries +%endif %package python -Summary: Python bindings for the spice-gtk library +Summary: Python bindings for the spice-gtk-2.0 library Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description python -SpiceClientGtk module provides a SPICE viewer widget for GTK. +SpiceClientGtk module provides a SPICE viewer widget for GTK2. -A module allowing use of the spice-gtk widget from python +A module allowing use of the spice-gtk-2.0 widget from python %package tools Summary: Spice-gtk tools @@ -63,17 +115,40 @@ spicy is a client to a SPICE desktop server. snappy is a tool to capture screen-shots of a SPICE desktop. %prep -%setup -q +%setup -q -n spice-gtk-%{version} -c +%if %{with_gtk3} +cp -a spice-gtk-%{version} spice-gtk3-%{version} +%endif %build -%configure --enable-gtk-doc + +cd spice-gtk-%{version} +%configure --enable-gtk-doc --with-gtk=2.0 make %{?_smp_mflags} +cd .. + +%if %{with_gtk3} +cd spice-gtk3-%{version} +%configure --with-gtk=3.0 +make %{?_smp_mflags} +cd .. +%endif %install rm -rf %{buildroot} + +%if %{with_gtk3} +cd spice-gtk3-%{version} make install DESTDIR=%{buildroot} +cd .. +%endif + +cd spice-gtk-%{version} +make install DESTDIR=%{buildroot} +cd .. + rm -f %{buildroot}%{_libdir}/*.a rm -f %{buildroot}%{_libdir}/*.la rm -f %{buildroot}%{_libdir}/python*/site-packages/*.a @@ -89,28 +164,63 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc AUTHORS COPYING README NEWS -%{_libdir}/libspice-client-g*.so.* -%{_libdir}/girepository-1.0/SpiceClientG*-1.0.typelib +%doc spice-gtk-%{version}/AUTHORS +%doc spice-gtk-%{version}/COPYING +%doc spice-gtk-%{version}/README +%doc spice-gtk-%{version}/NEWS +%{_libdir}/libspice-client-gtk-2.0.so.* +%{_libdir}/girepository-1.0/SpiceClientGtk-2.0.typelib %files devel %defattr(-,root,root,-) -%{_libdir}/libspice-client-g*.so -%{_includedir}/spice-client-g* -%{_libdir}/pkgconfig/spice-client-g*.pc -%{_datadir}/gir-1.0/SpiceClientG*-1.0.gir +%{_libdir}/libspice-client-gtk-2.0.so +%{_includedir}/spice-client-gtk-2.0 +%{_libdir}/pkgconfig/spice-client-gtk-2.0.pc +%{_datadir}/gir-1.0/SpiceClientGtk-2.0.gir + +%files -n spice-glib -f %{name}.lang +%defattr(-,root,root,-) +%{_libdir}/libspice-client-glib-2.0.so.* +%{_libdir}/girepository-1.0/SpiceClientGLib-2.0.typelib + +%files -n spice-glib-devel +%defattr(-,root,root,-) +%{_libdir}/libspice-client-glib-2.0.so +%{_includedir}/spice-client-glib-2.0 +%{_libdir}/pkgconfig/spice-client-glib-2.0.pc +%{_datadir}/gir-1.0/SpiceClientGLib-2.0.gir %doc %{_datadir}/gtk-doc/html/* +%if %{with_gtk3} +%files -n spice-gtk3 +%defattr(-,root,root,-) +%{_libdir}/libspice-client-gtk-3.0.so.* +%{_libdir}/girepository-1.0/SpiceClientGtk-3.0.typelib + +%files -n spice-gtk3-devel +%defattr(-,root,root,-) +%{_libdir}/libspice-client-gtk-3.0.so +%{_includedir}/spice-client-gtk-3.0 +%{_libdir}/pkgconfig/spice-client-gtk-3.0.pc +%{_datadir}/gir-1.0/SpiceClientGtk-3.0.gir +%endif + %files python %defattr(-,root,root,-) %{_libdir}/python*/site-packages/SpiceClientGtk.so -%files tools -f %{name}.lang +%files tools %defattr(-,root,root,-) %{_bindir}/snappy %{_bindir}/spicy %changelog +* Thu Jan 27 2011 Marc-André Lureau - 0.5-1 +- Upstream release 0.5 + +* Fri Jan 14 2011 Daniel P. Berrange - 0.4-2 +- Add support for parallel GTK3 build + * Mon Jan 10 2011 Dan Horák - 0.4-2 - add ExclusiveArch as only x86 is supported