lftp/lftp.spec

124 lines
3.2 KiB
RPMSpec

Summary: A sophisticated file transfer program
Name: lftp
Version: 4.9.1
Release: 5
License: GPLv3+
URL: http://lftp.yar.ru/
Source0: http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
BuildRequires: ncurses-devel, gnutls-devel, perl-generators, pkgconfig, gettext
BuildRequires: gettext readline-devel, zlib-devel, gcc-c++ desktop-file-utils
BuildRequires: chrpath
Requires: %{name}-help
Patch0: lftp-4.0.9-date_fmt.patch
Patch1: quit-while-source-file-increased.patch
Patch2: backport-Attempt-to-fix-SFTP-Too-many-out-of-order-.patch
%description
LFTP is a sophisticated file transfer program supporting a number of
network protocols (ftp, http, sftp, fish, torrent). Like BASH, it has
job control and uses the readline library for input. It has bookmarks,
a built-in mirror command, and can transfer several files in parallel.
It was designed with reliability in mind. LFTP is free software,
distributed under the GNU GPL license.
%package scripts
Summary: Scripts for lftp
Requires: lftp >= %{version}-%{release}
BuildArch: noarch
%description scripts
Utility scripts for use with lftp.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
sed -i.norpath -e \
'/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib64 |' \
configure
%build
%configure --with-modules --with-gnutls --without-openssl --with-debug
%make_build
%install
export tagname=CC
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
%delete_la
iconv -f ISO88591 -t UTF8 NEWS -o NEWS.tmp
touch -c -r NEWS NEWS.tmp
mv NEWS.tmp NEWS
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{buildroot}/%{_datadir}/applications/lftp.desktop
chrpath -d %{buildroot}/%{_libdir}/%{name}/%{version}/*.so*
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/lftp/%{version}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%ldconfig_scriptlets
%files
%defattr(-,root,root)
%doc COPYING
%{_datadir}/locale/*
%config(noreplace) %{_sysconfdir}/lftp.conf
%{_bindir}/*
%{_libdir}/lftp/%{version}/*.so
%{_libdir}/liblftp-*.so.*
%{_datadir}/applications/*.*
%{_datadir}/icons/hicolor/*/apps/*
%exclude %{_libdir}/*.so
%config(noreplace) /etc/ld.so.conf.d/*
%files scripts
%{_datadir}/lftp
%files help
%defattr(-,root,root)
%doc BUGS ChangeLog FAQ FEATURES NEWS THANKS TODO README*
%{_mandir}/*/*
%changelog
* Sun Oct 13 2024 liningjie <liningjie@xfusion.com> - 4.9.1-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Attempt to fix SFTP Too many out-of-order packets.
* Fri Oct 29 2021 zengweifeng <zwfeng@huawei.com> - 4.9.1-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix bug of quiting while source file increased
* Mon Nov 09 2020 quanhongfei <quanhongfei@huawei.com> - 4.9.1-3
- Type:requirement
- ID:NA
- SUG:NA
- DESC:add lftp-help dependency for lftp
* Tue Aug 18 2020 chenyaqiang <chenyaqiang@huawei.com> - 4.9.1-2
- rebuild for package build
* Thu Apr 14 2020 zhuchengliang <zhuchengliang4@huawei.com> - 4.9.1-1
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: upgrade package
* Fri Feb 28 2020 zhuchengliang <zhuchengliang4@huawei.com> - 4.8.4-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: remove rpath and runpath of exec files and libraries
* Wed Aug 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.8.4-2
- Package init