1 | Name: perl-PHP-Session |
---|
2 | Version: 0.27 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: read / write PHP session files |
---|
5 | License: GPL+ or Artistic |
---|
6 | Group: Development/Libraries |
---|
7 | URL: http://search.cpan.org/dist/PHP-Session/ |
---|
8 | Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/PHP-Session-%{version}.tar.gz |
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) |
---|
10 | BuildArch: noarch |
---|
11 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
12 | BuildRequires: perl(Test::More) >= 0.32 |
---|
13 | BuildRequires: perl(UNIVERSAL::require) >= 0.03 |
---|
14 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
15 | Requires: perl(Test::More) >= 0.32 |
---|
16 | Requires: perl(UNIVERSAL::require) >= 0.03 |
---|
17 | |
---|
18 | %description |
---|
19 | PHP::Session provides a way to read / write PHP4 session files, with |
---|
20 | which you can make your Perl application session shared with PHP4. |
---|
21 | |
---|
22 | If you like Apache::Session interface for session management, there is |
---|
23 | a glue for Apache::Session of this module, Apache::Session::PHP. |
---|
24 | |
---|
25 | %prep |
---|
26 | %setup -q -n PHP-Session-%{version} |
---|
27 | |
---|
28 | %build |
---|
29 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX='/usr' |
---|
30 | make %{?_smp_mflags} |
---|
31 | |
---|
32 | %install |
---|
33 | rm -rf %{buildroot} |
---|
34 | make pure_install DESTDIR=%{buildroot} |
---|
35 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
36 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
37 | %{_fixperms} %{buildroot} |
---|
38 | |
---|
39 | %check |
---|
40 | make test |
---|
41 | |
---|
42 | %clean |
---|
43 | rm -rf %{buildroot} |
---|
44 | |
---|
45 | %files |
---|
46 | %doc Changes README |
---|
47 | %{perl_vendorlib}/* |
---|
48 | %{_mandir}/man3/* |
---|
49 | |
---|
50 | %changelog |
---|
51 | * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.27-1 |
---|
52 | - initial build for Vine Linux |
---|