mtools.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. ##
  2. ## mtools.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package version
  25. %define V_base 3.9.11
  26. %define V_patch 20071226
  27. # package information
  28. Name: mtools
  29. Summary: Access MS-DOS disks from Unix without mounting
  30. URL: http://mtools.linux.lu/
  31. Vendor: Alain Knaff
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: PLUS
  35. Group: Filesystem
  36. License: GPL
  37. Version: %{V_base}
  38. Release: 20071227
  39. # list of sources
  40. Source0: http://mtools.linux.lu/mtools-%{V_base}.tar.gz
  41. Patch0: mtools.patch
  42. # build information
  43. Prefix: %{l_prefix}
  44. BuildRoot: %{l_buildroot}
  45. BuildPreReq: OpenPKG, openpkg >= 20040130, texinfo, make, gcc
  46. PreReq: OpenPKG, openpkg >= 20040130
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Mtools is a collection of utilities to access MS-DOS disks from Unix
  51. without mounting them. It supports Win'95 style long file names,
  52. OS/2 Xdf disks and 2m disks (store up to 1992k on a high density 3
  53. 1/2 disk).
  54. %track
  55. prog mtools = {
  56. version = %{V_base}
  57. url = http://mtools.linux.lu/download.html
  58. regex = mtools-(__VER__)\.tar\.gz
  59. }
  60. prog mtools:patch = {
  61. version = %{V_patch}
  62. url = http://mtools.linux.lu/download.html
  63. regex = mtools-%{V_base}-(__VER__)\.diff\.gz
  64. }
  65. %prep
  66. %setup -q
  67. %patch -p0
  68. %build
  69. CC="%{l_cc}" \
  70. CFLAGS="%{l_cflags -O}" \
  71. ./configure \
  72. --prefix=%{l_prefix} \
  73. --sysconfdir=%{l_prefix}/etc/mtools \
  74. --without-x
  75. %{l_make} %{l_mflags -O}
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. %{l_make} %{l_mflags} install \
  79. MAKEINFO=%{l_prefix}/bin/makeinfo \
  80. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  81. exec_prefix=$RPM_BUILD_ROOT%{l_prefix}
  82. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  83. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  84. %{l_shtool} mkdir -f -p -m 755 \
  85. $RPM_BUILD_ROOT%{l_prefix}/etc/mtools
  86. %{l_shtool} install -c -m 644 \
  87. -e '1,3d' \
  88. mtools.conf $RPM_BUILD_ROOT%{l_prefix}/etc/mtools/
  89. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  90. %{l_files_std} \
  91. '%config %{l_prefix}/etc/mtools/*'
  92. %files -f files
  93. %clean
  94. rm -rf $RPM_BUILD_ROOT