Name: mirror License: Distributable Group: Applications/Internet Version: 2.9 Release: 13.%{mysig} Summary: A Perl program for mirroring FTP sites. URL: http://sunsite.org.uk/packages/mirror/ Source: http://sunsite.org.uk/packages/mirror/%{name}.tar.gz Patch: mirror-2.9.patch Patch1: mirror-2.9.ftp-ls-timeout.patch Patch2: mirror-2.9.y2k-fix.patch Patch3: mirror-2.9.name_map-default.patch Patch4: mirror-2.9.gzip.patch Patch5: mirror-exec-path.dif Patch6: mirror-2.9.lstes-perlpath.patch Patch7: mirror-2.9.utf.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch # PerlModule lsparse.pl is not detected Provides: perl(lsparse.pl) perl(dateconv.pl) perl(lftp.pl) %description Mirror uses the FTP protocol to duplicate a directory hierarchy between its local host and a remote host. Mirror avoids unnecessarily copying files by comparing the file timestamps and sizes before transfer. Mirror is also optionally capable of compressing, gzipping and splitting files. Mirror was written for the use of archive maintainers but can be used by anyone who needs to transfer a large number of files via FTP. %prep %setup -c %patch %patch1 %patch2 %patch3 %patch4 %patch5 -p0 %patch6 -p1 %patch7 -p1 %build %install rm -rf $RPM_BUILD_ROOT eval `perl '-V:installvendorlib'` mkdir -p $RPM_BUILD_ROOT/$installvendorlib mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 make "PLDIR=$RPM_BUILD_ROOT/$installvendorlib" \ "BINDIR=$RPM_BUILD_ROOT/%{_bindir}" \ "MANDIR=$RPM_BUILD_ROOT/%{_mandir}/man1" install pushd $RPM_BUILD_ROOT/usr/bin/ ln -sf mirror-master mm popd install -m 644 mirror.defaults $RPM_BUILD_ROOT/%{_sysconfdir} pushd $RPM_BUILD_ROOT/$installvendorlib ls -l rm -f mirror.defaults ln -s ../../../../..%{_sysconfdir}/mirror.defaults ls -l popd [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT/usr -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" | \ grep -v perllocal.pod | \ grep -v "\.packlist" > mirror-%{version}-filelist if [ "$(cat mirror-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi echo $installvendorlib/mirror.defaults >> mirror-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT %files -f mirror-%{version}-filelist %defattr(-,root,root) %doc README.txt *.html CHANGES* %doc mirror.nightly support/cyber-patches support/lstest.pl %config(noreplace) %{_sysconfdir}/mirror.defaults %changelog * Sat Aug 26 2006 Milan Kerslager 2.9-13.ker.rhel4 - rebuild for RHEL4, no change * Wed Dec 17 2003 Milan Kerslager 2.9-12 - initial release - patches from mirror-2.9-661.src.rpm from SUSE 9.0 - patch for UTF-8 environment