perl-openpkg.spec 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ##
  2. ## perl-openpkg.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 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 version
  26. %define V_perl 5.8.3
  27. # package information
  28. Name: perl-openpkg
  29. Summary: OpenPKG Perl Module Build Utility
  30. URL: -
  31. Vendor: The OpenPKG Project
  32. Packager: The OpenPKG Project
  33. Distribution: OpenPKG
  34. Class: BASE
  35. Group: Language
  36. License: PD
  37. Version: %{V_perl}
  38. Release: 20040218
  39. # list of sources
  40. Source0: perl-openpkg.pl
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040217, perl >= %{V_perl}
  45. PreReq: OpenPKG, openpkg >= 20040217, perl >= %{V_perl}
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. perl-openpkg is a small OpenPKG-specific packaging utility which
  50. simplifies the build procedures in the various OpenPKG packages
  51. which include Perl modules. It is intended for internal use by those
  52. OpenPKG packages only.
  53. %track
  54. prog perl-openpkg = {
  55. disabled
  56. comment = "rse: no vendor tarball possible, because we are the vendor ;-)"
  57. version = 0
  58. url = http://cvs.openpkg.org/openpkg-src/
  59. regex = perl-openpkg.sh
  60. }
  61. %prep
  62. %setup -T -c
  63. cp %{SOURCE perl-openpkg.pl} .
  64. %build
  65. %{l_prefix}/bin/pod2man \
  66. --quotes=none \
  67. --section=1 --center='OpenPKG Perl Module Build Utility' \
  68. --release="%{release}" --date='%{l_openpkg_release}' \
  69. perl-openpkg.pl >perl-openpkg.1
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. %{l_shtool} mkdir -f -p -m 755 \
  73. $RPM_BUILD_ROOT%{l_prefix}/bin \
  74. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  75. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  76. perl-openpkg.pl \
  77. $RPM_BUILD_ROOT%{l_prefix}/bin/perl-openpkg
  78. %{l_shtool} install -c -m 644 \
  79. perl-openpkg.1 \
  80. $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  81. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  82. %files -f files
  83. %clean
  84. rm -rf $RPM_BUILD_ROOT