hfsutils-vl.spec 6.2 KB

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