File gftp.spec of Package gftp

#
# spec file for package gftp
#
# 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:           gftp
Version:        2.0.19
Release:        10
License:        GPLv2+
Summary:        Multithreaded File Transfer Client
Url:            http://www.gftp.org/
Group:          Productivity/Networking/Ftp/Clients
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gtk2-devel
BuildRequires:  openssl-devel
BuildRequires:  readline-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Requires:       %{name}-common = %{version}
Supplements:    packageand(%{name}-common:gtk2)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GFTP is a free multithreaded file transfer client for *NIX based
machines, with advanced features.

%package common
License:        GPLv2+
Summary:        Multithreaded File Transfer Client - Common Files
Group:          Productivity/Networking/Ftp/Clients
Recommends:     %{name}-common-lang

%description common
GFTP is a free multithreaded file transfer client for *NIX based
machines, with advanced features.

%package text
License:        GPLv2+
Summary:        Multithreaded File Transfer Client - Text UI
Group:          Productivity/Networking/Ftp/Clients
Requires:       %{name}-common = %{version}
Enhances:       %{name}-common

%description text
GFTP is a free multithreaded file transfer client for *NIX based
machines, with advanced features.

This package contains a text user interface, that can be used
without a graphical environment.

%lang_package -n gftp-common
%prep
%setup
translation-update-upstream

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall
%suse_update_desktop_file -N gFTP -G "File Transfer" -r %{name} Network FileTransfer
# rename sr@Latin to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
# Drop version of COPYING installed by package
rm %{buildroot}%{_datadir}/gftp/COPYING
%find_lang %{name} %{?no_lang_C}
%fdupes -s %{buildroot}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%endif

%files
%defattr(-, root, root)
%{_bindir}/gftp-gtk
%{_datadir}/applications/gftp.desktop
%{_datadir}/gftp/*.png
%{_datadir}/gftp/*.svg
%{_datadir}/gftp/*.xpm
%{_datadir}/pixmaps/*.png

%files common
%defattr(-, root, root)
%doc ChangeLog COPYING README README.html THANKS TODO docs/USERS-GUIDE
%{_bindir}/gftp
%dir %{_datadir}/gftp
%{_datadir}/gftp/bookmarks
%{_datadir}/gftp/gftprc
%doc %{_mandir}/man?/*.*

%files text
%defattr(-, root, root)
%{_bindir}/gftp-text

%files common-lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by