e2tools-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. Summary: Manipulate files in unmounted ext2/ext3 filesystems
  2. Summary(ja): マウントされていない ext2/ext3 ファイルシステム内のファイルを操作するツール
  3. Name: e2tools
  4. Version: 0.0.16
  5. Release: 1%{?_dist_release}
  6. Group: Applications/System
  7. # No version specified.
  8. License: GPL+
  9. URL: http://home.earthlink.net/~k_sheff/sw/e2tools/
  10. Source0: http://home.earthlink.net/~k_sheff/sw/e2tools/e2tools-0.0.16.tar.gz
  11. Source1: e2tools-test.sh
  12. # Thank you very much for the man pages from Debian package.
  13. Source2: e2cp.1
  14. Source3: e2ln.1
  15. Source4: e2ls.1
  16. Source5: e2mkdir.1
  17. Source6: e2mv.1
  18. Source7: e2rm.1
  19. Source8: e2tail.1
  20. Source9: e2tools.7
  21. Patch1: e2tools-fedora-fixes.patch
  22. Patch2: e2tools-printf-lld-64bit.patch
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  24. BuildRequires: e2fsprogs-devel >= 1.27
  25. %if 0%{?fedora} >= 12
  26. BuildRequires: libcom_err-devel
  27. %endif
  28. # For e2tools-test.sh
  29. BuildRequires: e2fsprogs, diffutils
  30. %description
  31. A simple set of utilities to read, write, and manipulate files in an
  32. ext2/ext3 filesystem directly using the ext2fs library. This works
  33. - without root access
  34. - without the filesystem being mounted
  35. - without kernel ext2/ext3 support
  36. The utilities are: e2cp e2ln e2ls e2mkdir e2mv e2rm e2tail
  37. %description -l ja
  38. ext2/ext3 ファイルシステム内のファイルを、ext2fs ライブラリを使って
  39. 直接読み・書き・操作するためのシンプルなユーティリティ群です。次の
  40. ような特徴を持っています。
  41. - root 権限が不要
  42. - ファイルシステムのマウントが不要
  43. - カーネルの ext2/ext3 サポート不要
  44. %prep
  45. %setup -q
  46. %patch1 -p1 -b .fedora-fixes
  47. %patch2 -p1 -b .printf-lld-64bit
  48. %build
  49. %configure
  50. %{__make} %{?_smp_mflags} CPPFLAGS="-Wall -Werror"
  51. %check
  52. # Run tests
  53. for e in e2ln e2ls e2mkdir e2mv e2rm e2tail; do
  54. %{__ln_s} e2cp $e
  55. done
  56. sh %{SOURCE1}
  57. %install
  58. %{__rm} -rf $RPM_BUILD_ROOT
  59. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  60. %{__install} -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man1/
  61. %{__install} -p -m 0644 \
  62. %{SOURCE2} \
  63. %{SOURCE3} \
  64. %{SOURCE4} \
  65. %{SOURCE5} \
  66. %{SOURCE6} \
  67. %{SOURCE7} \
  68. %{SOURCE8} \
  69. $RPM_BUILD_ROOT%{_mandir}/man1/
  70. %{__install} -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man7/
  71. %{__install} -p -m 0644 %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/man7/
  72. %clean
  73. %{__rm} -rf $RPM_BUILD_ROOT
  74. %files
  75. %defattr(-,root,root,-)
  76. %doc README COPYING ChangeLog TODO AUTHORS
  77. %{_bindir}/e2cp
  78. %{_bindir}/e2ln
  79. %{_bindir}/e2ls
  80. %{_bindir}/e2mkdir
  81. %{_bindir}/e2mv
  82. %{_bindir}/e2rm
  83. %{_bindir}/e2tail
  84. %doc %{_mandir}/man1/e2cp.1.gz
  85. %doc %{_mandir}/man1/e2ln.1.gz
  86. %doc %{_mandir}/man1/e2ls.1.gz
  87. %doc %{_mandir}/man1/e2mkdir.1.gz
  88. %doc %{_mandir}/man1/e2mv.1.gz
  89. %doc %{_mandir}/man1/e2rm.1.gz
  90. %doc %{_mandir}/man1/e2tail.1.gz
  91. %doc %{_mandir}/man7/e2tools.7.gz
  92. %changelog
  93. * Thu Mar 24 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.16-1
  94. - initial build for Vine Linux
  95. * Wed Feb 9 2011 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.0.16-17
  96. - Remove unused code parts triggering new gcc warning in f15
  97. * Wed Feb 9 2011 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.0.16-16
  98. - Fix CVS keyword substitution breaking our patch file
  99. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.16-15
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  101. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.16-14
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  103. * Sat Jul 18 2009 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.0.16-13
  104. - Add libcom_err-devel buildreq on F12 and later (e2fsprogs-devel split)
  105. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.16-12
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  107. * Thu Jul 17 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.0.16-11
  108. - fix license tag
  109. * Mon Feb 11 2008 Andreas Thienemann <andreas@bawue.net> - 0.0.16-10
  110. - Rebuild against gcc-4.3
  111. * Sun Dec 9 2007 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.0.16-9
  112. - Use format string macro from inttypes.h and uint64_t (#349851).
  113. * Sat Dec 8 2007 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.0.16-8
  114. - Special __u64 formatstring on 64bit platforms (#349851).
  115. - Reintroduce -Werror for all platforms.
  116. - Install man pages without x bit.
  117. * Sat Dec 8 2007 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.0.16-6
  118. - Cowardly avoid compiling with -Werror on alpha.
  119. - Install files preserving timestamps where possible.
  120. - Use RPM macros for shell commands where possible.
  121. * Mon Jul 31 2006 Andreas Thienemann <andreas@bawue.net> - 0.0.16-5
  122. - fix broken cast in rm.c:248 (exhibited on x86_64, but buggy everywhere) from Hans Ulrich Niedermann
  123. * Mon Jul 17 2006 Andreas Thienemann <andreas@bawue.net> - 0.0.16-4
  124. - Introduced %%check
  125. * Mon Jul 17 2006 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.0.16-3
  126. - initial package for fedora extras