perl-biz.spec 7.7 KB

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