rdist.spec 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ##
  2. ## rdist.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package versions
  26. %define V_base 7.0.0
  27. %define V_pl alpha10
  28. # package information
  29. Name: rdist
  30. Summary: Remote File Distribution
  31. URL: http://www.magnicomp.com/rdist/
  32. Vendor: MagniComp
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [EVAL]
  35. Group: Filesystem
  36. License: BSD
  37. Version: %{V_base}
  38. Release: 20030224
  39. # list of sources
  40. Source0: http://www.magnicomp.com/download/rdist/rdist-%{V_base}-%{V_pl}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20020206, make, gcc, bison
  45. PreReq: OpenPKG, openpkg >= 20020206
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. RDist is an open source program to maintain identical copies of files
  50. over multiple hosts. It preserves the owner, group, mode, and mtime of
  51. files if possible and can update programs that are executing.
  52. Almost all versions of UNIX include RDist. However, most that do include a
  53. very old version sometimes referred to as "4.2BSD rdist", "rdist classic",
  54. or "rdist version 3".
  55. %prep
  56. %setup -q -n %{name}-%{V_base}-%{V_pl}
  57. %build
  58. CC="%{l_cc}" \
  59. CFLAGS="%{l_cflags -O}" \
  60. ./configure \
  61. --prefix=%{l_prefix}
  62. %{l_make} %{l_mflags -O}
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/bin \
  67. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  68. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  69. $RPM_BUILD_ROOT%{l_prefix}/man/man8
  70. %{l_shtool} install -c -s -m 755 \
  71. src/rdist \
  72. $RPM_BUILD_ROOT%{l_prefix}/bin/
  73. %{l_shtool} install -c -s -m 755 \
  74. src/rdistd \
  75. $RPM_BUILD_ROOT%{l_prefix}/sbin/
  76. %{l_shtool} install -c -m 644 \
  77. doc/rdist.man \
  78. $RPM_BUILD_ROOT%{l_prefix}/man/man1/rdist.1
  79. %{l_shtool} install -c -m 644 \
  80. doc/rdistd.man \
  81. $RPM_BUILD_ROOT%{l_prefix}/man/man8/rdistd.8
  82. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  83. %files -f files
  84. %clean
  85. rm -rf $RPM_BUILD_ROOT