perl-biz.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. ##
  2. ## perl-biz.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.8.8
  26. %define V_business_hours 0.07
  27. %define V_business_isbn 1.84
  28. %define V_business_isbn_data 1.13
  29. %define V_business_iban 0.06
  30. %define V_business_creditcard 0.30
  31. %define V_business_creditcard_object 1.00
  32. %define V_business_paypal 0.02
  33. %define V_business_paypal_ewp 0.02
  34. %define V_business_paypal_ipn 1.94
  35. # package information
  36. Name: perl-biz
  37. Summary: Perl Modules for Business
  38. URL: http://www.cpan.org/
  39. Vendor: Perl Community
  40. Packager: OpenPKG Foundation e.V.
  41. Distribution: OpenPKG Community
  42. Class: BASE
  43. Group: Perl
  44. License: GPL/Artistic
  45. Version: %{V_perl}
  46. Release: 20070111
  47. # list of sources
  48. Source0: http://www.cpan.org/modules/by-module/Business/Business-Hours-%{V_business_hours}.tar.gz
  49. Source1: http://www.cpan.org/modules/by-module/Business/Business-ISBN-%{V_business_isbn}.tar.gz
  50. Source2: http://www.cpan.org/modules/by-module/Business/Business-ISBN-Data-%{V_business_isbn_data}.tar.gz
  51. Source3: http://www.cpan.org/modules/by-module/Business/Business-IBAN-%{V_business_iban}.tar.gz
  52. Source4: http://www.cpan.org/modules/by-module/Business/Business-CreditCard-%{V_business_creditcard}.tar.gz
  53. Source5: http://www.cpan.org/modules/by-module/Business/Business-CreditCard-Object-%{V_business_creditcard_object}.tar.gz
  54. Source6: http://www.cpan.org/modules/by-module/Business/Business-PayPal-%{V_business_paypal}.tar.gz
  55. Source7: http://www.cpan.org/modules/by-module/Business/Business-PayPal-EWP-%{V_business_paypal_ewp}.tar.gz
  56. Source8: http://www.cpan.org/modules/by-module/Business/Business-PayPal-IPN-%{V_business_paypal_ipn}.tar.gz
  57. # build information
  58. Prefix: %{l_prefix}
  59. BuildRoot: %{l_buildroot}
  60. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  61. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  62. BuildPreReq: perl-ssl, perl-crypto, perl-www, perl-ds >= %{V_perl}-20050430
  63. PreReq: perl-ssl, perl-crypto, perl-www, perl-ds >= %{V_perl}-20050430
  64. AutoReq: no
  65. AutoReqProv: no
  66. %description
  67. Various modules for Business with Perl:
  68. - Business::Hours (%{V_business_hours})
  69. - Business::ISBN (%{V_business_isbn})
  70. - Business::ISBN::Data (%{V_business_isbn_data})
  71. - Business::IBAN (%{V_business_iban})
  72. - Business::CreditCard (%{V_business_creditcard})
  73. - Business::CreditCard::Object (%{V_business_creditcard_object})
  74. - Business::PayPal (%{V_business_paypal})
  75. - Business::PayPal::EWP (%{V_business_paypal_ewp})
  76. - Business::PayPal::IPN (%{V_business_paypal_ipn})
  77. %track
  78. prog perl-biz:Business-Hours = {
  79. version = %{V_business_hours}
  80. url = http://www.cpan.org/modules/by-module/Business/
  81. regex = Business-Hours-(__VER__)\.tar\.gz
  82. }
  83. prog perl-biz:Business-ISBN = {
  84. version = %{V_business_isbn}
  85. url = http://www.cpan.org/modules/by-module/Business/
  86. regex = Business-ISBN-(__VER__)\.tar\.gz
  87. }
  88. prog perl-biz:Business-ISBN-Data = {
  89. version = %{V_business_isbn_data}
  90. url = http://www.cpan.org/modules/by-module/Business/
  91. regex = Business-ISBN-Data-(__VER__)\.tar\.gz
  92. }
  93. prog perl-biz:Business-IBAN = {
  94. version = %{V_business_iban}
  95. url = http://www.cpan.org/modules/by-module/Business/
  96. regex = Business-IBAN-(__VER__)\.tar\.gz
  97. }
  98. prog perl-biz:Business-CreditCard = {
  99. version = %{V_business_creditcard}
  100. url = http://www.cpan.org/modules/by-module/Business/
  101. regex = Business-CreditCard-(__VER__)\.tar\.gz
  102. }
  103. prog perl-biz:Business-CreditCard-Object = {
  104. version = %{V_business_creditcard_object}
  105. url = http://www.cpan.org/modules/by-module/Business/
  106. regex = Business-CreditCard-Object-(__VER__)\.tar\.gz
  107. }
  108. prog perl-biz:Business-PayPal = {
  109. version = %{V_business_paypal}
  110. url = http://www.cpan.org/modules/by-module/Business/
  111. regex = Business-PayPal-(__VER__)\.tar\.gz
  112. }
  113. prog perl-biz:Business-PayPal-EWP = {
  114. version = %{V_business_paypal_ewp}
  115. url = http://www.cpan.org/modules/by-module/Business/
  116. regex = Business-PayPal-EWP-(__VER__)\.tar\.gz
  117. }
  118. prog perl-biz:Business-PayPal-IPN = {
  119. version = %{V_business_paypal_ipn}
  120. url = http://www.cpan.org/modules/by-module/Business/
  121. regex = Business-PayPal-IPN-(__VER__)\.tar\.gz
  122. }
  123. %prep
  124. %setup -q -c
  125. %setup -q -T -D -a 1
  126. %setup -q -T -D -a 2
  127. %setup -q -T -D -a 3
  128. %setup -q -T -D -a 4
  129. %setup -q -T -D -a 5
  130. %setup -q -T -D -a 6
  131. %setup -q -T -D -a 7
  132. %setup -q -T -D -a 8
  133. %build
  134. %install
  135. rm -rf $RPM_BUILD_ROOT
  136. %{l_prefix}/bin/perl-openpkg prepare
  137. %{l_shtool} subst \
  138. -e 's/= shift if @ARGV.*$/= $Config{prefix};/' \
  139. -e 's/$cc eq $Config{cc}/1/' \
  140. Business-PayPal-EWP-%{V_business_paypal_ewp}/Makefile.PL
  141. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  142. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  143. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  144. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  145. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  146. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  147. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  148. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  149. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  150. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  151. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  152. %files -f files
  153. %clean
  154. rm -rf $RPM_BUILD_ROOT