perl-openpkg.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ##
  2. ## perl-openpkg.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 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 version
  25. %define V_perl 5.8.8
  26. # package information
  27. Name: perl-openpkg
  28. Summary: OpenPKG Perl Module Build Utility
  29. URL: -
  30. Vendor: The OpenPKG Project
  31. Packager: OpenPKG
  32. Distribution: OpenPKG
  33. Class: BASE
  34. Group: Perl
  35. License: PD
  36. Version: %{V_perl}
  37. Release: 20060930
  38. # list of sources
  39. Source0: perl-openpkg.pl
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040217, perl >= %{V_perl}
  44. PreReq: OpenPKG, openpkg >= 20040217, perl >= %{V_perl}
  45. PreReq: gcc
  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