File xfvnc.spec of Package xfvnc

#
# spec file for package xfvnc
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define svn_rev 6801

Name:           xfvnc
Version:        0.1.0.%{svn_rev}
Release:        12
Url:            http://spurint.org/projects/xfvnc/
License:        GPLv2+
Group:          Productivity/Networking/Other
Summary:        Simple VNC client for Xfce
Source:         %{name}-svn-r%{svn_rev}.tar.bz2
Patch0:         %{name}-desktop.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  pkgconfig(libxfcegui4-1.0)
BuildRequires:  pkgconfig(libxfconf-0)
BuildRequires:  pkgconfig(exo-1)
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(gtk-vnc-1.0)
BuildRequires:  pkgconfig(gvnc-1.0)
BuildRequires:  xfce4-dev-tools
BuildRequires:  update-desktop-files
# for autogen.sh
BuildRequires:  intltool

%description
XfVNC is a very simple VNC client tailored for the Xfce desktop environment.

%prep
%setup -q -n %{name}
%patch0

%build
./autogen.sh
%configure --enable-maintainer-mode
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file -i xfvnc Network RemoteAccess GTK
%find_lang %{name}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_bindir}/xfvnc
%{_datadir}/applications/%{name}.desktop

%changelog
openSUSE Build Service is sponsored by