diffutils-vl.spec 6.7 KB

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