Jelajahi Sumber

add first cut for Business::OnlinePayment stuff and upgrade Google Checkout API

Ralf S. Engelschall 18 tahun lalu
induk
melakukan
6fc0d5d02c
1 mengubah file dengan 43 tambahan dan 13 penghapusan
  1. 43 13
      perl-biz/perl-biz.spec

+ 43 - 13
perl-biz/perl-biz.spec

@@ -23,18 +23,21 @@
 ##
 
 #   versions of individual parts
-%define       V_perl                       5.8.8
-%define       V_business_hours             0.07
-%define       V_business_isbn              2.03
-%define       V_business_isbn_data         1.15
-%define       V_business_iban              0.06
-%define       V_business_creditcard        0.30
-%define       V_business_creditcard_object 1.00
-%define       V_business_paypal            0.02
-%define       V_business_paypal_ewp        1.00
-%define       V_business_paypal_ipn        1.94
-%define       V_business_paypal_api        0.52
-%define       V_google_checkout            1.0.1
+%define       V_perl                                     5.8.8
+%define       V_business_hours                           0.07
+%define       V_business_isbn                            2.03
+%define       V_business_isbn_data                       1.15
+%define       V_business_iban                            0.06
+%define       V_business_creditcard                      0.30
+%define       V_business_creditcard_object               1.00
+%define       V_business_paypal                          0.02
+%define       V_business_paypal_ewp                      1.00
+%define       V_business_paypal_ipn                      1.94
+%define       V_business_paypal_api                      0.52
+%define       V_google_checkout                          1.1.1
+%define       V_business_onlinepayment                   2.01
+%define       V_business_onlinepayment_storedtransaction 0.01
+%define       V_business_onlinepayment_paypal            0.11
 
 #   package information
 Name:         perl-biz
@@ -61,6 +64,9 @@ Source7:      http://www.cpan.org/modules/by-module/Business/Business-PayPal-EWP
 Source8:      http://www.cpan.org/modules/by-module/Business/Business-PayPal-IPN-%{V_business_paypal_ipn}.tar.gz
 Source9:      http://www.cpan.org/modules/by-module/Business/Business-PayPal-API-%{V_business_paypal_api}.tar.gz
 Source10:     http://google-checkout-perl-sample-code.googlecode.com/files/Google-Checkout-%{V_google_checkout}.tar.gz
+Source11:     http://www.cpan.org/modules/by-module/Business/Business-OnlinePayment-%{V_business_onlinepayment}.tar.gz
+Source12:     http://www.cpan.org/modules/by-module/Business/Business-OnlinePayment-StoredTransaction-%{V_business_onlinepayment_storedtransaction}.tar.gz
+Source13:     http://www.cpan.org/modules/by-module/Business/Business-OnlinePayment-PayPal-%{V_business_onlinepayment_paypal}.tar.gz
 
 #   build information
 Prefix:       %{l_prefix}
@@ -85,6 +91,9 @@ AutoReqProv:  no
     - Business::PayPal::IPN (%{V_business_paypal_ipn})
     - Business::PayPal::API (%{V_business_paypal_api})
     - Google::Checkout (%{V_google_checkout})
+    - Business::OnlinePayment (%{V_business_onlinepayment})
+    - Business::OnlinePayment::StoredTransaction (%{V_business_onlinepayment_storedtransaction})
+    - Business::OnlinePayment::Paypal (%{V_business_onlinepayment_paypal})
 
 %track
     prog perl-biz:Business-Hours = {
@@ -139,9 +148,24 @@ AutoReqProv:  no
     }
     prog perl-biz:Google-Checkout = {
         version   = %{V_google_checkout}
-        url       = http://google-checkout-perl-sample-code.googlecode.com/files/
+        url       = http://code.google.com/p/google-checkout-perl-sample-code/downloads/list
         regex     = Google-Checkout-(__VER__)\.tar\.gz
     }
+    prog perl-biz:Business-OnlinePayment = {
+        version   = %{V_business_onlinepayment}
+        url       = http://www.cpan.org/modules/by-module/Business/
+        regex     = Business-OnlinePayment-(__VER__)\.tar\.gz
+    }
+    prog perl-biz:Business-OnlinePayment-StoredTransaction = {
+        version   = %{V_business_onlinepayment_storedtransaction}
+        url       = http://www.cpan.org/modules/by-module/Business/
+        regex     = Business-OnlinePayment-StoredTransaction-(__VER__)\.tar\.gz
+    }
+    prog perl-biz:Business-OnlinePayment-PayPal = {
+        version   = %{V_business_onlinepayment_paypal}
+        url       = http://www.cpan.org/modules/by-module/Business/
+        regex     = Business-OnlinePayment-PayPal-(__VER__)\.tar\.gz
+    }
 
 %prep
     %setup -q -c
@@ -155,6 +179,9 @@ AutoReqProv:  no
     %setup -q -T -D -a 8
     %setup -q -T -D -a 9
     %setup -q -T -D -a 10
+    %setup -q -T -D -a 11
+    %setup -q -T -D -a 12
+    %setup -q -T -D -a 13
 
 %build
 
@@ -176,6 +203,9 @@ AutoReqProv:  no
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE8}  configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE9}  configure build install
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
+    %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`