1 |
Name: perl-CGI-Persistent |
2 |
Version: 1.11 |
3 |
Release: 1%{?dist} |
4 |
Summary: CGI::Persistent Perl module |
5 |
License: CHECK(GPL+ or Artistic) |
6 |
Group: Development/Libraries |
7 |
URL: http://search.cpan.org/dist/CGI-Persistent/ |
8 |
Source0: http://www.cpan.org/authors/id/V/VI/VIPUL/CGI-Persistent-%{version}.tar.gz |
9 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
10 |
BuildArch: noarch |
11 |
BuildRequires: perl(ExtUtils::MakeMaker) |
12 |
BuildRequires: perl(Persistence::Object::Simple) |
13 |
BuildRequires: perl(CGI) |
14 |
Requires: perl(Persistence::Object::Simple) |
15 |
Requires: perl(CGI) |
16 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
17 |
|
18 |
%description |
19 |
put roach.cgi in a directory visible to your webserver and create a server |
20 |
writable directory "dope" below it. point your browser to |
21 |
http://localhost/somedir/roach.cgi |
22 |
|
23 |
%prep |
24 |
%setup -q -n CGI-Persistent-%{version} |
25 |
|
26 |
%build |
27 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
28 |
make %{?_smp_mflags} |
29 |
|
30 |
%install |
31 |
rm -rf $RPM_BUILD_ROOT |
32 |
|
33 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
34 |
|
35 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; |
36 |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
37 |
|
38 |
%{_fixperms} $RPM_BUILD_ROOT/* |
39 |
|
40 |
%check |
41 |
make test |
42 |
|
43 |
%clean |
44 |
rm -rf $RPM_BUILD_ROOT |
45 |
|
46 |
%files |
47 |
%defattr(-,root,root,-) |
48 |
%doc |
49 |
%{perl_vendorlib}/* |
50 |
%{_mandir}/man3/* |
51 |
|
52 |
%changelog |
53 |
* Thu Mar 17 2016 Daniel Berteaud <daniel@firewall-services.com> 1.11-1 |
54 |
- First build using cpanspec [SME: 9329] |