diffutils-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. Summary: A GNU collection of diff utilities.
  2. Summary(ja): GNU diff ユーティリティ集
  3. Name: diffutils
  4. Version: 3.2
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Text
  7. URL: http://www.gnu.org/software/diffutils/diffutils.html
  8. License: GPLv3+
  9. Source: ftp://ftp.gnu.org/gnu/diffutils/diffutils-%{version}.tar.xz
  10. # For 'cmp -s', compare file sizes only if both non-zero (bug #563618).
  11. Patch1: diffutils-cmp-s-empty.patch
  12. # Applied upstream gnulib fix for float test on ppc (bug #733536).
  13. Patch2: diffutils-ppc-float.patch
  14. # Fixed build failure.
  15. Patch3: diffutils-stdio-gets.patch
  16. Patch4: diffutils-3.2-i18n.patch
  17. Requires(post): /sbin/install-info
  18. Requires(preun): /sbin/install-info
  19. Buildroot: %{_tmppath}/%{name}-%{version}-root
  20. BuildRequires: coreutils
  21. %description
  22. Diffutils includes four utilities: diff, cmp, diff3 and sdiff. Diff
  23. compares two files and shows the differences, line by line. The cmp
  24. command shows the offset and line numbers where two files differ, or
  25. cmp can show the characters that differ between the two files. The
  26. diff3 command shows the differences between three files. Diff3 can be
  27. used when two people have made independent changes to a common
  28. original; diff3 can produce a merged file that contains both sets of
  29. changes and warnings about conflicts. The sdiff command can be used
  30. to merge two files interactively.
  31. Install diffutils if you need to compare text files.
  32. %description -l ja
  33. diffutils には diff, cmp, diff3, sdiff の 4つのユーティリティが
  34. 収められています.diff は 2つのファイルを行単位で比較し相違点を
  35. 出力します.cmp コマンドは 2つのファイルの相違点をオフセットと行番号で
  36. 表示できますし,どの文字が異なるかを表示することも出来ます.
  37. diff3 コマンドは 3つのファイルの相違点を出力します.diff3 は
  38. 1つのオリジナルファイルを2人が変更した場合等に良く使われます.
  39. diff3 を使って,2つの変更をマージした変更ファイルを出力することが
  40. 出来ますし,コンフリクトした変更点を出力することも出来ます.
  41. sdiff コマンドは2つのファイルを対話的にマージするのに使います.
  42. テキストファイルを比較したい場合は diffutils をインストールして下さい.
  43. %prep
  44. %setup -q
  45. %patch1 -p1 -b .cmp-s-empty
  46. %patch2 -p1 -b .ppc-float
  47. %patch3 -p1 -b .stdio-gets
  48. %patch4 -p1 -b .i18n
  49. %build
  50. %configure
  51. make PR_PROGRAM=%{_bindir}/pr
  52. %install
  53. rm -rf $RPM_BUILD_ROOT
  54. %__make DESTDIR=$RPM_BUILD_ROOT install
  55. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  56. %find_lang %{name}
  57. %post
  58. /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
  59. %preun
  60. if [ $1 = 0 ]; then
  61. /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
  62. fi
  63. %clean
  64. rm -rf $RPM_BUILD_ROOT
  65. %files -f %{name}.lang
  66. %defattr(-,root,root)
  67. %doc COPYING NEWS README
  68. %{_bindir}/*
  69. %{_mandir}/*/*
  70. %{_infodir}/diffutils.info*gz
  71. %changelog
  72. * Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2-1
  73. - new upstream reelase
  74. - update patches
  75. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-13
  76. - spec in utf-8
  77. * Mon May 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.1-12
  78. - applied new versioning policy
  79. - added BuildRequires: coreutils
  80. * Fri Sep 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-11vl2
  81. - rebuild to add gpg sign
  82. * Fri Mar 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.1-11vl1
  83. - added Patch1 from Fedora 2.8.1-11
  84. * Thu Jan 8 2004 Tim Waugh <twaugh@redhat.com> 2.8.1-10
  85. - Fix mistaken use of '|' instead of '||'.
  86. - fixed typo at description(ja)
  87. * Wed Dec 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.8.1-5vl1
  88. - merge Rawhide's 2.8.1-5 and Vine's 2.8.1-0vl1:
  89. - Sun Sep 29 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-0vl1
  90. - new upstream release 2.8.1
  91. - drop old unneeded patches.
  92. - Mon Jun 18 2001 <sagami@vinelinux.org>
  93. - 2.7.2-0vl3: patch taken from RH's 2.7.2-2 (not in sync, actually)
  94. - Install diff.1, since it's no longer in man-pages.
  95. - Tue Jan 09 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  96. - 2.7.2-0vl2
  97. - use better macros (%%{_localedir})
  98. - %%makeinstall was here again
  99. - added Japanese summary and description
  100. - Mon Jul 3 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
  101. - updated to 2.7.2 (NLS support version)
  102. - added poor gettext_fix patch
  103. - added ja.po from fj.sources
  104. - remove %%makeinstall and use "make install prefix..." for rpm 3.x
  105. * Tue Nov 19 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-5
  106. - i18n patch.
  107. * Tue Oct 22 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-4
  108. - Ship translations.
  109. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  110. - automated rebuild
  111. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  112. - automated rebuild
  113. * Mon Apr 22 2002 Tim Waugh <twaugh@redhat.com> 2.8.1-1
  114. - 2.8.1.
  115. - No longer need immunix-owl-tmp patch.
  116. * Wed Feb 27 2002 Tim Waugh <twaugh@redhat.com> 2.7.2-5
  117. - Rebuild in new environment.
  118. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  119. - automated rebuild
  120. * Fri Nov 02 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-3
  121. - Make sure %%post scriplet doesn't fail if --excludedocs is used.
  122. * Fri Jun 01 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-2
  123. - Install diff.1, since it's no longer in man-pages.
  124. * Fri Mar 30 2001 Tim Waugh <twaugh@redhat.com> 2.7.2-1
  125. - 2.7.2.
  126. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  127. - automatic rebuild
  128. * Thu Jul 06 2000 Trond Eivind Glomsr <teg@redhat.com>
  129. - fix %%changelog entries (escape them)
  130. - update source location
  131. - remove manual stripping
  132. - add URL
  133. * Tue Jun 06 2000 Than Ngo <than@redhat.de>
  134. - add %%defattr
  135. - use rpm macros
  136. * Wed May 31 2000 Ngo Than <than@redhat.de>
  137. - put man pages and info files in correct place
  138. - cleanup specfile
  139. * Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
  140. - rebuild to gzip man pages.
  141. * Mon Apr 19 1999 Jeff Johnson <jbj@redhat.com>
  142. - man pages not in %%files.
  143. - but avoid conflict for diff.1
  144. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  145. - auto rebuild in the new build environment (release 14)
  146. * Sun Mar 14 1999 Jeff Johnson <jbj@redhat.com>
  147. - add man pages (#831).
  148. - add %%configure and Prefix.
  149. * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
  150. - build for glibc 2.1
  151. * Tue Jul 14 1998 Bill Kawakami <billk@home.com>
  152. - included the four man pages stolen from Slackware
  153. * Tue May 05 1998 Prospector System <bugs@redhat.com>
  154. - translations modified for de, fr, tr
  155. * Sun May 03 1998 Cristian Gafton <gafton@redhat.com>
  156. - fixed spec file to reference/use the $RPM_BUILD_ROOT always
  157. * Wed Dec 31 1997 Otto Hammersmith <otto@redhat.com>
  158. - fixed where it looks for 'pr' (/usr/bin, rather than /bin)
  159. * Fri Oct 17 1997 Donnie Barnes <djb@redhat.com>
  160. - added BuildRoot
  161. * Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
  162. - uses install-info
  163. * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
  164. - built against glibc