All pastes #1858884 Raw Edit

perl-CGI.pm.spec

public text v1 · immutable
#1858884 ·published 2010-04-08 13:28 UTC
rendered paste body
Name:           perl-CGI.pm
Version:        3.49
Release:        1%{?dist}
Summary:        CGI.pm Perl module
License:        CHECK(GPL+ or Artistic)
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/CGI.pm/
Source0:        http://www.cpan.org/modules/by-module/CGI.pm/CGI.pm-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl(FCGI) >= 0.67
Requires:       perl(FCGI) >= 0.67
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
perl Makefile.PL make make test make install

%prep
%setup -q -n CGI.pm-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc cgi_docs.html cgi-lib_porting.html Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Thu Apr 08 2010 build <build@domain.ext> 3.49-1
- Specfile autogenerated by cpanspec 1.77.