perl-biz.spec 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. ##
  2. ## perl-biz.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2012 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.16
  25. %define V_business_hours 0.10_01
  26. %define V_business_isbn 2.05_01
  27. %define V_business_isbn_data 20120719
  28. %define V_business_iban 0.06
  29. %define V_business_creditcard 0.31
  30. %define V_business_creditcard_object 1.00
  31. %define V_business_paypal 0.04
  32. %define V_business_paypal_ewp 1.02
  33. %define V_business_paypal_ipn 1.94
  34. %define V_business_paypal_api 0.69
  35. %define V_google_checkout 1.1.1
  36. %define V_business_onlinepayment 3.02
  37. %define V_business_onlinepayment_storedtransaction 0.01
  38. %define V_business_onlinepayment_paypal 0.11
  39. # package information
  40. Name: perl-biz
  41. Summary: Perl Modules for Business
  42. URL: http://www.cpan.org/
  43. Vendor: Perl Community
  44. Packager: OpenPKG Foundation e.V.
  45. Distribution: OpenPKG Community
  46. Class: BASE
  47. Group: Perl
  48. License: GPL/Artistic
  49. Version: %{V_perl}
  50. Release: 20120724
  51. # list of sources
  52. Source0: http://www.cpan.org/authors/id/R/RU/RUZ/Business-Hours-%{V_business_hours}.tar.gz
  53. Source1: http://www.cpan.org/authors/id/B/BD/BDFOY/Business-ISBN-%{V_business_isbn}.tar.gz
  54. Source2: http://www.cpan.org/authors/id/B/BD/BDFOY/Business-ISBN-Data-%{V_business_isbn_data}.tar.gz
  55. Source3: http://www.cpan.org/authors/id/T/TI/TINITA/Business-IBAN-%{V_business_iban}.tar.gz
  56. Source4: http://www.cpan.org/authors/id/I/IV/IVAN/Business-CreditCard-%{V_business_creditcard}.tar.gz
  57. Source5: http://www.cpan.org/authors/id/T/TM/TMTM/Business-CreditCard-Object-%{V_business_creditcard_object}.tar.gz
  58. Source6: http://www.cpan.org/authors/id/P/PH/PHRED/Business-PayPal-%{V_business_paypal}.tar.gz
  59. Source7: http://www.cpan.org/authors/id/T/TB/TBUSCH/Business-PayPal-EWP-%{V_business_paypal_ewp}.tar.gz
  60. Source8: http://www.cpan.org/authors/id/S/SH/SHERZODR/Business-PayPal-IPN-%{V_business_paypal_ipn}.tar.gz
  61. Source9: http://www.cpan.org/authors/id/H/HE/HEMBREED/Business-PayPal-API-%{V_business_paypal_api}.tar.gz
  62. Source10: http://google-checkout-perl-sample-code.googlecode.com/files/Google-Checkout-%{V_google_checkout}.tar.gz
  63. Source11: http://www.cpan.org/authors/id/I/IV/IVAN/Business-OnlinePayment-%{V_business_onlinepayment}.tar.gz
  64. Source12: http://www.cpan.org/authors/id/M/MO/MOCK/Business-OnlinePayment-StoredTransaction-%{V_business_onlinepayment_storedtransaction}.tar.gz
  65. Source13: http://www.cpan.org/authors/id/P/PL/PLOBBES/Business-OnlinePayment-PayPal-%{V_business_onlinepayment_paypal}.tar.gz
  66. Patch0: perl-biz.patch
  67. # build information
  68. BuildPreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  69. PreReq: OpenPKG, openpkg >= 20100101, perl >= %{V_perl}
  70. BuildPreReq: perl-ssl, perl-crypto, perl-www, perl-ds >= %{V_perl}-20050430
  71. PreReq: perl-ssl, perl-crypto, perl-www, perl-ds >= %{V_perl}-20050430
  72. %description
  73. Various modules for Business with Perl:
  74. - Business::Hours (%{V_business_hours})
  75. - Business::ISBN (%{V_business_isbn})
  76. - Business::ISBN::Data (%{V_business_isbn_data})
  77. - Business::IBAN (%{V_business_iban})
  78. - Business::CreditCard (%{V_business_creditcard})
  79. - Business::CreditCard::Object (%{V_business_creditcard_object})
  80. - Business::PayPal (%{V_business_paypal})
  81. - Business::PayPal::EWP (%{V_business_paypal_ewp})
  82. - Business::PayPal::IPN (%{V_business_paypal_ipn})
  83. - Business::PayPal::API (%{V_business_paypal_api})
  84. - Google::Checkout (%{V_google_checkout})
  85. - Business::OnlinePayment (%{V_business_onlinepayment})
  86. - Business::OnlinePayment::StoredTransaction (%{V_business_onlinepayment_storedtransaction})
  87. - Business::OnlinePayment::Paypal (%{V_business_onlinepayment_paypal})
  88. %track
  89. prog perl-biz:Business-Hours = {
  90. version = %{V_business_hours}
  91. url = http://www.cpan.org/authors/id/R/RU/RUZ/
  92. regex = Business-Hours-(__VER__)\.tar\.gz
  93. }
  94. prog perl-biz:Business-ISBN = {
  95. version = %{V_business_isbn}
  96. url = http://www.cpan.org/authors/id/B/BD/BDFOY/
  97. regex = Business-ISBN-(__VER__)\.tar\.gz
  98. }
  99. prog perl-biz:Business-ISBN-Data = {
  100. version = %{V_business_isbn_data}
  101. url = http://www.cpan.org/authors/id/B/BD/BDFOY/
  102. regex = Business-ISBN-Data-(__VER__)\.tar\.gz
  103. }
  104. prog perl-biz:Business-IBAN = {
  105. version = %{V_business_iban}
  106. url = http://www.cpan.org/authors/id/T/TI/TINITA/
  107. regex = Business-IBAN-(__VER__)\.tar\.gz
  108. }
  109. prog perl-biz:Business-CreditCard = {
  110. version = %{V_business_creditcard}
  111. url = http://www.cpan.org/authors/id/I/IV/IVAN/
  112. regex = Business-CreditCard-(__VER__)\.tar\.gz
  113. }
  114. prog perl-biz:Business-CreditCard-Object = {
  115. version = %{V_business_creditcard_object}
  116. url = http://www.cpan.org/authors/id/T/TM/TMTM/
  117. regex = Business-CreditCard-Object-(__VER__)\.tar\.gz
  118. }
  119. prog perl-biz:Business-PayPal = {
  120. version = %{V_business_paypal}
  121. url = http://www.cpan.org/authors/id/P/PH/PHRED/
  122. regex = Business-PayPal-(__VER__)\.tar\.gz
  123. }
  124. prog perl-biz:Business-PayPal-EWP = {
  125. version = %{V_business_paypal_ewp}
  126. url = http://www.cpan.org/authors/id/T/TB/TBUSCH/
  127. regex = Business-PayPal-EWP-(__VER__)\.tar\.gz
  128. }
  129. prog perl-biz:Business-PayPal-IPN = {
  130. version = %{V_business_paypal_ipn}
  131. url = http://www.cpan.org/authors/id/S/SH/SHERZODR/
  132. regex = Business-PayPal-IPN-(__VER__)\.tar\.gz
  133. }
  134. prog perl-biz:Business-PayPal-API = {
  135. version = %{V_business_paypal_api}
  136. url = http://www.cpan.org/authors/id/H/HE/HEMBREED/
  137. regex = Business-PayPal-API-(__VER__)\.tar\.gz
  138. }
  139. prog perl-biz:Google-Checkout = {
  140. version = %{V_google_checkout}
  141. url = http://code.google.com/p/google-checkout-perl-sample-code/downloads/list
  142. regex = Google-Checkout-(__VER__)\.tar\.gz
  143. }
  144. prog perl-biz:Business-OnlinePayment = {
  145. version = %{V_business_onlinepayment}
  146. url = http://www.cpan.org/authors/id/I/IV/IVAN/
  147. regex = Business-OnlinePayment-(__VER__)\.tar\.gz
  148. }
  149. prog perl-biz:Business-OnlinePayment-StoredTransaction = {
  150. version = %{V_business_onlinepayment_storedtransaction}
  151. url = http://www.cpan.org/authors/id/M/MO/MOCK/
  152. regex = Business-OnlinePayment-StoredTransaction-(__VER__)\.tar\.gz
  153. }
  154. prog perl-biz:Business-OnlinePayment-PayPal = {
  155. version = %{V_business_onlinepayment_paypal}
  156. url = http://www.cpan.org/authors/id/P/PL/PLOBBES/
  157. regex = Business-OnlinePayment-PayPal-(__VER__)\.tar\.gz
  158. }
  159. %prep
  160. %setup -q -c
  161. %setup -q -T -D -a 1
  162. %setup -q -T -D -a 2
  163. %setup -q -T -D -a 3
  164. %setup -q -T -D -a 4
  165. %setup -q -T -D -a 5
  166. %setup -q -T -D -a 6
  167. %setup -q -T -D -a 7
  168. %setup -q -T -D -a 8
  169. %setup -q -T -D -a 9
  170. %setup -q -T -D -a 10
  171. %setup -q -T -D -a 11
  172. %setup -q -T -D -a 12
  173. %setup -q -T -D -a 13
  174. %patch -p0
  175. %build
  176. %install
  177. %{l_prefix}/bin/perl-openpkg prepare
  178. %{l_shtool} subst \
  179. -e 's/= shift if @ARGV.*$/= $Config{prefix};/' \
  180. -e 's/$cc eq $Config{cc}/1/' \
  181. Business-PayPal-EWP-%{V_business_paypal_ewp}/Makefile.PL
  182. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  183. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  184. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  185. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  186. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  187. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  188. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  189. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  190. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  191. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  192. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  193. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  194. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  195. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  196. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  197. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  198. %files -f files
  199. %clean