openpkg-tools.spec 2.8 KB

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