perl-conv.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. ##
  2. ## perl-conv.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 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.8.8
  26. %define V_convert_asn1 0.20
  27. %define V_convert_ber 1.3101
  28. %define V_convert_ebcdic 0.06
  29. %define V_convert_scalar 1.03
  30. %define V_convert_units 0.43
  31. %define V_convert_uulib 1.07
  32. %define V_convert_tnef 0.17
  33. # package information
  34. Name: perl-conv
  35. Summary: Perl Modules for Conversions
  36. URL: http://www.cpan.org/
  37. Vendor: Perl Community
  38. Packager: OpenPKG Foundation e.V.
  39. Distribution: OpenPKG Community
  40. Class: BASE
  41. Group: Perl
  42. License: GPL/Artistic
  43. Version: %{V_perl}
  44. Release: 20061211
  45. # list of sources
  46. Source0: http://www.cpan.org/modules/by-module/Convert/Convert-ASN1-%{V_convert_asn1}.tar.gz
  47. Source1: http://www.cpan.org/modules/by-module/Convert/Convert-BER-%{V_convert_ber}.tar.gz
  48. Source2: http://www.cpan.org/modules/by-module/Convert/Convert-EBCDIC-%{V_convert_ebcdic}.tar.gz
  49. Source3: http://www.cpan.org/modules/by-module/Convert/Convert-Scalar-%{V_convert_scalar}.tar.gz
  50. Source4: ftp://ftp.openpkg.org/sources/CPY/ORPHANED/perl/Convert-Units-%{V_convert_units}.tar.gz
  51. Source5: http://www.cpan.org/modules/by-module/Convert/Convert-UUlib-%{V_convert_uulib}.tar.gz
  52. Source6: http://www.cpan.org/modules/by-module/Convert/Convert-TNEF-%{V_convert_tnef}.tar.gz
  53. # build information
  54. Prefix: %{l_prefix}
  55. BuildRoot: %{l_buildroot}
  56. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  57. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  58. AutoReq: no
  59. AutoReqProv: no
  60. %description
  61. Perl modules for Conversions:
  62. - Convert::ASN1 (%{V_convert_asn1})
  63. - Convert::BER (%{V_convert_ber})
  64. - Convert::EBCDIC (%{V_convert_ebcdic})
  65. - Convert::Scalar (%{V_convert_scalar})
  66. - Convert::Units (%{V_convert_units})
  67. - Convert::UUlib (%{V_convert_uulib})
  68. - Convert::TNEF (%{V_convert_tnef})
  69. %track
  70. prog perl-conv:Convert-ASN1 = {
  71. version = %{V_convert_asn1}
  72. url = http://www.cpan.org/modules/by-module/Convert/
  73. regex = Convert-ASN1-(__VER__)\.tar\.gz
  74. }
  75. prog perl-conv:Convert-BER = {
  76. version = %{V_convert_ber}
  77. url = http://www.cpan.org/modules/by-module/Convert/
  78. regex = Convert-BER-(__VER__)\.tar\.gz
  79. }
  80. prog perl-conv:Convert-EBCDIC = {
  81. version = %{V_convert_ebcdic}
  82. url = http://www.cpan.org/modules/by-module/Convert/
  83. regex = Convert-EBCDIC-(__VER__)\.tar\.gz
  84. }
  85. prog perl-conv:Convert-Scalar = {
  86. version = %{V_convert_scalar}
  87. url = http://www.cpan.org/modules/by-module/Convert/
  88. regex = Convert-Scalar-(__VER__)\.tar\.gz
  89. }
  90. prog perl-conv:Convert-Units = {
  91. disabled
  92. comment = "rse: disappeared from CPAN"
  93. version = %{V_convert_units}
  94. url = ftp://ftp.openpkg.org/sources/CPY/ORPHANED/perl/
  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. rm -rf $RPM_BUILD_ROOT
  118. %{l_prefix}/bin/perl-openpkg prepare
  119. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  120. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  121. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  122. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  123. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  124. ( cd Convert-UUlib-%{V_convert_uulib}
  125. echo "ac_cv_header_malloc_h=no" >uulib/config.cache
  126. %{l_shtool} subst \
  127. -e 's;\./configure;./configure --cache-file=./config.cache;' \
  128. Makefile.PL
  129. ) || exit $?
  130. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  131. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  132. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  133. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  134. %files -f files
  135. %clean
  136. rm -rf $RPM_BUILD_ROOT