perl-conv.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. ##
  2. ## perl-conv.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # versions of individual parts
  26. %define V_convert_asn1 0.18
  27. %define V_convert_ber 1.3101
  28. %define V_convert_ebcdic 0.06
  29. %define V_convert_scalar 0.1e
  30. %define V_convert_units 0.43
  31. %define V_convert_uulib 1.0
  32. %define V_convert_tnef 0.17
  33. # FIXME: thl: tarball directory structure does not match tarball name
  34. %define V_src_3_FIXME Convert-Scalar-0.1
  35. # package information
  36. Name: perl-conv
  37. Summary: Perl Modules for Conversions
  38. URL: http://www.cpan.org/
  39. Vendor: Perl Community
  40. Packager: The OpenPKG Project
  41. Distribution: OpenPKG
  42. Class: BASE
  43. Group: Language
  44. License: GPL/Artistic
  45. Version: 20040210
  46. Release: 20040210
  47. # list of sources
  48. Source0: http://www.cpan.org/modules/by-module/Convert/Convert-ASN1-%{V_convert_asn1}.tar.gz
  49. Source1: http://www.cpan.org/modules/by-module/Convert/Convert-BER-%{V_convert_ber}.tar.gz
  50. Source2: http://www.cpan.org/modules/by-module/Convert/Convert-EBCDIC-%{V_convert_ebcdic}.tar.gz
  51. Source3: http://www.cpan.org/modules/by-module/Convert/Convert-Scalar-%{V_convert_scalar}.tar.gz
  52. Source4: http://www.cpan.org/modules/by-module/Convert/Convert-Units-%{V_convert_units}.tar.gz
  53. Source5: http://www.cpan.org/modules/by-module/Convert/Convert-UUlib-%{V_convert_uulib}.tar.gz
  54. Source6: http://www.cpan.org/modules/by-module/Convert/Convert-TNEF-%{V_convert_tnef}.tar.gz
  55. # build information
  56. Prefix: %{l_prefix}
  57. BuildRoot: %{l_buildroot}
  58. BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg >= 20040126
  59. PreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg >= 20040126
  60. AutoReq: no
  61. AutoReqProv: no
  62. %description
  63. Perl modules for Conversions:
  64. - Convert::ASN1 (%{V_convert_asn1})
  65. - Convert::BER (%{V_convert_ber})
  66. - Convert::EBCDIC (%{V_convert_ebcdic})
  67. - Convert::Scalar (%{V_convert_scalar})
  68. - Convert::Units (%{V_convert_units})
  69. - Convert::UUlib (%{V_convert_uulib})
  70. - Convert::TNEF (%{V_convert_tnef})
  71. %track
  72. prog perl-conv:Convert-ASN1 = {
  73. version = %{V_convert_asn1}
  74. url = http://www.cpan.org/modules/by-module/Convert/
  75. regex = Convert-ASN1-(__VER__)\.tar\.gz
  76. }
  77. prog perl-conv:Convert-BER = {
  78. version = %{V_convert_ber}
  79. url = http://www.cpan.org/modules/by-module/Convert/
  80. regex = Convert-BER-(__VER__)\.tar\.gz
  81. }
  82. prog perl-conv:Convert-EBCDIC = {
  83. version = %{V_convert_ebcdic}
  84. url = http://www.cpan.org/modules/by-module/Convert/
  85. regex = Convert-EBCDIC-(__VER__)\.tar\.gz
  86. }
  87. prog perl-conv:Convert-Scalar = {
  88. version = %{V_convert_scalar}
  89. url = http://www.cpan.org/modules/by-module/Convert/
  90. regex = Convert-Scalar-(__VER__)\.tar\.gz
  91. }
  92. prog perl-conv:Convert-Units = {
  93. version = %{V_convert_units}
  94. url = http://www.cpan.org/modules/by-module/Convert/
  95. regex = Convert-Units-(__VER__)\.tar\.gz
  96. }
  97. prog perl-conv:Convert-UUlib = {
  98. version = %{V_convert_uulib}
  99. url = http://www.cpan.org/modules/by-module/Convert/
  100. regex = Convert-UUlib-(__VER__)\.tar\.gz
  101. }
  102. prog perl-conv:Convert-TNEF = {
  103. version = %{V_convert_tnef}
  104. url = http://www.cpan.org/modules/by-module/Convert/
  105. regex = Convert-TNEF-(__VER__)\.tar\.gz
  106. }
  107. %prep
  108. %setup -q -c
  109. %setup -q -T -D -a 1
  110. %setup -q -T -D -a 2
  111. %setup -q -T -D -a 3
  112. %setup -q -T -D -a 4
  113. %setup -q -T -D -a 5
  114. %setup -q -T -D -a 6
  115. %build
  116. %install
  117. %{l_prefix}/bin/perl-openpkg prepare
  118. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  119. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  120. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  121. %{l_prefix}/bin/perl-openpkg -d %{V_src_3_FIXME} configure build install
  122. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  123. ( cd Convert-UUlib-%{V_convert_uulib}
  124. echo "ac_cv_header_malloc_h=no" >uulib/config.cache
  125. %{l_shtool} subst \
  126. -e 's;\./configure;./configure --cache-file=./config.cache;' \
  127. Makefile.PL
  128. ) || exit $?
  129. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  130. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  131. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  132. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  133. %files -f files
  134. %clean
  135. rm -rf $RPM_BUILD_ROOT