File tsclient.spec of Package tsclient

#
# spec file for package tsclient
#
# Copyright (c) 2012 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:           tsclient
Version:        2.0.2
Release:        0
Summary:        Terminal Server Client is a frontend for rdesktop
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Url:            http://www.novell.com/
Source:         %{name}-%{version}.tar.bz2
# PATCH-FEATURE-SLED tsclient-dmxsupport.diff hfiguiere@suse.de -- Add NOMAD/DMX support
Patch:          tsclient-dmxsupport.diff
# PATCH-FIX-UPSTREAM - tsclient-build-against-new-gnome.patch mboman@suse.de -- Build against new gnome-panel
Patch1:         tsclient-build-against-new-gnome.patch
# PATCH-FIX-UPSTREAM - tsclient-nm-0.8.patch captain.magnus@opensuse.org -- Build against new NetworkManager
Patch2:         tsclient-nm-0.8.patch
# PATCH-FIX-UPSTREAM tsclient-libnotify07.patch fcrozat@novell.com -- Fix build with libnotify 0.7.7
Patch3:         tsclient-libnotify07.patch
# PATCH-FIX-UPSTREAM tsclient-glib-2.31.patch sf#3446993 dimstar@opensuse.org -- Fix build with glib 2.31.
Patch4:         tsclient-glib-2.31.patch
BuildRequires:  gnome-icon-theme
BuildRequires:  intltool
BuildRequires:  libtool
%if 0%{?suse_version}
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
%endif
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gnome-desktop-2.0)
BuildRequires:  pkgconfig(gnome-vfs-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(libgnome-2.0)
# Added by tsclient-build-against-new-gnome.patch
BuildRequires:  pkgconfig(libgnomeui-2.0)
# Changed in tsclient-nm-0.8.patch
BuildRequires:  pkgconfig(libnm-glib)
BuildRequires:  pkgconfig(libnotify)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
Terminal Server Client (tsclient) is a frontend for rdesktop. It
supports most of the rdesktop 1.1/1.2 arguments, can read .rdp files in
the Microsoft Unicode format, writes new .rdp files in ASCII (which can
also be read by the Microsoft RDP Client), and looks and functions very
much like the Microsoft RDP Client. It features a Gnome panel applet to
quickly launch saved rdp files.

%package devel
Summary:        Terminal Server Client is a frontend for rdesktop
Group:          Productivity/Networking/Other
Requires:       %{name} = %{version}

%description devel
Terminal Server Client (tsclient) is a frontend for rdesktop. It
supports most of the rdesktop 1.1/1.2 arguments, can read .rdp files in
the Microsoft Unicode format, writes new .rdp files in ASCII (which can
also be read by the Microsoft RDP Client), and looks and functions very
much like the Microsoft RDP Client. It features a Gnome panel applet to
quickly launch saved rdp files.

%lang_package
%prep
%setup -q
translation-update-upstream
%patch -p1
%patch1 -p0
%patch2 -p0
%patch3 -p1
%patch4 -p1

%build
autoreconf -si
%configure --disable-static
make

%install
%makeinstall
%if 0%{?suse_version}
%suse_update_desktop_file tsclient Network "Remote Access"
%suse_update_desktop_file $RPM_BUILD_ROOT%{_datadir}/gnome/autostart/tsc-autostart.desktop
%else
%endif
rm -f $RPM_BUILD_ROOT/%{_libdir}/tsclient/plugins/*.la
install -d $RPM_BUILD_ROOT/%{_datadir}/pixmaps
mv $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/scalable/apps/tsclient.svg $RPM_BUILD_ROOT/%{_datadir}/pixmaps
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%endif

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_bindir}/tsclient
%dir %{_libdir}/tsclient
%{_libdir}/tsclient/tsc-ssh-askpass
%dir %{_libdir}/tsclient/plugins
%{_libdir}/tsclient/plugins/*.so
%{_datadir}/tsclient/
%{_datadir}/applications/tsclient.desktop
%{_datadir}/gnome/autostart/tsc-autostart.desktop
%{_datadir}/pixmaps/tsclient.svg

%files lang -f %{name}.lang

%files devel
%defattr(-,root,root)
%{_includedir}/*

%changelog
openSUSE Build Service is sponsored by