perl-par.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. ##
  2. ## perl-par.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. # versions of individual parts
  24. %define V_perl 5.10.0
  25. %define V_par_dist 0.45
  26. %define V_par 0.994
  27. %define V_par_packer 0.991
  28. # package information
  29. Name: perl-par
  30. Summary: Perl Modules for use with Perl Archive
  31. URL: http://www.cpan.org/
  32. Vendor: Perl Community
  33. Packager: OpenPKG Foundation e.V.
  34. Distribution: OpenPKG Community
  35. Class: BASE
  36. Group: Perl
  37. License: GPL/Artistic
  38. Version: %{V_perl}
  39. Release: 20090726
  40. # list of sources
  41. Source0: http://www.cpan.org/modules/by-module/PAR/PAR-Dist-%{V_par_dist}.tar.gz
  42. Source1: http://www.cpan.org/modules/by-module/PAR/PAR-%{V_par}.tar.gz
  43. Source2: http://www.cpan.org/modules/by-module/PAR/PAR-Packer-%{V_par_packer}.tar.gz
  44. Patch0: perl-par.patch
  45. # build information
  46. Prefix: %{l_prefix}
  47. BuildRoot: %{l_buildroot}
  48. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  49. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  50. BuildPreReq: perl-comp, perl-sys, perl-crypto, perl-module, perl-parse
  51. PreReq: perl-comp, perl-sys, perl-crypto, perl-module, perl-parse
  52. AutoReq: no
  53. AutoReqProv: no
  54. %description
  55. Perl modules for use with Perl archive:
  56. - PAR::Dist (%{V_par_dist})
  57. - PAR (%{V_par})
  58. - PAR::Packer (%{V_par_packer})
  59. %track
  60. prog perl-par:PAR-Dist = {
  61. version = %{V_par_dist}
  62. url = http://www.cpan.org/modules/by-module/PAR/
  63. regex = PAR-Dist-(__VER__)\.tar\.gz
  64. }
  65. prog perl-par:PAR = {
  66. version = %{V_par}
  67. url = http://www.cpan.org/modules/by-module/PAR/
  68. regex = PAR-(__VER__)\.tar\.gz
  69. }
  70. prog perl-par:PAR-Packer = {
  71. version = %{V_par_packer}
  72. url = http://www.cpan.org/modules/by-module/PAR/
  73. regex = PAR-Packer-(__VER__)\.tar\.gz
  74. }
  75. %prep
  76. %setup -q -c
  77. %setup -q -T -D -a 1
  78. %setup -q -T -D -a 2
  79. %patch -p0
  80. %build
  81. %install
  82. rm -rf $RPM_BUILD_ROOT
  83. %{l_prefix}/bin/perl-openpkg prepare
  84. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  85. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  86. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  87. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  88. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  89. %files -f files
  90. %clean
  91. rm -rf $RPM_BUILD_ROOT