3 %bcond_without tests # do not perform "make test"
6 %define pnam Persistent
7 Summary: CGI::Persistent - transparent state persistence for CGI applications
8 Summary(pl.UTF-8): CGI::Persistent - przezroczyste zachowywanie stanu dla aplikacji CGI
9 Name: perl-CGI-Persistent
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: b91c3cabb9c5e2029522ad8937959a19
17 URL: http://search.cpan.org/dist/CGI-Persistent/
18 BuildRequires: perl-CGI
19 BuildRequires: perl-Persistence-Object-Simple
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 HTTP is a stateless protocol; a HTTP server closes connection after
27 serving an object. It retains no memory of the request details and
28 doesn't relate subsequent requests with what it has already served.
30 CGI::Persistent solves this problem by introducing persistent CGI
31 sessions that store their state data on the server side. When a new
32 session starts, CGI::Persistent automatically generates a unique state
33 identification string and associates it with a persistent object on
34 the server. The identification string is used in URLs or forms to
35 refer to the particular session. Request attributes are transparently
36 committed to the associated object and the object data is bound to the
39 CGI::Persistent is derived from CGI.pm. CGI.pm methods have been
40 overridden as appropriate. Very few new methods have been added.
42 %description -l pl.UTF-8
43 HTTP jest protokołem bezstanowym; serwer HTTP zamyka połączenie po
44 podaniu obiektu. Nie przechowuje w pamięci szczegółów dotyczących
45 żądań i nie wiąże następnych żądań z tym, co już zostało podane.
47 CGI::Persistent rozwiązuje ten problem wprowadzając trwałe sesje CGI
48 przechowujące dane o stanie po stronie serwera. Kiedy zaczyna się nowa
49 sesja, CGI::Persistent automatycznie generuje unikalny łańcuch
50 identyfikujący stan i wiąże go z trwałym obiektem na serwerze. Łańcuch
51 identyfikujący jest używany w URL-ach lub formularzach, aby wskazywał
52 na konkretną sesję. Atrybuty żądania są w sposób przezroczysty
53 dodawane do powiązanego obiektu, a dane obiektu są przypisane do
56 CGI::Persistent wywodzi się z CGI.pm, którego metody zostały
57 odpowiednio przykryte. Dodano tylko kilka nowych metod.
60 %setup -q -n %{pdir}-%{pnam}-%{version}
63 %{__perl} Makefile.PL \
68 %{?with_tests:%{__make} test}
71 rm -rf $RPM_BUILD_ROOT
74 DESTDIR=$RPM_BUILD_ROOT
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %{perl_vendorlib}/CGI/Persistent.pm