hfsutils-vl.spec 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. Summary: Tools for reading and writing Macintosh HFS volumes.
  2. Summary(ja): Macintosh HFS ボリュームの読み書きを行うツール
  3. Name: hfsutils
  4. Version: 3.2.6
  5. Release: 8%{?_dist_release}
  6. Group: Applications/System
  7. License: GPL
  8. Source: ftp://ftp.mars.org/pub/hfs/%{name}-%{version}.tar.gz
  9. Patch0: hfsutils-3.2.6-errno.patch
  10. Patch1: hfsutils-3.2.6-largefile.patch
  11. ## Vine Source(s)/Patch(es)
  12. Source100: hfsutils-man-ja.tar.gz
  13. Patch100: hfsutils-3.2.6-Makefile.patch
  14. URL: http://www.mars.org/home/rob/proj/hfs/
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. Requires: tcl
  17. BuildRequires: tcl tk
  18. %package devel
  19. Summary: A C library for reading and writing Macintosh HFS volumes.
  20. Summary(ja): Macintosh HFS ボリュームの読み書きを行う為の C ライブラリ
  21. Group: Development/Libraries
  22. %package x11
  23. Summary: A Tk-based front end for browsing and copying files on Macintosh HFS volumes.
  24. Summary(ja): Macintosh HFS ボリュームアクセス用 Tk フロントエンド
  25. Group: Applications/System
  26. Requires: tcl tk
  27. Obsoletes: xhfs
  28. %description
  29. HFS (Hierarchical File System) is the native volume format found on
  30. modern Macintosh computers. Hfsutils provides utilities for accessing
  31. HFS volumes from Linux and UNIX systems. Hfsutils contains several
  32. command-line programs which are comparable to mtools.
  33. %description -l ja
  34. HFS (Hierarchical File System) は Macintosh コンピュータ用の
  35. ボリュームフォーマットです.hfsutils は Linux や UNIX から
  36. この HFS ボリュームにアクセスする為のツールを提供します.
  37. mtools と互換性のあるコマンドラインプログラムを含んでいます.
  38. %description devel
  39. The hfsutils-devel package provides a C library for low-level access
  40. to Macintosh volumes. HFS (Hierarchical File System) is the native
  41. volume format found on modern Macintosh computers. The C library can
  42. be linked with other programs to allow them to manipulate Macintosh
  43. files in their native format. Other HFS accessing utilities, which
  44. are comparable to mtools, are included in the hfsutils package.
  45. %description devel -l ja
  46. hfsutils-devel パッケージは Macintosh ボリュームへの低レベル
  47. アクセスの為の C ライブラリを提供します.HFS (Hierarchical
  48. File System) は Macintosh コンピュータ用のボリュームフォーマット
  49. です.C ライブラリはリンク可能で,いろいろなプログラムから
  50. Macintosh ボリューム上のファイルへのアクセスが可能になります.
  51. mtools と互換性のあるいろいろなユーティリティは hfsutils パッケージに
  52. 納められています.
  53. %description x11
  54. The hfsutils-x11 package includes a Tk-based front end for browsing
  55. and copying files, and a Tcl package and interface for scriptable access
  56. to volumes. A C library for low-level access to volumes is included in the
  57. hfsutils-devel package.
  58. %description x11 -l ja
  59. hfsutils-x11 パッケージには、Macintosh HFS ボリュームにアクセスするための
  60. Tk ベースのフロントエンドが収録されています。
  61. %prep
  62. %setup -q -a 100
  63. %patch0 -p1
  64. %patch1 -p0
  65. %build
  66. %{configure} --with-tcl=%{_libdir} --with-tk=%{_libdir}
  67. make
  68. make hfsck/hfsck
  69. %install
  70. rm -rf $RPM_BUILD_ROOT
  71. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  72. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  73. mkdir -p $RPM_BUILD_ROOT%{_includedir}
  74. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  75. make BINDEST=$RPM_BUILD_ROOT%{_bindir} \
  76. LIBDEST=$RPM_BUILD_ROOT%{_libdir} \
  77. INCDEST=$RPM_BUILD_ROOT%{_includedir} \
  78. MANDEST=$RPM_BUILD_ROOT%{_mandir} \
  79. install install_lib
  80. install -m0755 hfsck/hfsck $RPM_BUILD_ROOT/%{_bindir}
  81. ln -sf hfsck $RPM_BUILD_ROOT/%{_bindir}/fsck.hfs
  82. # install Japanese man pages
  83. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/ja/man1
  84. install -m 644 hfsutils-man-ja/* ${RPM_BUILD_ROOT}%{_mandir}/ja/man1/.
  85. gzip -9nvf ${RPM_BUILD_ROOT}%{_mandir}/man1/*
  86. gzip -9nvf ${RPM_BUILD_ROOT}%{_mandir}/ja/man1/*
  87. find $RPM_BUILD_ROOT -type f -or -type l | \
  88. sed -e "s|$RPM_BUILD_ROOT||" |
  89. grep -v 'xhfs' | \
  90. grep -v '%{_includedir}' | \
  91. grep -v '%{_libdir}' > hfsutils.filelist
  92. %clean
  93. rm -rf $RPM_BUILD_ROOT
  94. %files -f hfsutils.filelist
  95. %defattr(-,root,root)
  96. %doc CHANGES COPYING COPYRIGHT CREDITS INSTALL README TODO
  97. %files x11
  98. %defattr(-,root,root)
  99. %{_bindir}/xhfs
  100. %{_mandir}/man1/xhfs.1.*
  101. %{_mandir}/ja/man1/xhfs.1.*
  102. %files devel
  103. %defattr(-,root,root)
  104. %{_libdir}/libhfs.a
  105. %{_libdir}/librsrc.a
  106. %{_includedir}/hfs.h
  107. %{_includedir}/rsrc.h
  108. %changelog
  109. * Sun Jul 27 2008 Shu KONNO <owa@bg.wakwak.com> 3.2.6-8vl5
  110. - applied new versioning policy and spec in utf-8
  111. * Mon May 21 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.2.6-7vl3
  112. - rebuilt with new toolchain
  113. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2.6-7vl2
  114. - changed Group to Applications/System
  115. * Thu Aug 31 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.2.6-7vl1
  116. - import errno/largefile patches into 3.2.6-3vl6
  117. * Wed Mar 2 2005 David Woodhouse <dwmw2@redhat.com> 3.2.6-7
  118. - Rebuild with gcc 4
  119. * Sun Feb 20 2005 David Woodhouse <dwmw2@redhat.com> 3.2.6-6
  120. - Handle files larger than 2GiB
  121. - Include hfsck
  122. * Mon Feb 14 2005 David Woodhouse <dwmw2@redhat.com> 3.2.6-5
  123. - s/Copyright:/License:/ (sic)
  124. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 3.2.6-4
  125. - rebuilt
  126. * Mon Apr 19 2004 David Woodhouse <dwmw2@redhat.com> 3.2.6-3
  127. - BuildRequires tk-devel
  128. * Sun Apr 11 2004 David Woodhouse <dwmw2@redhat.com> 3.2.6-2.1
  129. - Adjust configure invocation to find tcl in %%{_libdir}
  130. * Sun Apr 11 2004 David Woodhouse <dwmw2@redhat.com> 3.2.6-2
  131. - Require tcl
  132. * Fri Apr 09 2004 David Woodhouse <dwmw2@redhat.com> 3.2.6-1
  133. - Fix BuildRequires, include errno.h in tclhfs.c, use %%{configure}
  134. * Wed Oct 02 2002 Dan Burcaw <dburcaw@terrasoftsolutions.com>
  135. - Anubis rebuild
  136. * Fri Mar 30 2001 Dan Burcaw <dburcaw@terrasoftsolutions.com>
  137. - split xhfs into its own package
  138. * Fri Feb 11 2000 Tim Powers <timp@redhat.com>
  139. - gzip manpages, strip binaries
  140. * Thu Jul 15 1999 Tim Powers <timp@redhat.com>
  141. - added %defattr
  142. - rebuilt for 6.1
  143. * Thu Apr 15 1999 Michael Maher <mike@redhat.com>
  144. - built package for 6.0
  145. - updated source
  146. * Thu Aug 20 1998 Michael Maher <mike@redhat.com>
  147. - built package