rdist.spec 3.2 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. # FIXME: rse: does not compile under FreeBSD 4!
  26. # package versions
  27. %define V_base 7.0.0
  28. %define V_pl alpha10
  29. %define V_opkg 7.0.0a10
  30. # package information
  31. Name: rdist
  32. Summary: Remote File Distribution
  33. URL: http://www.magnicomp.com/rdist/
  34. Vendor: MagniComp
  35. Packager: The OpenPKG Project
  36. Distribution: OpenPKG [JUNK]
  37. Group: Filesystem
  38. License: BSD
  39. Version: %{V_opkg}
  40. Release: 20030614
  41. # list of sources
  42. Source0: http://www.magnicomp.com/download/rdist/rdist-%{V_base}-%{V_pl}.tar.gz
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20020206, make, gcc, bison
  47. PreReq: OpenPKG, openpkg >= 20020206
  48. AutoReq: no
  49. AutoReqProv: no
  50. %description
  51. RDist is an open source program to maintain identical copies of
  52. files over multiple hosts. It preserves the owner, group, mode,
  53. and mtime of files if possible and can update programs that are
  54. executing.
  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}
  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