perl-par.spec 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. ##
  2. ## perl-par.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2017 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.22
  25. %define V_par_dist 0.48
  26. %define V_par 1.002
  27. %define V_par_packer 1.038
  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: 20170928
  40. # list of sources
  41. Source0: http://www.cpan.org/authors/id/S/SM/SMUELLER/PAR-Dist-%{V_par_dist}.tar.gz
  42. Source1: http://www.cpan.org/authors/id/S/SM/SMUELLER/PAR-%{V_par}.tar.gz
  43. Source2: http://www.cpan.org/authors/id/R/RS/RSCHUPP/PAR-Packer-%{V_par_packer}.tar.gz
  44. Patch0: perl-par.patch
  45. # build information
  46. BuildPreReq: OpenPKG, openpkg >= 20160101, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  47. PreReq: OpenPKG, openpkg >= 20160101, perl >= %{V_perl}
  48. BuildPreReq: perl-comp, perl-sys, perl-crypto, perl-module, perl-parse
  49. PreReq: perl-comp, perl-sys, perl-crypto, perl-module, perl-parse
  50. %description
  51. Perl modules for use with Perl archive:
  52. - PAR::Dist (%{V_par_dist})
  53. - PAR (%{V_par})
  54. - PAR::Packer (%{V_par_packer})
  55. %track
  56. prog perl-par:PAR-Dist = {
  57. version = %{V_par_dist}
  58. url = http://www.cpan.org/authors/id/S/SM/SMUELLER/
  59. regex = PAR-Dist-(__VER__)\.tar\.gz
  60. }
  61. prog perl-par:PAR = {
  62. version = %{V_par}
  63. url = http://www.cpan.org/authors/id/S/SM/SMUELLER/
  64. regex = PAR-(__VER__)\.tar\.gz
  65. }
  66. prog perl-par:PAR-Packer = {
  67. version = %{V_par_packer}
  68. url = http://www.cpan.org/authors/id/R/RS/RSCHUPP/
  69. regex = PAR-Packer-(__VER__)\.tar\.gz
  70. }
  71. %prep
  72. %setup -q -c
  73. %setup -q -T -D -a 1
  74. %setup -q -T -D -a 2
  75. %patch -p0
  76. %build
  77. %install
  78. %{l_prefix}/bin/perl-openpkg prepare
  79. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  80. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  81. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  82. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  83. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  84. %files -f files
  85. %clean