perl-par.spec 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ##
  2. ## perl-par.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 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. # versions of individual parts
  25. %define V_perl 5.10.0
  26. %define V_par_dist 0.25
  27. %define V_par 0.977
  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: 20071221
  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. Patch0: perl-par.patch
  44. # build information
  45. Prefix: %{l_prefix}
  46. BuildRoot: %{l_buildroot}
  47. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  48. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  49. BuildPreReq: perl-comp, perl-sys, perl-crypto, perl-module
  50. PreReq: perl-comp, perl-sys, perl-crypto, perl-module
  51. AutoReq: no
  52. AutoReqProv: no
  53. %description
  54. Perl modules for use with Perl archive:
  55. - PAR::Dist (%{V_par_dist})
  56. - PAR (%{V_par})
  57. %track
  58. prog perl-par:PAR-Dist = {
  59. version = %{V_par_dist}
  60. url = http://www.cpan.org/modules/by-module/PAR/
  61. regex = PAR-Dist-(__VER__)\.tar\.gz
  62. }
  63. prog perl-par:PAR = {
  64. version = %{V_par}
  65. url = http://www.cpan.org/modules/by-module/PAR/
  66. regex = PAR-(__VER__)\.tar\.gz
  67. }
  68. %prep
  69. %setup -q -c
  70. %setup -q -T -D -a 1
  71. %patch -p0
  72. %build
  73. %install
  74. rm -rf $RPM_BUILD_ROOT
  75. %{l_prefix}/bin/perl-openpkg prepare
  76. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  77. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  78. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT