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 |
Requires: perl(Persistence::Object::Simple) |
14 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
15 |
|
16 |
%description |
17 |
put roach.cgi in a directory visible to your webserver and create a server |
18 |
writable directory "dope" below it. point your browser to |
19 |
http://localhost/somedir/roach.cgi |
20 |
|
21 |
%prep |
22 |
%setup -q -n CGI-Persistent-%{version} |
23 |
|
24 |
%build |
25 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
26 |
make %{?_smp_mflags} |
27 |
|
28 |
%install |
29 |
rm -rf $RPM_BUILD_ROOT |
30 |
|
31 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
32 |
|
33 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; |
34 |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
35 |
|
36 |
%{_fixperms} $RPM_BUILD_ROOT/* |
37 |
|
38 |
%check |
39 |
make test |
40 |
|
41 |
%clean |
42 |
rm -rf $RPM_BUILD_ROOT |
43 |
|
44 |
%files |
45 |
%defattr(-,root,root,-) |
46 |
%doc |
47 |
%{perl_vendorlib}/* |
48 |
%{_mandir}/man3/* |
49 |
|
50 |
%changelog |
51 |
* Mon Mar 14 2016 Daniel Berteaud <daniel@firewall-services.com> 1.11-1 |
52 |
- First build using cpanspec |