3 %bcond_without autodeps # don't require packages only for autodeps generation
4 %bcond_with tests # perform "make test" (requires Matlab installation)
5 # matlab # command to execute matlab
7 %include /usr/lib/rpm/macros.perl
10 Summary: Math::Matlab - interface for running Matlab programs from Perl
11 Summary(pl.UTF-8): Math::Matlab - interfejs do uruchamiania programów Matlaba z poziomu Perla
12 Name: perl-Math-Matlab
16 License: GPL v1+ or Artistic
17 Group: Development/Languages/Perl
18 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
19 # Source0-md5: fcab9a197d49dd5453f9d82de0ca7382
21 BuildRequires: apache-mod_perl
22 BuildRequires: perl-URI
23 BuildRequires: perl-libapreq2
24 BuildRequires: perl-libwww
27 BuildRequires: perl-Test-Simple >= 0.01
29 BuildRequires: perl-devel >= 1:5.8.0
30 BuildRequires: rpm-perlprov >= 4.1-13
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %{!?matlab:%define matlab /usr/local/bin/matlab -nodisplay -nojvm}
38 The Math::Matlab package provides an interface for running Matlab
39 programs from Perl and capturing the output (what the Matlab program
40 prints to STDOUT) into a string. For more information on Matlab see
41 The MathWorks web-site at <http://www.mathworks.com/>.
43 %description -l pl.UTF-8
44 Pakiet Math::Matlab udostępnia interfejs do uruchamiania programów
45 Matlaba z poziomu Perla i przechwytywania wyjścia (tego, co programy
46 Matlaba wypisują na STDOUT) do łańcucha. Więcej informacji o Matlabie
47 można znaleźć na stronie MathWorks pod adresem
48 <http://www.mathworks.com/>.
51 Summary: Math::Matlab::Remote - interface to a remote Matlab process
52 Summary(pl.UTF-8): Math::Matlab::Remote - interfejs do zdalnego procesu Matlaba
53 Group: Development/Languages/Perl
54 Requires: %{name} = %{version}-%{release}
57 Math::Matlab::Remote implements an interface to a remote Matlab server
58 (see Math::Matlab::Server). It uses the LWP package to access the
59 server via the HTTP protocol. The Remote object has the URI of the
60 server, a timeout value for the requests and a user name and password
61 used for basic authentication of the request.
63 %description Remote -l pl.UTF-8
64 Math::Matlab::Remote to implementacja interfejsu do zdalnego serwera
65 Matlaba (moduł Math::Matlab::Server). Używa pakietu LWP do dostępu do
66 serwera za pośrednictwem protokołu HTTP. Obiekt Remote zawiera URI do
67 serwera, wartość maksymalnego czasu oczekiwania dla żądań oraz nazwę
68 użytkownika i hasło do prostego uwierzytelniania żądania.
71 Summary: Math::Matlab::Server - a Matlab server as a mod_perl content handler
72 Summary(pl.UTF-8): Math::Matlab::Server - serwer Matalaba jako obsługa treści dla mod_perla
73 Group: Development/Languages/Perl
74 Requires: %{name} = %{version}-%{release}
77 Math::Matlab::Server implements a mod_perl content handler which takes
78 form input arguments named CODE, REL_MWD and RAW_OUTPUT, calls the
79 execute() method of the server's Math::Matlab object passing the CODE
80 and REL_MWD arguments, and sends back the results as a 'text/plain'
81 document. The results are the value returned by the object's
82 fetch_raw_result() or fetch_result() method, depending whether or not
83 the RAW_OUTPUT parameter is true.
85 %description Server -l pl.UTF-8
86 Math::Matlab::Server to implementacja funkcji obsługi generowania
87 treści dla mod_perla, przyjmująca z wejścia formularza argumenty o
88 nazwach CODE, REL_MWD i RAW_OUTPUT, wywołująca metodę execute()
89 obiektu Math::Matlab na serwerze przekazując argumenty CODE i REL_MWD,
90 a następnie odsyłająca wyniki jako dokument text/plain. Wyniki to
91 wartość zwrócona przez metodę fetch_raw_result() lub fetch_result()
92 obiektu, w zależności od wartości parametru RAW_OUTPUT.
95 %setup -q -n %{pdir}-%{pnam}-%{version}
99 %{__perl} Makefile.PL \
104 %{?with_tests:%{__make} test}
107 rm -rf $RPM_BUILD_ROOT
110 DESTDIR=$RPM_BUILD_ROOT
113 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
118 %{perl_vendorlib}/Math/Matlab.pm
119 %dir %{perl_vendorlib}/Math/Matlab
120 %{perl_vendorlib}/Math/Matlab/Local.pm
121 %{perl_vendorlib}/Math/Matlab/Pool.pm
125 %defattr(644,root,root,755)
126 %{perl_vendorlib}/Math/Matlab/Remote.pm
129 %defattr(644,root,root,755)
130 %doc INSTALL server.config
131 %{perl_vendorlib}/Math/Matlab/Server.pm