]> git.pld-linux.org Git - packages/perl-CGI.git/blobdiff - perl-CGI.spec
- updated URL
[packages/perl-CGI.git] / perl-CGI.spec
index dd049517c36304c1274354d67d6eba13e7998879..cfac7d2313c6a3b091e64571a661504bd3157626 100644 (file)
@@ -3,22 +3,21 @@
 %bcond_without tests   # do not perform "make test"
 
 %define                pdir    CGI
-%include       /usr/lib/rpm/macros.perl
 Summary:       CGI Perl module - simple CGI interface class
 Summary(pl.UTF-8):     Moduł Perla CGI - prosta klasa interfejsu do CGI
 Name:          perl-CGI
-Version:       4.20
+Version:       4.54
 Release:       1
 Epoch:         1
 # same as perl
 License:       GPL or Artistic
 Group:         Development/Languages/Perl
-Source0:       https://github.com/leejo/CGI.pm/archive/v%{version}.tar.gz
-# Source0-md5: 738a575828f6b111830ab4e3445cd851
-URL:           http://search.cpan.org/dist/CGI.pm/
+Source0:       http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-%{version}.tar.gz
+# Source0-md5: d12ddcd7d3db6410e9316ed9b9b5c80f
+URL:           https://metacpan.org/dist/CGI
 BuildRequires: perl-devel >= 1:5.8.1
 BuildRequires: rpm-perlprov >= 4.3-0.20030610.20.2
-BuildRequires: rpmbuild(macros) >= 1.654
+BuildRequires: rpmbuild(macros) >= 1.745
 BuildRequires: sed >= 4.0
 %if %{with tests}
 BuildRequires: perl(File::Spec) >= 0.82
@@ -60,9 +59,9 @@ Examples for the CGI module.
 Przykłady użycia modułu CGI.
 
 %prep
-%setup -q -n %{pdir}.pm-%{version}
+%setup -q -n %{pdir}-%{version}
 
-%{__sed} -i -e 's|/usr/local/bin/perl|/usr/bin/perl|g' examples/*.{cgi,pl}
+%{__sed} -i -e 's|/usr/bin/env perl|%{__perl}|g' examples/*.{cgi,pl}
 
 %build
 %{__perl} Makefile.PL \
@@ -80,6 +79,9 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}
 
 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/CGI.pod \
+       $RPM_BUILD_ROOT%{perl_vendorlib}/CGI/HTML/Functions.pod
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.07133 seconds and 4 git commands to generate.