diffutils-vl.spec 7.1 KB

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