diffutils-vl.spec 6.9 KB

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