perl-biz.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. ##
  2. ## perl-biz.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 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.10
  25. %define V_business_hours 0.09
  26. %define V_business_isbn 2.05
  27. %define V_business_isbn_data 20081208
  28. %define V_business_iban 0.06
  29. %define V_business_creditcard 0.30
  30. %define V_business_creditcard_object 1.00
  31. %define V_business_paypal 0.03
  32. %define V_business_paypal_ewp 1.01
  33. %define V_business_paypal_ipn 1.94
  34. %define V_business_paypal_api 0.62
  35. %define V_google_checkout 1.1.1
  36. %define V_business_onlinepayment 3.00
  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: 20090904
  51. # list of sources
  52. Source0: http://www.cpan.org/modules/by-module/Business/Business-Hours-%{V_business_hours}.tar.gz
  53. Source1: http://www.cpan.org/modules/by-module/Business/Business-ISBN-%{V_business_isbn}.tar.gz
  54. Source2: http://www.cpan.org/modules/by-module/Business/Business-ISBN-Data-%{V_business_isbn_data}.tar.gz
  55. Source3: http://www.cpan.org/modules/by-module/Business/Business-IBAN-%{V_business_iban}.tar.gz
  56. Source4: http://www.cpan.org/modules/by-module/Business/Business-CreditCard-%{V_business_creditcard}.tar.gz
  57. Source5: http://www.cpan.org/modules/by-module/Business/Business-CreditCard-Object-%{V_business_creditcard_object}.tar.gz
  58. Source6: http://www.cpan.org/modules/by-module/Business/Business-PayPal-%{V_business_paypal}.tar.gz
  59. Source7: http://www.cpan.org/modules/by-module/Business/Business-PayPal-EWP-%{V_business_paypal_ewp}.tar.gz
  60. Source8: http://www.cpan.org/modules/by-module/Business/Business-PayPal-IPN-%{V_business_paypal_ipn}.tar.gz
  61. Source9: http://www.cpan.org/modules/by-module/Business/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/modules/by-module/Business/Business-OnlinePayment-%{V_business_onlinepayment}.tar.gz
  64. Source12: http://www.cpan.org/modules/by-module/Business/Business-OnlinePayment-StoredTransaction-%{V_business_onlinepayment_storedtransaction}.tar.gz
  65. Source13: http://www.cpan.org/modules/by-module/Business/Business-OnlinePayment-PayPal-%{V_business_onlinepayment_paypal}.tar.gz
  66. # build information
  67. Prefix: %{l_prefix}
  68. BuildRoot: %{l_buildroot}
  69. BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
  70. PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
  71. BuildPreReq: perl-ssl, perl-crypto, perl-www, perl-ds >= %{V_perl}-20050430
  72. PreReq: perl-ssl, perl-crypto, perl-www, perl-ds >= %{V_perl}-20050430
  73. AutoReq: no
  74. AutoReqProv: no
  75. %description
  76. Various modules for Business with Perl:
  77. - Business::Hours (%{V_business_hours})
  78. - Business::ISBN (%{V_business_isbn})
  79. - Business::ISBN::Data (%{V_business_isbn_data})
  80. - Business::IBAN (%{V_business_iban})
  81. - Business::CreditCard (%{V_business_creditcard})
  82. - Business::CreditCard::Object (%{V_business_creditcard_object})
  83. - Business::PayPal (%{V_business_paypal})
  84. - Business::PayPal::EWP (%{V_business_paypal_ewp})
  85. - Business::PayPal::IPN (%{V_business_paypal_ipn})
  86. - Business::PayPal::API (%{V_business_paypal_api})
  87. - Google::Checkout (%{V_google_checkout})
  88. - Business::OnlinePayment (%{V_business_onlinepayment})
  89. - Business::OnlinePayment::StoredTransaction (%{V_business_onlinepayment_storedtransaction})
  90. - Business::OnlinePayment::Paypal (%{V_business_onlinepayment_paypal})
  91. %track
  92. prog perl-biz:Business-Hours = {
  93. version = %{V_business_hours}
  94. url = http://www.cpan.org/modules/by-module/Business/
  95. regex = Business-Hours-(__VER__)\.tar\.gz
  96. }
  97. prog perl-biz:Business-ISBN = {
  98. version = %{V_business_isbn}
  99. url = http://www.cpan.org/modules/by-module/Business/
  100. regex = Business-ISBN-(__VER__)\.tar\.gz
  101. }
  102. prog perl-biz:Business-ISBN-Data = {
  103. version = %{V_business_isbn_data}
  104. url = http://www.cpan.org/modules/by-module/Business/
  105. regex = Business-ISBN-Data-(__VER__)\.tar\.gz
  106. }
  107. prog perl-biz:Business-IBAN = {
  108. version = %{V_business_iban}
  109. url = http://www.cpan.org/modules/by-module/Business/
  110. regex = Business-IBAN-(__VER__)\.tar\.gz
  111. }
  112. prog perl-biz:Business-CreditCard = {
  113. version = %{V_business_creditcard}
  114. url = http://www.cpan.org/modules/by-module/Business/
  115. regex = Business-CreditCard-(__VER__)\.tar\.gz
  116. }
  117. prog perl-biz:Business-CreditCard-Object = {
  118. version = %{V_business_creditcard_object}
  119. url = http://www.cpan.org/modules/by-module/Business/
  120. regex = Business-CreditCard-Object-(__VER__)\.tar\.gz
  121. }
  122. prog perl-biz:Business-PayPal = {
  123. version = %{V_business_paypal}
  124. url = http://www.cpan.org/modules/by-module/Business/
  125. regex = Business-PayPal-(__VER__)\.tar\.gz
  126. }
  127. prog perl-biz:Business-PayPal-EWP = {
  128. version = %{V_business_paypal_ewp}
  129. url = http://www.cpan.org/modules/by-module/Business/
  130. regex = Business-PayPal-EWP-(__VER__)\.tar\.gz
  131. }
  132. prog perl-biz:Business-PayPal-IPN = {
  133. version = %{V_business_paypal_ipn}
  134. url = http://www.cpan.org/modules/by-module/Business/
  135. regex = Business-PayPal-IPN-(__VER__)\.tar\.gz
  136. }
  137. prog perl-biz:Business-PayPal-API = {
  138. version = %{V_business_paypal_api}
  139. url = http://www.cpan.org/modules/by-module/Business/
  140. regex = Business-PayPal-API-(__VER__)\.tar\.gz
  141. }
  142. prog perl-biz:Google-Checkout = {
  143. version = %{V_google_checkout}
  144. url = http://code.google.com/p/google-checkout-perl-sample-code/downloads/list
  145. regex = Google-Checkout-(__VER__)\.tar\.gz
  146. }
  147. prog perl-biz:Business-OnlinePayment = {
  148. version = %{V_business_onlinepayment}
  149. url = http://www.cpan.org/modules/by-module/Business/
  150. regex = Business-OnlinePayment-(__VER__)\.tar\.gz
  151. }
  152. prog perl-biz:Business-OnlinePayment-StoredTransaction = {
  153. version = %{V_business_onlinepayment_storedtransaction}
  154. url = http://www.cpan.org/modules/by-module/Business/
  155. regex = Business-OnlinePayment-StoredTransaction-(__VER__)\.tar\.gz
  156. }
  157. prog perl-biz:Business-OnlinePayment-PayPal = {
  158. version = %{V_business_onlinepayment_paypal}
  159. url = http://www.cpan.org/modules/by-module/Business/
  160. regex = Business-OnlinePayment-PayPal-(__VER__)\.tar\.gz
  161. }
  162. %prep
  163. %setup -q -c
  164. %setup -q -T -D -a 1
  165. %setup -q -T -D -a 2
  166. %setup -q -T -D -a 3
  167. %setup -q -T -D -a 4
  168. %setup -q -T -D -a 5
  169. %setup -q -T -D -a 6
  170. %setup -q -T -D -a 7
  171. %setup -q -T -D -a 8
  172. %setup -q -T -D -a 9
  173. %setup -q -T -D -a 10
  174. %setup -q -T -D -a 11
  175. %setup -q -T -D -a 12
  176. %setup -q -T -D -a 13
  177. %build
  178. %install
  179. rm -rf $RPM_BUILD_ROOT
  180. %{l_prefix}/bin/perl-openpkg prepare
  181. %{l_shtool} subst \
  182. -e 's/= shift if @ARGV.*$/= $Config{prefix};/' \
  183. -e 's/$cc eq $Config{cc}/1/' \
  184. Business-PayPal-EWP-%{V_business_paypal_ewp}/Makefile.PL
  185. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  186. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  187. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  188. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  189. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  190. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  191. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  192. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  193. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  194. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  195. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  196. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  197. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  198. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  199. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  200. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
  201. %files -f files
  202. %clean
  203. rm -rf $RPM_BUILD_ROOT