[packages/lftp] - use upstream provided .desktop file (with patch) and icon
qboosh
qboosh at pld-linux.org
Wed Jan 29 05:30:51 CET 2020
commit 3f82c3cf61201f63c7ba9e8c70dbbe348e4e0b39
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jan 29 05:31:04 2020 +0100
- use upstream provided .desktop file (with patch) and icon
lftp-desktop.patch | 13 +++++++++++++
lftp-icon.png | Bin 1633 -> 0 bytes
lftp.desktop | 13 -------------
lftp.spec | 21 ++++++++++-----------
4 files changed, 23 insertions(+), 24 deletions(-)
---
diff --git a/lftp.spec b/lftp.spec
index 425eda5..79b905c 100644
--- a/lftp.spec
+++ b/lftp.spec
@@ -32,8 +32,6 @@ Source0: https://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
# Source0-md5: 3da57b1960b1416e89a532c54a67a936
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
# Source1-md5: cdad8fb5342eebd9916eccefc98a855b
-Source2: %{name}.desktop
-Source3: %{name}-icon.png
Patch100: %{name}-git.patch
Patch0: %{name}-makefile.patch
Patch1: %{name}-m4.patch
@@ -41,8 +39,9 @@ Patch2: aliases.patch
# when updated attach at https://github.com/lavv17/lftp/issues
Patch3: %{name}-pl.po-update.patch
Patch4: %{name}-am.patch
+Patch5: %{name}-desktop.patch
URL: http://lftp.tech/
-BuildRequires: autoconf >= 2.60
+BuildRequires: autoconf >= 2.63
BuildRequires: automake
%{?with_dante:BuildRequires: dante-devel}
%{?with_dnssec:BuildRequires: dnssec-tools-devel}
@@ -95,6 +94,7 @@ o arquivo FEATURES para uma lista mais detalhada.
%patch2 -p1
#%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{__rm} po/stamp-po
@@ -110,10 +110,10 @@ CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
%configure \
--without-included-regex \
--with-dnssec-local-validation%{!?with_dnssec:=no} \
+ --with-gnutls%{!?with_gnutls:=no} \
--with-modules \
- --with-socksdante%{!?with_dante:=no} \
- --with%{!?with_openssl:out}-openssl \
- --with%{!?with_gnutls:out}-gnutls
+ --with-openssl%{!?with_openssl:=no} \
+ --with-socksdante%{!?with_dante:=no}
%{__make}
@@ -121,13 +121,12 @@ CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_pixmapsdir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
cp -p lftp.conf $RPM_BUILD_ROOT%{_sysconfdir}
-cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
-cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}/lftp.png
bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
%{__rm} $RPM_BUILD_ROOT%{_mandir}/{README.lftp-man-pages,lftpget.diff}
@@ -146,7 +145,7 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc README NEWS FAQ FEATURES BUGS ChangeLog TODO
+%doc AUTHORS BUGS ChangeLog FAQ FEATURES NEWS README README.debug-levels README.dnssec THANKS TODO
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lftp.conf
%attr(755,root,root) %{_bindir}/lftp
%attr(755,root,root) %{_bindir}/lftpget
@@ -160,4 +159,4 @@ rm -rf $RPM_BUILD_ROOT
%lang(pl) %{_mandir}/pl/man1/lftpget.1*
%{_mandir}/man5/lftp.conf.5*
%{_desktopdir}/lftp.desktop
-%{_pixmapsdir}/lftp.png
+%{_iconsdir}/hicolor/48x48/apps/lftp-icon.png
diff --git a/lftp-desktop.patch b/lftp-desktop.patch
new file mode 100644
index 0000000..5d4db0f
--- /dev/null
+++ b/lftp-desktop.patch
@@ -0,0 +1,13 @@
+--- lftp-4.9.1/contrib/lftp.desktop.orig 2017-05-08 08:00:44.000000000 +0200
++++ lftp-4.9.1/contrib/lftp.desktop 2020-01-28 21:28:18.949894306 +0100
+@@ -5,4 +5,9 @@
+ Type=Application
+ Terminal=true
+ Exec=lftp
+-Categories=Network;
++Comment=Sophisticated command line ftp/http client
++Comment[ko]=명령줄에서 돌아가는 FTP/HTTP 클라이언트
++Comment[pl]=Zaawansowany klient ftp/http
++Comment[pt_BR]=Sofisticado programa de transferência de arquivos (cliente ftp/http)
++Comment[zh_CN]=Lftp 客户端程序
++Categories=ConsoleOnly;Network;FileTransfer;
diff --git a/lftp-icon.png b/lftp-icon.png
deleted file mode 100644
index 0f1a608..0000000
Binary files a/lftp-icon.png and /dev/null differ
diff --git a/lftp.desktop b/lftp.desktop
deleted file mode 100644
index 972e8a3..0000000
--- a/lftp.desktop
+++ /dev/null
@@ -1,13 +0,0 @@
-[Desktop Entry]
-Name=Lftp
-Comment=Sophisticated command line ftp/http client
-Comment[ko]=명령줄에서 돌아가는 FTP/HTTP 클라이언트
-Comment[pl]=Zaawansowany klient ftp/http
-Comment[pt_BR]=Sofisticado programa de transferência de arquivos (cliente ftp/http)
-Comment[zh_CN]=Lftp 客户端程序
-Exec=lftp
-Icon=lftp
-Terminal=true
-Type=Application
-Categories=ConsoleOnly;Network;FileTransfer;
-# vi: encoding=utf-8
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lftp.git/commitdiff/3f82c3cf61201f63c7ba9e8c70dbbe348e4e0b39
More information about the pld-cvs-commit
mailing list