File remmina.spec of Package remmina
#
# spec file for package remmina
#
# 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/
#
Name: remmina
Version: 0.9.3
Release: 1
License: GPL-2.0+
Summary: Versatile Remote Desktop Client
Url: http://remmina.sourceforge.net/
Group: Productivity/Networking/Other
Source0: http://downloads.sourceforge.net/project/remmina/0.9/%{name}-%{version}.tar.gz
Source1: README.SuSE
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: libssh-devel
BuildRequires: pkgconfig(avahi-glib)
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(vte)
BuildRequires: libgcrypt-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travellers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks. Remmina supports
multiple network protocols such as RDP, VNC, NX, XDMCP and SSH via separate
plugins in an integrated and consistant user interface.
%package devel
Summary: Development Files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: libgcrypt-devel
Requires: libssh-devel
Requires: pkgconfig(avahi-glib)
Requires: pkgconfig(gtk+-2.0)
Requires: pkgconfig(unique-1.0)
Requires: pkgconfig(vte)
%description devel
This package contains header files needed for developing plugins for
Remmina.
%prep
%setup -q
cp -r %{SOURCE1} README.SuSE
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%if 0%{?suse_version}
%suse_update_desktop_file -i %{name} Network RemoteAccess
%endif
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README README.SuSE
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/icons/*
%{_datadir}/%{name}/
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%changelog