hfsutils-vl.spec 6.4 KB

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