mirror-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #%define mirror_dir %{_prefix}/lib/mirror
  2. %define mirror_dir %{perl_vendorlib}/mirror
  3. Summary: Perl program to mirror FTP sites
  4. Summary(ja): FTP サイトをミラーする Perl のプログラム
  5. Name: mirror
  6. Version: 2.9
  7. Release: 7%{?_dist_release}
  8. Group: Applications/Internet
  9. License: distributable
  10. Source: mirror-%{version}.tar.gz
  11. Patch0: mirror-2.9.patch
  12. Patch1: mirror-get-older.patch
  13. Patch2: ftp.pl_wupatch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildArch: noarch
  16. URL: http://sunsite.org.uk/packages/mirror/
  17. Provides: perl(dateconv.pl) perl(lsparse.pl)
  18. %description
  19. Mirror was designed to duplicate a directory hierarchy between two
  20. machines. It avoids copying files unnecessarily by comparing the file
  21. time-stamps and file sizes before transferring. Mirror was writen by
  22. Lee McLoughlin <lmjm@icparc.ic.ac.uk>.
  23. %prep
  24. %setup -c -q
  25. %patch0
  26. %patch1 -b .older~ -p1
  27. %patch2
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  31. mkdir -p $RPM_BUILD_ROOT%{mirror_dir}
  32. mkdir -p $RPM_BUILD_ROOT%{_mandir}
  33. mkdir -p $RPM_BUILD_ROOT/etc
  34. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  35. make \
  36. "PLDIR=$RPM_BUILD_ROOT%{mirror_dir}" \
  37. "BINDIR=$RPM_BUILD_ROOT%{_bindir}" \
  38. "MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1" \
  39. install
  40. install -m 644 mirror.defaults $RPM_BUILD_ROOT/etc
  41. ln -sf ../../../etc/mirror.defaults $RPM_BUILD_ROOT%{mirror_dir}/mirror.defaults
  42. ln -sf %{mirror_dir}/mirror.pl $RPM_BUILD_ROOT%{_bindir}/mirror
  43. ln -sf mm $RPM_BUILD_ROOT%{_bindir}/mirror-master
  44. ln -sf mm.1 $RPM_BUILD_ROOT%{_mandir}/man1/mirror-master.1
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %files
  48. %defattr(-,root,root)
  49. %doc *.txt *.html mmin mirror.nightly *.class
  50. %doc support/cyber-patches support/lstest.pl
  51. %config /etc/mirror.defaults
  52. %{_bindir}/do_unlinks
  53. %{_bindir}/mirror
  54. %{_bindir}/mm
  55. %{_bindir}/mirror-master
  56. %{_bindir}/pkgs_to_mmin
  57. %{mirror_dir}/dateconv.pl
  58. %{mirror_dir}/ftp.pl
  59. %{mirror_dir}/lchat.pl
  60. %{mirror_dir}/lsparse.pl
  61. %{mirror_dir}/mirror.defaults
  62. %{mirror_dir}/mirror.pl
  63. %{_mandir}/man1/mirror.1*
  64. %{_mandir}/man1/mm.1*
  65. %{_mandir}/man1/mirror-master.1*
  66. %changelog
  67. * Sat Oct 04 2008 Shu KONNO <owa@bg.wakwak.com> 2.9-7vl5
  68. - applied new versioning policy, spec in utf-8
  69. - added macro %%mirror_dir
  70. * Sat Nov 12 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.9-6vl4
  71. - rebuild with new toolchains
  72. - s/Copyright/License/
  73. - changed Group:
  74. * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  75. - 2.9-6vl2
  76. - use better macros
  77. * Fri Sep 22 2000 MACHINO, Satoshi <mac@netfort.gr.jp> 2.9-6vl1
  78. - modified %files section to handle compressed man pages
  79. * Wed Nov 10 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  80. - added a patch to fix problems when connecting to wu-ftpd-2.6 server
  81. * Sat Dec 5 1998 David Fox <dsf@tp560.net>
  82. - Added the get_older option, set to false to avoid overwriting newer files.
  83. * Mon Sep 14 1998 root <dsf@pipeline.ucsd.edu>
  84. - Fixed code that put double slash at start of paths when recursing, this
  85. confuses the War FTP daemon.
  86. * Tue Jun 23 1998 Peter Soos <sp@osb.hu>
  87. - Using %attr
  88. * Tue Jun 2 1998 Anthony Rumble <anthony@infotainment.com.au>
  89. - Updated to Mirror v2.9
  90. * Tue Dec 9 1997 Peter Soos <sp@osb.hu>
  91. - Moved to noarch architecture
  92. - Using BuildRoot