File gftp.spec of Package gftp
#
# spec file for package gftp
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: gftp
Version: 2.9.1b
Release: 0
Summary: Multithreaded File Transfer Client
License: MIT
Group: Productivity/Networking/Ftp/Clients
URL: https://github.com/masneyb/%{name}
Source0: https://github.com/masneyb/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: gftp.appdata.xml
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libssl)
Requires: %{name}-common = %{version}
%description
GFTP graphical version is a multithreaded FTP client running under X and
written using GLib/GTK+.
gFTP features:
* simultaneous downloads,
* resuming of interrupted file transfers,
* file transfer queues,
* downloading of entire directories,
* FTP and HTTP proxy support,
* remote directory caching,
* passive and non-passive file transfers,
* drag-n-drop support,
* bookmarks menu,
* support for SSH and SSH2 file transfers,
* support FXP transfers,
* stop button, and many more features.
%package common
Summary: Multithreaded File Transfer Client - Common Files
Group: Productivity/Networking/Ftp/Clients
%description common
GFTP is a multithreaded FTP client. This package contains the locale data
used by both gftp-gtk and gftp-text, along with a common manual page.
%package text
Summary: Multithreaded File Transfer Client - Text UI
Group: Productivity/Networking/Ftp/Clients
Requires: %{name}-common = %{version}
%description text
GFTP text version is a multithreaded FTP client running under console and
written using GLib.
%lang_package -n gftp-common
%prep
%setup -q
%build
%configure
%make_build
%install
%make_install
%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 AUTHORS, LICENSE, ChangeLog, README.md, USERS-GUIDE installed by package
rm %{buildroot}%{_datadir}/doc/gftp/*
# gftp contains still no appdata.xml
if [ -f %{buildroot}%{_datadir}/appdata/gftp.appdata.xml ]; then
echo "Please remove the added gftp.appdata.xml file from the sources - the tarball installs it"
false
else
mkdir -p %{buildroot}%{_datadir}/appdata
cp %{SOURCE1} %{buildroot}%{_datadir}/appdata/
fi
%find_lang %{name} %{?no_lang_C}
%fdupes -s %{buildroot}
%files
%{_bindir}/gftp-gtk
%dir %{_datadir}/appdata
%{_datadir}/appdata/gftp.appdata.xml
%{_datadir}/applications/gftp.desktop
%{_datadir}/gftp/*.png
%{_datadir}/gftp/*.xpm
%dir %{_datadir}/icons/hicolor/*/
%dir %{_datadir}/icons/hicolor/*/apps/
%{_datadir}/icons/hicolor/*/apps/%{name}*
%files common
%license LICENSE
%doc AUTHORS ChangeLog README.md TODO docs/USERS-GUIDE
%{_bindir}/gftp
%dir %{_datadir}/gftp
%{_datadir}/gftp/bookmarks
%{_datadir}/gftp/gftprc
%{_mandir}/man?/*.*
%files text
%{_bindir}/gftp-text
%files common-lang -f %{name}.lang
%changelog