[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/lftp/devel lftp.spec,1.25,1.26

Author: jvdias

Update of /cvs/dist/rpms/lftp/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv6776

Modified Files:
Log Message:
Upgrade to upstream version 3.3.0

Index: lftp.spec
RCS file: /cvs/dist/rpms/lftp/devel/lftp.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- lftp.spec	24 Aug 2005 15:48:48 -0000	1.25
+++ lftp.spec	24 Aug 2005 19:57:03 -0000	1.26
@@ -6,9 +6,12 @@
 Group: Applications/Internet
 Source0: http://ftp.yars.free.net/pub/software/unix/net/ftp/client/lftp/lftp-%{version}.tar.bz2
 Source1: http://ftp.yars.free.net/pub/software/unix/net/ftp/client/lftp/lftp-%{version}.tar.bz2.asc
+#Source2: http://search.cpan.org/CPAN/authors/id/S/SO/SOENKE/String-CRC32-1.3.tar.gz
+Source2: String-CRC32-1.3.tar.gz
 URL: http://lftp.yar.ru/
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildPrereq: ncurses-devel, openssl-devel, pkgconfig, readline-devel
+BuildPrereq: ncurses-devel, openssl-devel, pkgconfig, readline-devel, perl
+Provides: perl(String::CRC32), perl-String-CRC32
 LFTP is a sophisticated ftp/http file transfer program. Like bash, it has job
@@ -28,6 +31,11 @@
 %configure --with-modules --disable-static --with-ssl --with-debug
 export tagname=CC
 make LIBTOOL=%{_bindir}/libtool
+gunzip < %SOURCE2 | tar -xpf -
+pushd String-CRC32-1.3
+CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix}  < /dev/null
@@ -36,11 +44,22 @@
 rm -f $RPM_BUILD_ROOT%{_libdir}/lftp/%{version}/*.la
 chmod 0755 $RPM_BUILD_ROOT%{_libdir}/lftp/*
 chmod 0755 $RPM_BUILD_ROOT%{_libdir}/lftp/%{version}/*.so
 # Remove files from $RPM_BUILD_ROOT that we aren't shipping.
 rm -f $RPM_BUILD_ROOT%{_libdir}/lftp/%{version}/*.a
+# Build the String::CRC32 module, required by new verify-file script
+pushd String-CRC32-1.3 >/dev/null 2>&1
+eval `perl '-V:installarchlib' '-V:installprefix' '-V:installstyle'`
+mkdir -p $RPM_BUILD_ROOT$installarchlib
+# Remove files from String::CRC32 that could cause problems (from cpanflute2):
+find $RPM_BUILD_ROOT$perldir -type f -a \( -name perllocal.pod -o -name .packlist \
+  -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
+find $RPM_BUILD_ROOT$perldir -type d -depth -exec rmdir {} 2>/dev/null ';'
+popd >/dev/null 2>&1
 %find_lang %{name}
+# append String::CRC32 module files onto .lang files list:
+find $RPM_BUILD_ROOT$perldir -type f | sed "s#$RPM_BUILD_ROOT##" >> %{name}.lang

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]