openpkg-tools.spec 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. ##
  2. ## openpkg-tools.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.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 information
  26. Name: openpkg-tools
  27. Summary: OpenPKG Tool Chain
  28. URL: http://www.openpkg.org/
  29. Vendor: The OpenPKG Project
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: BASE
  33. Group: Bootstrapping
  34. License: MIT
  35. Version: 0.8.30
  36. Release: 20050218
  37. # package options
  38. %option with_bf no
  39. # list of sources
  40. Source0: ftp://ftp.openpkg.org/sources/CPY/openpkg-tools/openpkg-tools-%{version}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040409
  45. PreReq: OpenPKG, openpkg >= 20040409, perl
  46. %if "%{with_bf}" == "yes"
  47. PreReq: apache, grep, make, openssh, cfg, perl-dbi::with_dbd_sqlite = yes, rsync, screen
  48. %endif
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. This is the OpenPKG Tool Chain, a set of add-on commands and
  53. a Perl Application Programming Interface (API) for OpenPKG.
  54. %track
  55. prog openpkg-tools = {
  56. version = %{version}
  57. url = ftp://ftp.openpkg.org/sources/CPY/openpkg-tools/
  58. regex = openpkg-tools-(__VER__)\.tar\.gz
  59. }
  60. %prep
  61. %setup -q
  62. %build
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/libexec/openpkg-tools \
  67. $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg-tools
  68. cp -r cmd/* $RPM_BUILD_ROOT%{l_prefix}/libexec/openpkg-tools/ || true
  69. cp -r api/* $RPM_BUILD_ROOT%{l_prefix}/lib/openpkg-tools/ || true
  70. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  71. %files -f files
  72. %clean
  73. rm -rf $RPM_BUILD_ROOT