Sophie

Sophie

distrib > Mageia > 3 > x86_64 > media > core-release-src > by-pkgid > 64245e3ce1106bc77c500a1c8493592a > files > 3

gtk-vnc-0.5.1-3.mga3.src.rpm

%define api		1.0
%define major		0
%define libname		%mklibname %{name} %{api} %{major}
%define giname		%mklibname gtkvnc-gir %{api}
%define develname	%mklibname -d %{name} %{api}

%define gtk3_api	2.0
%define gtk3_major	0
%define gtk3_libname	%mklibname %{name} %{gtk3_api} %{gtk3_major}
%define gtk3_giname	%mklibname gtkvnc-gir %{gtk3_api}
%define gtk3_develname	%mklibname -d %{name} %{gtk3_api}

%define gvnc_api	1.0
%define gvnc_major	0
%define gvnc_libname	%mklibname gvnc %{gvnc_api} %{gvnc_major}
%define gvnc_giname	%mklibname gvnc-gir %{gvnc_api}
%define gvnc_develname	%mklibname -d gvnc %{gvnc_api}

%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	A VNC viewer widget for GTK
Name:		gtk-vnc
Version:	0.5.1
Release:	%mkrel 3
Source0:	http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Patch1:		gtk-vnc-0.3.10-new-xulrunner.patch
License:	LGPLv2+
Group:		System/Libraries
Url:		http://gtk-vnc.sourceforge.net/
BuildRequires:	gtk+2-devel
BuildRequires:	gtk+3-devel
BuildRequires:	libgnutls-devel
BuildRequires:	pygtk2.0-devel
BuildRequires:	xulrunner-devel
BuildRequires:	libview-devel
BuildRequires:	libsasl-devel
BuildRequires:	gobject-introspection-devel
BuildRequires:	perl-Text-CSV
BuildRequires:	intltool
BuildRequires:	libgcrypt-devel
BuildRequires:	vala-tools
BuildRequires:	gettext-devel

%description
gtk-vnc is a VNC viewer widget for GTK. It is built using 
coroutines allowing it to be completely asynchronous while 
remaining single threaded. It provides a core C library, and
bindings for Python (PyGTK)

%package i18n
Summary:	A VNC viewer widget for GTK
Group:		System/Libraries
Obsoletes:	%{name}-common < 0.4.4
BuildArch:	noarch

%description i18n
gtk-vnc is a VNC viewer widget for GTK. It is built using 
coroutines allowing it to be completely asynchronous while 
remaining single threaded. It provides a core C library, and
bindings for Python (PyGTK)

This package contains translations used by gtk-vnc

%package -n %{libname}
Summary:	A VNC viewer widget for GTK
Group:		System/Libraries

%description -n %{libname}
gtk-vnc is a VNC viewer widget for GTK. It is built using 
coroutines allowing it to be completely asynchronous while 
remaining single threaded. It provides a core C library, and
bindings for Python (PyGTK)

%package -n %{giname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}

%description -n %{giname}
GObject Introspection interface library for %{name}.

%package -n %{develname}
Summary:	A VNC viewer widget for GTK
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	lib%{name}%{api}-devel = %{version}-%{release}

%description -n %{develname}
gtk-vnc is a VNC viewer widget for GTK. It is built using 
coroutines allowing it to be completely asynchronous while 
remaining single threaded. It provides a core C library, and
bindings for Python (PyGTK)

%package -n %{gtk3_libname}
Summary:	A VNC viewer widget for GTK3
Group:		System/Libraries

%description -n %{gtk3_libname}
Runtime library for the GTK+ 3.x VNC widget.

%package -n %{gtk3_giname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{gtk3_libname} = %{version}-%{release}

%description -n %{gtk3_giname}
GObject Introspection interface library for %{name}.

%package -n %{gtk3_develname}
Summary:	Headers and development library for gtk3-vnc
Group:		Development/C
Requires:	%{gtk3_libname} = %{version}-%{release}
Provides:	lib%{name}%{gtk3_api}-devel = %{version}-%{release}

%description -n %{gtk3_develname}
Development support for the GTK+ 3.x VNC widget.

%package -n %{gvnc_libname}
Summary:	Core library for %{name}
Group:		System/Libraries
Requires:	%{name}-i18n >= %{version}-%{release}
Conflicts:	%{libname} < 0.4.3-2

%description -n %{gvnc_libname}
Runtime core library for %{name}.

%package -n %{gvnc_giname}
Summary:	GObject Introspection interface library for gvnc
Group:		System/Libraries
Requires:	%{gvnc_libname} = %{version}-%{release}

%description -n %{gvnc_giname}
GObject Introspection interface library for gvnc.

%package -n %{gvnc_develname}
Summary:	Header files for core library of %{name}
Group:		Development/C
Requires:	%{gvnc_libname} = %{version}-%{release}
Provides:	libgvnc%{gvnc_api}-devel = %{version}-%{release}

%description -n %{gvnc_develname}
Development files for core library of %{name}.

%package -n python-%{name}
Summary:	A VNC viewer widget for Python/GTK
Group:		Development/Python
Requires:	%{libname} = %{version}-%{release}

%description -n python-%{name}
gtk-vnc is a VNC viewer widget for GTK. It is built using 
coroutines allowing it to be completely asynchronous while 
remaining single threaded. It provides a core C library, and
bindings for Python (PyGTK)

%package -n mozilla-gtk-vnc
Group:		Networking/Remote access
Summary:	A VNC viewer widget for Mozilla browsers
Requires:	%{libname} >= %{version}

%description -n mozilla-gtk-vnc
gtk-vnc is a VNC viewer widget for GTK. This is a VNC viewer plugin
for Mozilla Firefox and other browsers based on gtk-vnc.

%prep
%setup -q -c

pushd %{name}-%{version}
%patch1 -p1 -b .xulrunner
popd

cp -a %{name}-%{version} %{name}-gtk2-%{version}

%build
pushd %{name}-%{version}
	autoreconf -vfi
	%configure2_5x \
		--disable-static \
		--with-examples \
		--disable-plugin \
		--with-gtk=3.0
	%make
popd

pushd %{name}-gtk2-%{version}
	autoreconf -vfi
	%configure2_5x \
        	--disable-static \
        	--with-examples \
        	--enable-plugin \
        	--with-gtk=2.0
	%make
popd

%install

pushd %{name}-%{version}
	%makeinstall_std
popd

pushd %{name}-gtk2-%{version}
	%makeinstall_std
popd

find %{buildroot} -name *.la -delete

# for docs
cp %{name}-%{version}/{README,NEWS,AUTHORS,ChangeLog} .

%find_lang %{name}

%files
%{_bindir}/gvnccapture
%{_bindir}/gvncviewer
%{_mandir}/man1/gvnccapture.1*

%files -n mozilla-gtk-vnc
%{_libdir}/mozilla/plugins/gtk-vnc-plugin.so

%files -n %{gvnc_libname}
%doc README NEWS AUTHORS
%{_libdir}/libgvnc-%{api}.so.%{major}*

%files -n %{gvnc_giname}
%{_libdir}/girepository-1.0/GVnc-%{api}.typelib

%files -n %{gvnc_develname}
%{_libdir}/libgvnc-%{api}.so
%{_libdir}/pkgconfig/gvnc-%{api}.pc
%{_includedir}/gvnc-%{api}
%{_datadir}/gir-1.0/GVnc-%{api}.gir
%{_datadir}/vala/vapi/gvnc-%{api}.vapi

%files -n %{libname}
%{_libdir}/libgtk-vnc-%{api}.so.%{major}*

%files -n %{giname}
%{_libdir}/girepository-1.0/GtkVnc-%{api}.typelib

%files -n %{develname}
%doc ChangeLog
%{_libdir}/libgtk-vnc-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_includedir}/%{name}-%{api}
%{_datadir}/gir-1.0/GtkVnc-%{api}.gir

%files -n %{gtk3_libname}
%{_libdir}/libgtk-vnc-%{gtk3_api}.so.%{gtk3_major}*

%files -n %{gtk3_giname}
%{_libdir}/girepository-1.0/GtkVnc-%{gtk3_api}.typelib

%files -n %{gtk3_develname}
%{_libdir}/libgtk-vnc-%{gtk3_api}.so
%{_includedir}/%{name}-%{gtk3_api}
%{_libdir}/pkgconfig/%{name}-%{gtk3_api}.pc
%{_datadir}/gir-1.0/GtkVnc-%{gtk3_api}.gir
%{_datadir}/vala/vapi/gtk-vnc-%{gtk3_api}.deps
%{_datadir}/vala/vapi/gtk-vnc-%{gtk3_api}.vapi

%files -n python-%{name}
%defattr(-,root,root)
%{py_platsitedir}/gtkvnc.so

%files i18n -f %{name}.lang


%changelog

* Sat Jan 12 2013 umeabot <umeabot> 0.5.1-3.mga3
+ Revision: 352868
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Jul 20 2012 ovitters <ovitters> 0.5.1-2.mga3
+ Revision: 272709
- i18n is noarch

* Thu Jul 19 2012 ovitters <ovitters> 0.5.1-1.mga3
+ Revision: 272662
- new version 0.5.1

* Thu Dec 22 2011 wally <wally> 0.5.0-1.mga3
+ Revision: 186006
- new version 0.5.0

* Fri Nov 11 2011 wally <wally> 0.4.4-1.mga2
+ Revision: 166712
- new version 0.4.4
- rediff P1
- rename common pkg to i18n
- clean .spec a bit

  + fwang <fwang>
    - build gtk2 flavour
    - rebuild with new gnutls, and turn to gtk3 flavour

* Sat Jul 09 2011 cjw <cjw> 0.4.3-5.mga2
+ Revision: 121237
- put gobject introspection typelib files in separate subpackages
- rebuild for automatic typelib provides and deps

* Tue Jul 05 2011 cjw <cjw> 0.4.3-4.mga2
+ Revision: 119002
- drop libtool libraries to fix vinagre build

* Thu Jun 23 2011 ze <ze> 0.4.3-3.mga2
+ Revision: 112571
- add missing buildrequire libgcrypt-devel
- add missing conflict (upgrade broke)

* Sun Jun 19 2011 cjw <cjw> 0.4.3-2.mga2
+ Revision: 110104
- put libgvnc in a separate package so the gtk3 lib doesn't pull in the gtk2 lib
- also build a gtk3 version

* Fri Feb 25 2011 ennael <ennael> 0.4.3-1.mga1
+ Revision: 59397
- imported package gtk-vnc