Browse Source

lftp-4.8.4-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12231 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 4 years ago
parent
commit
e7f7a97ef9
1 changed files with 23 additions and 8 deletions
  1. 23 8
      l/lftp/lftp-vl.spec

+ 23 - 8
l/lftp/lftp-vl.spec

@@ -1,13 +1,13 @@
 Summary: A sophisticated file transfer program
 Summary(ja): 洗練された ftp/http クライアント
 Name: lftp
-Version: 4.8.3
-Release: 3%{?_dist_release}
+Version: 4.8.4
+Release: 1%{?_dist_release}
 License: GPLv3
 Group: Applications/Internet
 URL: http://lftp.yar.ru/
 
-Source: http://ftp.yars.free.net/pub/source/lftp/lftp-%{version}.tar.xz
+Source: http://lftp.yar.ru/ftp/lftp-%{version}.tar.xz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: expat-devel
@@ -54,11 +54,21 @@ LFTP のユーティリティスクリプトです。
 # msgmerge -v %{SOURCE10} po/ja.po.orig -o po/ja.po
 
 %build
+CFLAGS="%{optflags}"
+CXXFLAGS="%{optflags}"
+LDFLAGS="-L`pwd`/src/.libs $LDFLAGS"
+
 if pkg-config openssl ; then
-        CPPFLAGS=`pkg-config --cflags openssl`; export CPPFLAGS
-        LDFLAGS=`pkg-config --libs-only-L openssl`; export LDFLAGS
+    OPENSSL_CPPFLAGS=`pkg-config --cflags openssl`;
+    OPENSSL_LDFLAGS=`pkg-config --libs-only-L openssl`;
+    CPPFLAGS="$CPPFLAGS $OPENSSL_CPPFLAGS"
+    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
 fi
-LDFLAGS="-L`pwd`/src/.libs $LDFLAGS"; export LDFLAGS
+
+export CFLAGS
+export CXXFLAGS
+export LDFLAGS
+
 %configure --with-modules --disable-static --with-openssl
 export tagname=CC
 make %{?_smp_mflags}
@@ -81,7 +91,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(-,root,root)
-%doc README README.modules FAQ THANKS COPYING
+%license COPYING
+%doc README README.modules FAQ THANKS
 %doc TODO NEWS FEATURES
 %config(noreplace) %{_sysconfdir}/lftp.conf
 %{_bindir}/*
@@ -95,13 +106,17 @@ rm -rf $RPM_BUILD_ROOT
 # %{_libdir}/lftp/%{version}/liblftp-getdate.so
 %{_libdir}/lftp/%{version}/liblftp-pty.so
 %{_libdir}/lftp/%{version}/proto-*.so
-
+%{_datadir}/applications/lftp.desktop
+%{_datadir}/icons/hicolor/48x48/apps/lftp-icon.png
 
 %files scripts
 %defattr(-,root,root,-)
 %{_datadir}/lftp
 
 %changelog
+* Wed Oct 02 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.8.4-1
+- new upstream release.
+
 * Sat Aug 31 2019 Toshiaki Ara <ara_t@384.jp> 4.8.3-3
 - rebuild with readline-8.0 and ncurses-6.1