perl-openpkg.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## perl-openpkg.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package version
  24. %define V_perl 5.10
  25. # package information
  26. Name: perl-openpkg
  27. Summary: OpenPKG Perl Module Build Utility
  28. URL: -
  29. Vendor: The OpenPKG Project
  30. Packager: OpenPKG Foundation e.V.
  31. Distribution: OpenPKG Community
  32. Class: BASE
  33. Group: Perl
  34. License: PD
  35. Version: %{V_perl}
  36. Release: 20090904
  37. # list of sources
  38. Source0: perl-openpkg.pl
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040217, perl >= %{V_perl}
  43. PreReq: OpenPKG, openpkg >= 20040217, perl >= %{V_perl}
  44. PreReq: gcc
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. perl-openpkg is a small OpenPKG-specific packaging utility which
  49. simplifies the build procedures in the various OpenPKG packages
  50. which include Perl modules. It is intended for internal use by those
  51. OpenPKG packages only.
  52. %track
  53. prog perl-openpkg = {
  54. disabled
  55. comment = "rse: no vendor tarball possible, because we are the vendor ;-)"
  56. version = 0
  57. url = http://cvs.openpkg.org/openpkg-src/
  58. regex = perl-openpkg.sh
  59. }
  60. %prep
  61. %setup -T -c
  62. cp %{SOURCE perl-openpkg.pl} .
  63. %build
  64. %{l_prefix}/bin/pod2man \
  65. --quotes=none \
  66. --section=1 --center='OpenPKG Perl Module Build Utility' \
  67. --release="%{release}" --date='%{l_openpkg_release}' \
  68. perl-openpkg.pl >perl-openpkg.1
  69. %install
  70. rm -rf $RPM_BUILD_ROOT
  71. %{l_shtool} mkdir -f -p -m 755 \
  72. $RPM_BUILD_ROOT%{l_prefix}/bin \
  73. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  74. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  75. perl-openpkg.pl \
  76. $RPM_BUILD_ROOT%{l_prefix}/bin/perl-openpkg
  77. %{l_shtool} install -c -m 644 \
  78. perl-openpkg.1 \
  79. $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT